body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Heebo Variablefont Wght', Arial, sans-serif;
    min-height: 100%;
    width: 100%;
}
.app-wrapper {
    box-sizing: border-box;
    width: 100%;
    min-height: 100%;
    padding: 1rem 0.5rem;
}
.app-wrapper * { box-sizing: border-box; }
.calculator-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
}
h1 { color: #1a202c; margin: 0 0 0.25rem 0; font-size: 1.75rem; font-weight: 700; text-align: center; line-height: 1.2; }
.subtitle { color: #4a5568; text-align: center; margin: 0 0 1.25rem 0; font-size: 0.95rem; font-weight: 400; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; color: #2d3748; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
.form-group input[type="time"],
.form-group input[type="date"],
.form-group input[type="number"] {
    width: 100%;
    padding: 0.65rem;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: white;
}
.form-group input[type="time"]:focus,
.form-group input[type="date"]:focus,
.form-group input[type="number"]:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}
.input-hint {
    display: block;
    font-size: 0.75rem;
    color: #718096;
    margin-top: 0.2rem;
    font-weight: 400;
}
.checkbox-wrapper { display: flex; flex-direction: column; gap: 1rem; }
.checkbox-group { display: flex; align-items: center; padding: 1rem; background: #f7fafc; border: 2px solid #e2e8f0; border-radius: 6px; cursor: pointer; transition: all 0.2s ease; }
.checkbox-group:hover { background: #edf2f7; border-color: #cbd5e0; }
.checkbox-group input[type="checkbox"] { width: 20px; height: 20px; margin-right: 0.75rem; cursor: pointer; accent-color: #006e80; }
.checkbox-group label { margin: 0; cursor: pointer; flex: 1; font-weight: 500; font-size: 1rem; color: #2d3748; }
.button-group { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.button-group button { flex: 1; padding: 0.7rem 1rem; border: none; border-radius: 6px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.btn-calculate { background: #006e80; color: white; }
.btn-calculate:hover { background: #008496; }
.btn-calculate:active { transform: scale(0.98); }
.btn-reset { background: #e2e8f0; color: #4a5568; border: 1px solid #cbd5e0; }
.btn-reset:hover { background: #cbd5e0; }
.btn-reset:active { transform: scale(0.98); }
.result-section { margin-top: 1.25rem; padding: 1.25rem; background: #006e80; border: 1px solid #e2e8f0; border-radius: 8px; display: none; }
.result-section.show { display: block; animation: slideIn 0.3s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.result-item { background: rgba(255,255,255,0.1); padding: 1rem; border-radius: 6px; margin-bottom: 0.75rem; }
.result-item:last-child { margin-bottom: 0; }
.result-label { font-size: 0.75rem; opacity: 0.85; margin-bottom: 0.3rem; font-weight: 500; color: white; text-transform: uppercase; letter-spacing: 0.5px; }
.result-value { font-size: 1.4rem; font-weight: 700; line-height: 1; color: white; }
.result-value.highlight { font-size: 1.6rem; color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); }
.warnings-box { background: rgba(255,255,255,0.15); border-radius: 6px; padding: 0.75rem; margin-top: 0.75rem; }
.warning-item { 
    background: rgba(254, 215, 170, 0.3);
    color: #fef3c7;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border-left: 4px solid #fbbf24;
    font-size: 0.85rem;
    line-height: 1.4;
}
.warning-item:last-child { margin-bottom: 0; }
.info-box { background: rgba(255,255,255,0.15); color: white; padding: 0.75rem; border-radius: 6px; margin-top: 0.75rem; font-size: 0.85rem; line-height: 1.5; }
.error-message { background: #fed7d7; color: #c53030; padding: 0.75rem; border-radius: 6px; border: 1px solid #feb2b2; margin-top: 0.75rem; display: none; font-size: 0.85rem; }
.error-message.show { display: block; }
@media (max-width: 768px) { 
    .app-wrapper { padding: 0.75rem 0.5rem; } 
    .calculator-container { padding: 1.25rem; } 
    h1 { font-size: 1.5rem; } 
    .subtitle { font-size: 0.9rem; } 
    .button-group { flex-direction: column; } 
    .result-value { font-size: 1.3rem; }
    .result-value.highlight { font-size: 1.5rem; }
}
@media (max-width: 480px) { 
    .calculator-container { padding: 1rem; } 
    h1 { font-size: 1.3rem; } 
    .result-section { padding: 1rem; }
    .result-item { padding: 0.75rem; }
}
