/* Base styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Mobile menu transition */
#mobile-menu {
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Calculator result table styles */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #2563eb;
    color: white;
}

tr:nth-child(even) {
    background-color: #f8fafc;
}

/* Form input focus styles */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 8px;
    }
}

/* Print styles */
@media print {
    header, footer, nav {
        display: none !important;
    }
    
    body {
        padding: 0;
        background: none;
    }
    
    .bg-white {
        background: none !important;
    }
    
    .shadow-md {
        box-shadow: none !important;
    }
}

/* ========== MOBILE MENU STYLES ========== */
#mobile-menu {
    transition: all 0.3s ease-out;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    height: 0;
    overflow: hidden;
    z-index: 1000;
}

#mobile-menu:not(.hidden) {
    transform: scaleY(1);
    opacity: 1;
    height: auto;
}

#mobile-menu-button:focus {
    outline: 2px solid rgba(255,255,255,0.5);
}

@media (min-width: 768px) {
    #mobile-menu {
        display: none !important;
    }
}