/* .NET Community Hub - Site Styles */

/* CRITICAL NAVBAR FIXES - Must be at the top */
.navbar.navbar-dark.bg-dark {
    background-color: #2c3e50 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0 !important;
    min-height: 60px !important;
}

/* Override Bootstrap's responsive display classes */
.navbar .d-none.d-md-flex {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
}

/* Force horizontal layout on all screen sizes >= 768px */
@media (min-width: 768px) {
    .navbar .ms-auto.d-flex {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 0.75rem !important;
    }
    
    .navbar .ms-auto.d-flex > form,
    .navbar .ms-auto.d-flex > .btn-group,
    .navbar .ms-auto.d-flex > .dropdown,
    .navbar .ms-auto.d-flex > .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }
    
    .navbar .d-none.d-md-flex {
        display: flex !important;
    }
}

.navbar-brand {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.3rem;
}

.navbar-brand:hover, .navbar-brand:focus {
    color: #3498db !important;
}

.navbar-nav {
    flex-direction: row !important;
}

.navbar-nav .nav-item {
    margin: 0 0.2rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.4rem 0.8rem !important;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link i {
    margin-right: 0.5rem;
}

.navbar .input-group {
    width: 220px !important;
    min-width: 180px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
}

.navbar .input-group .form-control {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-right: none !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 0.375rem 0 0 0.375rem !important;
    flex: 1 1 auto !important;
}

.navbar .input-group .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: #3498db !important;
    box-shadow: none !important;
    z-index: 3 !important;
}

.navbar .input-group .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.navbar .input-group .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3) !important;
    border-left: none !important;
    color: #ffffff !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 0.85rem !important;
    border-radius: 0 0.375rem 0.375rem 0 !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.navbar .input-group .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
}

/* Login/Sign Up buttons - separate styling */
.navbar .btn-group .btn-outline-light {
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 0.85rem !important;
    border-radius: 0.375rem !important;
}

.navbar .btn-group .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    color: #ffffff !important;
}

.navbar .btn-group .btn-primary {
    background-color: #3498db !important;
    border-color: #3498db !important;
    color: #ffffff !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 0.85rem !important;
}

.navbar .btn-group .btn-primary:hover {
    background-color: #2980b9 !important;
    border-color: #2980b9 !important;
    color: #ffffff !important;
}

.navbar .btn-primary {
    background-color: #3498db !important;
    border-color: #3498db !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 0.85rem !important;
}

.navbar .btn-primary:hover {
    background-color: #2980b9 !important;
    border-color: #2980b9 !important;
}

.navbar .btn-group .btn {
    font-size: 0.85rem !important;
    padding: 0.375rem 0.75rem !important;
}

/* Navbar Toggle Button - Only for mobile */
.navbar-toggler {
    padding: 0.5rem 0.75rem !important;
    font-size: 1rem !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 0.375rem !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.navbar-toggler-icon {
    width: 1.2em !important;
    height: 1.2em !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Force navbar to expand on desktop - hide toggle button */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important;
    }
    
    .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        justify-content: flex-end;
    }
    
    .navbar-collapse.collapse {
        display: flex !important;
    }
    
    .navbar-nav {
        flex-direction: row !important;
        margin: 0 !important;
    }
    
    .navbar-nav .nav-item {
        margin: 0 0.1rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.4rem 0.8rem !important;
    }
    
    .ms-auto {
        margin-left: auto !important;
    }
    
    /* CRITICAL: Force horizontal layout for right-side elements */
    .navbar-collapse .ms-auto.d-flex {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 0.75rem !important;
        width: auto !important;
    }
    
    /* Search form should be inline */
    .navbar-collapse .ms-auto form.d-none.d-md-flex {
        display: flex !important;
        flex-direction: row !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }
    
    /* Button group should be inline */
    .navbar-collapse .ms-auto .btn-group {
        display: flex !important;
        flex-direction: row !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        margin: 0 !important;
    }
    
    /* Navbar nav should be inline with search and buttons */
    .navbar-collapse .ms-auto .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }
}

