:root {
--primary-color: #2c3e50;
--secondary-color: #3498db;
--accent-color: #e74c3c;
--background-color: #ecf0f1;
--text-color: #2c3e50;
--border-radius: 12px;
--box-shadow: 0 8px 20px rgba(0,0,0,0.1);
--transition: all 0.3s ease;
} .tip-calculator-container {
max-width: 800px;
margin: 30px auto;
padding: 30px;
background: #ffffff;
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
}
.tip-calculator-container h2 {
color: var(--primary-color);
text-align: center;
margin-bottom: 30px;
font-size: 2em;
font-weight: 700;
position: relative;
}
.tip-calculator-container h2:after {
content: '';
display: block;
width: 60px;
height: 4px;
background: var(--secondary-color);
margin: 10px auto;
border-radius: 2px;
} .calculator-flex {
display: flex;
flex-direction: column;
gap: 25px;
padding: 20px;
background: var(--background-color);
border-radius: var(--border-radius);
} .input-group {
display: flex;
flex-direction: column;
gap: 10px;
background: white;
padding: 20px;
border-radius: var(--border-radius);
box-shadow: 0 4px 6px rgba(0,0,0,0.05);
transition: var(--transition);
}
.input-group:hover {
transform: translateY(-2px);
box-shadow: 0 6px 12px rgba(0,0,0,0.1);
} label {
font-weight: 600;
color: var(--text-color);
font-size: 1.1em;
margin-bottom: 5px;
} input, select {
padding: 15px;
border: 2px solid #e0e0e0;
border-radius: var(--border-radius);
font-size: 16px;
transition: var(--transition);
background: white;
}
input:focus, select:focus {
outline: none;
border-color: var(--secondary-color);
box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
} #custom-tip {
margin-top: 10px;
} .results {
background: white;
padding: 25px;
border-radius: var(--border-radius);
box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.result-item {
display: flex;
justify-content: space-between;
padding: 15px 0;
border-bottom: 2px solid #f0f0f0;
font-size: 1.1em;
}
.result-item:last-child {
border-bottom: none;
font-weight: 700;
color: var(--primary-color);
}
.result-item span:first-child {
color: var(--text-color);
font-weight: 600;
}
.result-item span:last-child {
font-family: 'Roboto Mono', monospace;
font-size: 1.2em;
color: var(--secondary-color);
} .exchange-rate-info {
margin-top: 25px;
padding: 15px;
background: #f8f9fa;
border-radius: var(--border-radius);
font-size: 0.9em;
color: #666;
text-align: center;
border: 1px solid #e0e0e0;
} @media (min-width: 768px) {
.calculator-flex {
flex-direction: row;
flex-wrap: wrap;
}
.input-group {
flex: 1 1 calc(50% - 40px);
}
.results {
flex: 1 1 100%;
}
} @media (max-width: 767px) {
.tip-calculator-container {
margin: 15px;
padding: 20px;
}
.calculator-flex {
padding: 15px;
}
.input-group {
margin-bottom: 15px;
}
h2 {
font-size: 1.5em;
}
.result-item {
flex-direction: column;
text-align: center;
gap: 10px;
}
} @keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.result-item {
animation: fadeIn 0.3s ease-out;
} input[type="number"] {
-moz-appearance: textfield;
width: 100%;
box-sizing: border-box;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
} select:hover, input:hover {
border-color: var(--secondary-color);
} *:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}