/* Universal Layout Styles - Header & Footer for all pages */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgb(43, 145, 191)!important;
    color: white;
    padding: 0.3rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: -5px;
}

.logo span {
    font-size: 0.8rem;
    opacity: 0.9;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav a:hover {
    opacity: 0.8;
}

.new-interface-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: white !important;
    padding: 6px 12px !important;
    border-radius: 15px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3) !important;
    border: 1px solid #f59e0b !important;
    position: relative !important;
    overflow: visible !important;
    margin-left: 10px !important;
}

.new-interface-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4) !important;
    opacity: 1 !important;
}

.new-interface-btn::after {
    content: 'NEW';
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 6px;
    font-weight: 700;
    z-index: 10;
    animation: newBadgePulse 2s infinite;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@keyframes newBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    cursor: pointer;
}

.dropdown-toggle:hover {
    opacity: 0.8;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 1001;
    margin-top: 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Keep dropdown visible when hovering over menu items */
.dropdown-menu:hover {
    display: block;
}

/* Add invisible bridge to prevent dropdown from hiding */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.dropdown-menu a {
    color: #374151;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: block;
    font-weight: 500;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: #f3f4f6;
    border-left-color: rgb(43, 145, 191);
    color: rgb(43, 145, 191);
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 1rem;
    text-align: center;
    color: #a0aec0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}