/* Additional fixes for all screen sizes */
.navbar .ms-auto.d-flex > * {
    flex-shrink: 0 !important;
}

.navbar .d-none.d-md-flex {
    display: flex !important;
}

@media (min-width: 768px) {
    .navbar .d-none.d-md-flex {
        display: flex !important;
        flex-direction: row !important;
    }
}

/* END CRITICAL NAVBAR FIXES */

:root {
    --primary-color: #3498db;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --border-radius: 0.375rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-hover: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Global Styles */
html {
    position: relative;
    min-height: 100%;
}

.card-header {
    background-color: #2c3e50 !important;
    color: white;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    margin-bottom: 0px; /* Footer height */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.display-4 {
    font-weight: 700;
    line-height: 1.2;
}

.lead {
    font-size: 1.1rem;
    font-weight: 300;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    min-height: 60px;
    background-color: var(--dark-color) !important;
}

.navbar-dark {
    background-color: var(--dark-color) !important;
}

.bg-dark {
    background-color: var(--dark-color) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: white !important;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    color: var(--primary-color) !important;
}

.navbar-brand i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.navbar-collapse {
    justify-content: flex-end;
}

.navbar-nav {
    margin: 0;
    flex-direction: row;
}

.navbar-nav .nav-item {
    margin: 0 0.1rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white !important;
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white !important;
}

.navbar-nav .nav-link i {
    margin-right: 0.4rem;
    font-size: 0.9rem;
}

/* Search Bar in Navigation */
.navbar .input-group {
    width: 220px;
    min-width: 180px;
}

.navbar .form-control {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.85rem;
    padding: 0.375rem 0.75rem;
}

.navbar .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.navbar .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.navbar .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    padding: 0.375rem 0.75rem;
    font-size: 0.85rem;
}

.navbar .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* User Menu */
.navbar .dropdown-toggle {
    font-size: 0.85rem;
    white-space: nowrap;
    padding: 0.375rem 0.75rem;
}

.navbar .btn-group .btn {
    font-size: 0.85rem;
    padding: 0.375rem 0.75rem;
}

/* Navbar right section layout - ensure horizontal display */
.navbar .ms-auto.d-flex {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 0.75rem !important;
}

.navbar .btn-group {
    display: flex !important;
    flex-direction: row !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.navbar form {
    margin: 0 !important;
    flex-shrink: 0 !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: white;
    padding: 5rem 0;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Fix Bootstrap row to display columns side by side */
.hero-section .row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    min-height: 400px;
}

.hero-section .col-lg-6 {
    flex: 0 0 auto;
    width: 50%;
}

.hero-section .col-lg-6:first-child {
    padding-right: 2rem;
}

.hero-section .col-lg-6:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 2rem;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-section .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.hero-section .btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: #212529;
}

.hero-section .btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-section .btn-outline-light:hover {
    background-color: white;
    border-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Statistics Cards in Hero Section - Fixed Layout */
.hero-section .row.g-3 {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex !important;
    flex-wrap: wrap !important;
}

.hero-section .col-4 {
    flex: 0 0 auto;
    width: 33.333333%;
    margin-bottom: 1rem;
    padding: 0.5rem;
}

.hero-section .bg-white {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-radius: 0.75rem !important;
    padding: 1.5rem 1rem !important;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-section .bg-white:hover {
    background-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hero-section .bg-white h4 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0.5rem 0 0.25rem 0;
    color: white;
    line-height: 1;
}

.hero-section .bg-white small {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-section .bg-white i {
    color: var(--warning-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Ensure proper desktop layout */
@media (min-width: 992px) {
    .hero-section .row {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }
    
    .hero-section .col-lg-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    .hero-section .col-lg-6:first-child {
        padding-right: 3rem !important;
    }
    
    .hero-section .col-lg-6:last-child {
        padding-left: 2rem !important;
    }
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-2px);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: var(--primary-color);
}

/* Badges */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
}

.badge.bg-outline-primary {
    background-color: transparent !important;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

/* Sections */
section {
    padding: 4rem 0;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* Article Cards */
.article-card {
    transition: all 0.3s ease;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.article-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card .card-text {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.article-card .mt-auto {
    margin-top: auto !important;
}

/* Avatar Images */
.rounded-circle {
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Search Form */
.search-form {
    max-width: 600px;
    margin: 0 auto;
}

.input-group {
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.input-group .form-control {
    border: none;
    box-shadow: none;
}

.input-group .form-control:focus {
    box-shadow: none;
}

.input-group .btn {
    border: none;
}

/* Footer */
.footer, footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer h5, footer h5 {
    color: white;
    font-weight: 600;
}

.footer h6, footer h6 {
    color: #adb5bd;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer a, footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover, footer a:hover {
    color: white;
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid var(--info-color);
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .navbar .input-group {
        width: 200px;
    }
    
    .hero-section .bg-white {
        height: 110px !important;
        padding: 1.25rem 0.75rem !important;
    }
    
    .hero-section .bg-white h4 {
        font-size: 1.75rem;
    }
    
    .hero-section .bg-white i {
        font-size: 2.25rem;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        padding: 3rem 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .hero-section .col-lg-6:last-child {
        margin-top: 3rem;
        display: block;
    }
    
    .hero-section .row.g-3 {
        max-width: 100%;
    }
    
    .hero-section .col-4 {
        flex: 0 0 auto;
        width: 33.333333%;
        margin-bottom: 1rem;
    }
    
    .navbar .input-group {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .navbar-nav {
        margin: 1rem 0 0 0;
        flex-direction: column;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        justify-content: flex-start;
    }
    
    .navbar-collapse {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
        margin-right: 0;
    }
    
    .hero-section .d-flex {
        flex-direction: column;
        gap: 0;
    }
    
    /* Statistics cards on mobile - single column */
    .hero-section .col-lg-6:last-child {
        margin-top: 2rem;
    }
    
    .hero-section .row.g-3 {
        row-gap: 1rem !important;
    }
    
    .hero-section .col-4 {
        flex: 0 0 auto;
        width: 100%;
        max-width: 280px;
        margin: 0 auto 1rem auto;
    }
    
    .hero-section .bg-white {
        height: 100px !important;
        padding: 1rem !important;
    }
    
    .hero-section .bg-white h4 {
        font-size: 1.5rem;
    }
    
    .hero-section .bg-white i {
        font-size: 2rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar .input-group {
        width: 100%;
        margin-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    /* Statistics cards - stack vertically on very small screens */
    .hero-section .col-4 {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-section .bg-white {
        padding: 1.25rem 1rem !important;
        height: 90px !important;
    }
    
    .hero-section .bg-white h4 {
        font-size: 1.5rem;
    }
    
    .hero-section .bg-white i {
        font-size: 1.75rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar .btn-group .btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.border-radius {
    border-radius: var(--border-radius);
}

.transition-all {
    transition: all 0.3s ease;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    footer {
        display: none;
    }
    
    .hero-section {
        background: none;
        color: #333;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ===== MODERN LOGIN PAGE THEME ===== */

.modern-login-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Animated Background */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.animated-bg .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #4834d4, #686de0);
    top: 70%;
    left: 80%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #00d2d3, #54a0ff);
    top: 20%;
    left: 80%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #5f27cd, #00d2d3);
    top: 60%;
    left: 10%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(-40px) rotate(180deg); }
    75% { transform: translateY(-20px) rotate(270deg); }
}

/* Brand Section (Left Side) */
.brand-section {
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
    position: relative;
    z-index: 2;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-content {
    max-width: 500px;
    color: white;
    text-align: center;
}

.brand-logo {
    margin-bottom: 2rem;
}

.brand-logo i {
    font-size: 4rem;
    color: #00d2d3;
    margin-bottom: 1rem;
    display: block;
    animation: pulse 2s ease-in-out infinite;
}

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

.brand-logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(45deg, #00d2d3, #54a0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f1f2f6;
}

.brand-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 2rem;
}

.feature-list {
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.feature-item i {
    color: #00d2d3;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.feature-item span {
    color: #f1f2f6;
}

/* Login Section (Right Side) */
.login-section {
    position: relative;
    z-index: 2;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.login-container {
    width: 100%;
    /*max-width: 380px;*/
    margin: 0;
}

.login-glass-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(25px);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transform: translateX(0);
    transition: all 0.3s ease;
}

.login-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #00d2d3);
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.login-icon i {
    font-size: 1.5rem;
    color: white;
}

.login-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.login-header p {
    color: #718096;
    font-size: 0.875rem;
    margin: 0;
}

/* Modern Alert */
.modern-alert {
    background: linear-gradient(135deg, #fff5f5, #fed7d7);
    border: 1px solid #fc8181;
    color: #c53030;
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

/* Floating Input Fields */
.floating-input {
    position: relative;
    margin-bottom: 1.25rem;
}

.form-input {
    width: 100%;
    padding: 1rem 0.875rem 0.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input:not(:placeholder-shown) + .floating-label,
.form-input:focus + .floating-label {
    transform: translateY(-1.25rem) scale(0.85);
    color: #667eea;
}

.floating-label {
    position: absolute;
    left: 0.875rem;
    top: 0.75rem;
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent 0%, transparent 40%, white 40%, white 60%, transparent 60%);
}

.validation-error {
    color: #e53e3e;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.custom-checkbox {
    display: flex;
    align-items: center;
}

.checkbox-input {
    display: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.8rem;
    color: #4a5568;
    user-select: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 5px;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: white;
}

.checkbox-input:checked + .checkbox-label .checkmark {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    color: white;
}

.checkmark i {
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.checkbox-input:checked + .checkbox-label .checkmark i {
    opacity: 1;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.login-btn:active {
    transform: translateY(0);
}

/* Login Footer */
.login-footer {
    text-align: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.login-footer p {
    color: #718096;
    margin: 0;
    font-size: 0.85rem;
}

.signup-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Social Login Section */
.social-login-section {
    margin: 1rem 0 0.75rem;
}

.divider {
    text-align: center;
    position: relative;
    margin: 1.25rem 0 1rem;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.divider span {
    background: white;
    padding: 0 1rem;
    font-size: 0.75rem;
    color: #718096;
    position: relative;
    z-index: 1;
}

.social-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #4a5568;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.social-btn i {
    font-size: 0.875rem;
}

.google-btn:hover {
    border-color: #db4437;
    color: #db4437;
    background: rgba(219, 68, 55, 0.05);
}

.github-btn:hover {
    border-color: #333;
    color: #333;
    background: rgba(51, 51, 51, 0.05);
}

.microsoft-btn:hover {
    border-color: #0078d4;
    color: #0078d4;
    background: rgba(0, 120, 212, 0.05);
}

/* Responsive Design Updates */
@media (max-width: 991.98px) {
    .brand-section {
        display: none !important;
    }
    
    .login-section {
        background: rgba(255, 255, 255, 0.08);
        padding: 1.5rem;
        justify-content: center;
    }
    
    .login-container {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .login-glass-card {
        margin: 0.5rem;
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 767.98px) {
    .modern-login-page {
        padding: 0.5rem 0;
    }
    
    .login-glass-card {
        border-radius: 12px;
        padding: 1.25rem 1rem;
    }
    
    .brand-logo h1 {
        font-size: 2rem;
    }
    
    .brand-content h2 {
        font-size: 1.5rem;
    }
    
    .login-header h3 {
        font-size: 1.35rem;
    }
    
    .login-header p {
        font-size: 0.8rem;
    }
    
    .social-buttons {
        flex-direction: column;
        gap: 0.375rem;
    }
    
    .social-btn {
        width: 100%;
        justify-content: center;
        padding: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .form-input {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 0.875rem 0.75rem 0.5rem;
    }
    
    .floating-label {
        font-size: 0.85rem;
        left: 0.75rem;
        top: 0.625rem;
    }
    
    .login-glass-card {
        margin: 0.25rem;
        padding: 1rem 0.75rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .social-btn span {
        display: none;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        padding: 0;
    }
    
    .social-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .login-header {
        margin-bottom: 1rem;
    }
    
    .login-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.75rem;
    }
    
    .login-icon i {
        font-size: 1.25rem;
    }
} 

/* ===== CLEAN USER DROPDOWN MENU STYLES ===== */

/* User Dropdown Button */
.navbar .dropdown-toggle {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    border-radius: 0.5rem !important;
    transition: all 0.3s ease !important;
}

.navbar .dropdown-toggle:hover,
.navbar .dropdown-toggle:focus {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
}

.navbar .dropdown-toggle::after {
    border-top-color: #ffffff !important;
    margin-left: 0.5rem !important;
}

/* User Icon in Dropdown Toggle */
.navbar .dropdown-toggle .bi-person-circle {
    font-size: 1.2rem !important;
    margin-right: 0.25rem !important;
}

/* User Dropdown Menu - Bootstrap Compatible */
.navbar .dropdown-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    padding: 0.75rem 0 !important;
    margin-top: 0.5rem !important;
    min-width: 220px !important;
    z-index: 1050 !important;
    /* Let Bootstrap handle the display property */
}

/* Dropdown positioning */
.navbar .dropdown {
    position: relative !important;
}

.navbar .dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
}

/* Dropdown Items */
.navbar .dropdown-item {
    padding: 0.75rem 1.25rem !important;
    color: #2c3e50 !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    border: none !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    margin: 0 0.5rem !important;
    border-radius: 0.5rem !important;
    width: calc(100% - 1rem) !important;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: #ffffff !important;
    transform: translateX(3px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

.navbar .dropdown-item i {
    font-size: 1.1rem !important;
    width: 20px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

/* Dropdown form (for logout) */
.navbar .dropdown-item form {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.navbar .dropdown-item button[type="submit"] {
    width: 100% !important;
    text-align: left !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

/* Dropdown Divider */
.navbar .dropdown-divider {
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    margin: 0.5rem 1rem !important;
    opacity: 0.5 !important;
}

/* Mobile Specific Dropdown Styles */
@media (max-width: 767.98px) {
    .navbar .dropdown-toggle {
        width: 100% !important;
        justify-content: flex-start !important;
        margin-top: 0.5rem !important;
        background-color: rgba(255, 255, 255, 0.05) !important;
    }
    
    .navbar .dropdown-menu {
        position: static !important;
        width: 100% !important;
        margin: 0.5rem 0 !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    }
    
    .navbar .dropdown-item {
        margin: 0 !important;
        width: 100% !important;
        border-radius: 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    }
    
    .navbar .dropdown-item:hover {
        transform: none !important;
        background: rgba(102, 126, 234, 0.1) !important;
        color: #2c3e50 !important;
    }
}

/* Ensure proper z-index stacking */
.navbar {
    position: relative !important;
    z-index: 1030 !important;
}

/* Fix for overlapping content */
body {
    padding-top: 0 !important;
}

.navbar.fixed-top + main,
.navbar.sticky-top + main {
    margin-top: 0 !important;
    padding-top: 1rem !important;
}

/* ===== DROPDOWN VISIBILITY FIX ===== */
/* Force dropdown to be hidden by default */
.dropdown-menu {
    display: none !important;
}

.dropdown-menu.show {
    display: block !important;
}

/* Remove any conflicting visibility rules */
.navbar .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
} 