/* Light Mode and Modern Theme */
:root {
    --primary-color: #000000;
    --secondary-color: #3bd1f6;
    --light-bg: #ffffff;
    --lighter-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Sticky Footer Setup */
html, body {
    height: 100%;
    margin: 0;
}

body {
    background-color: var(--lighter-bg);
    color: var(--text-primary);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 56px;
}

main {
    flex: 1 0 auto;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s;
}

.spinner-border {
    color: var(--primary-color) !important;
}

/* Navigation */
.navbar {
    background: var(--light-bg) !important;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.nav-link {
    color: var(--text-secondary) !important;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    margin-bottom: 2rem;
}

.carousel-item {
    height: 600px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
}

.carousel-caption {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.carousel-caption h1, .carousel-caption h3 {
    color: var(--primary-color);
}

/* Event Cards */
.card {
    background: var(--card-bg);
    border: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.event-card {
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-hover-content {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 15px;
    transition: bottom 0.3s ease-in-out;
    box-shadow: var(--shadow-sm);
}

.event-card:hover .card-hover-content {
    bottom: 0;
}

/* Responsive Table */
.table {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-primary {
    background-color: var(--lighter-bg) !important;
}

.table > :not(caption) > * > * {
    background-color: transparent;
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.table-hover tbody tr:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

/* Form Styles */
.form-control, .form-select {
    background-color: var(--light-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background-color: var(--light-bg);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-control.is-invalid {
    border-color: #dc2626;
    box-shadow: none;
}

.invalid-feedback {
    color: #dc2626;
}

/* Password Toggle Button */
.input-group #togglePassword {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-left: none; /* Remove double border between input and button */
    background-color: var(--light-bg);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.input-group #togglePassword:hover,
.input-group #togglePassword:focus {
    background-color: var(--lighter-bg);
    color: var(--primary-color);
}

/* Ensure seamless border between input and button */
.input-group .form-control {
    border-right: none;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Gallery */
.gallery-item {
    margin-bottom: 1.5rem;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.gallery-item:hover img {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

/* Footer */
footer {
    background-color: var(--light-bg) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
    flex-shrink: 0;
    width: 100%;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

footer .footer-logo {
    width: 80px;
    height: auto;
    margin-bottom: 1rem;
}

footer .footer-section {
    margin-bottom: 2rem;
}

footer h5 {
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
}

footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--text-secondary) !important;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

footer a:hover {
    color: var(--secondary-color) !important;
    text-decoration: none;
    padding-left: 5px;
}

footer .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

footer .social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

footer .copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--lighter-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Media Queries */
@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }
    
    .card-hover-content {
        position: static;
        background: var(--card-bg);
        padding: 10px 0 0;
    }
    
    .event-card:hover {
        transform: none;
    }
    footer .footer-section {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 300px;
    }
    .navbar-brand img {
        height: 35px;
    }
}

/* Card Title Styles */
.card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: var(--light-bg);
    z-index: 1050;
    transition: left 0.3s ease;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar .sidebar-header {
    padding: 1rem;
    background-color: var(--secondary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-sidebar .sidebar-header img {
    height: 35px;
    width: auto;
}

.mobile-sidebar .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-sidebar .nav-links {
    padding: 1rem;
}

.mobile-sidebar .nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mobile-sidebar .nav-links a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--secondary-color);
}

.mobile-sidebar .nav-links a.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

.sidebar-overlay.active {
    display: block;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-primary);
}

@media (max-width: 991px) {
    .hamburger-menu {
        display: block;
    }
    
    .navbar-nav {
        display: none !important;
    }
} 