/* Essential Custom Styles - Using Tailwind for most styling */

/* Mobile Menu Toggle */
.topnav {
    overflow: hidden;
    position: relative;
    display: none;
}

@media (max-width: 767px) {
    .topnav {
        display: block;
    }
}

.topnav #myLinks {
    display: none;
}

.topnav a {
    color: white;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    display: block;
}

.topnav a.icon {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
}

/* Desktop Dropdown Menu */
.expandable-menu li {
    position: relative;
}

.expandable-menu li ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
}

.expandable-menu li:hover > ul {
    display: block;
}

/* Custom Animations (supplement to Tailwind's animate-*) */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out;
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out;
}

/* Table Styles for Trade Analysis Pages */
table {
    width: 100%;
    max-width: 1200px;
    border-collapse: collapse;
    margin: 20px auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

th, td {
    border: 2px solid #e5e7eb;
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
}

th {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    background-color: #fff;
}

tr:nth-child(even) td {
    background-color: #f9fafb;
}

tr:hover td {
    background-color: #e0f2fe;
}

@media (max-width: 768px) {
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 8px;
    }
}

/* Form Elements */
input[type="text"] {
    padding: 10px 15px;
    font-size: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

button {
    padding: 10px 20px;
    font-size: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.error {
    color: #ef4444;
    margin-top: 10px;
    font-weight: bold;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Shadow Utilities (beyond Tailwind's defaults) */
.shadow-3xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Loading State */
body {
    transition: opacity 0.5s ease;
}
