/* Frontend Common CSS - Shared styles for all frontend pages */

:root {
    --primary-color: #074655;
    --secondary-color: #217A7C;
    --accent-color: #F4A300;
    --neutral-light: #F5F5F5;
    --neutral-dark: #333333;
    --dark-bg: #032a33;
    --dark-gradient: linear-gradient(135deg, #032a33 0%, #074655 50%, #032a33 100%);
    --light-bg: #F5F5F5;
}

/* Header Styles */
.main-header {
    background: #ffffff;
    border-bottom: 2px solid #e9ecef;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .logo-text h1 {
    color: var(--primary-color);
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo-section:hover {
    opacity: 0.8;
}

.logo-section img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.logo-text p {
    color: var(--neutral-dark);
    font-size: 0.8rem;
    margin: 0;
    font-weight: 400;
}

/* Navigation Styles - Round Buttons */
.main-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav-link {
    padding: 0.45rem 1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    position: relative;
    margin: 0 5px;
}

.nav-link::after {
    display: none;
}

.nav-link:hover {
    background-color: #FDF204;
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 70, 85, 0.3);
}

.nav-link:hover::after {
    display: none;
}

/* Enable dropdown on hover since frontend might lack Bootstrap JS */
.main-nav .dropdown:hover .dropdown-menu,
.main-nav .dropdown .dropdown-menu.show {
    display: block;
    margin-top: 0.5rem;
}

/* Invisible bridge to prevent hover loss when moving mouse from button to menu */
.main-nav .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px; /* Adjust according to gap */
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

/* Dropdown Item Hover Effect */
.main-nav .dropdown-item {
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 0 4px;
    width: calc(100% - 8px);
}

.main-nav .dropdown-item:hover {
    background-color: rgba(7, 70, 85, 0.1);
    transform: translateX(5px);
    color: var(--primary-color);
}

/* Responsive Header */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav {
        justify-content: center;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-link {
        width: 100%;
        justify-content: center;
    }
    
    .main-nav .dropdown {
        width: 100%;
    }

    .main-nav .dropdown-menu {
        position: absolute !important;
        float: none;
        left: 0;
        right: 0;
        width: 100%;
        text-align: center;
        margin-top: 0.5rem !important;
    }
    
    .form-section {
        background: #ffffff !important;
    }
    
    .status-card, .registration-card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
    
    .logo-section {
        justify-content: center;
    }
    
    .logo-section img {
        height: 45px;
    }
    
    .logo-text h1 {
        font-size: 1.1rem;
    }
    
    .logo-text p {
        font-size: 0.75rem;
    }
}

