/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.grecaptcha-badge {
  visibility: hidden; /* or display: none */
}

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

/* Enhanced Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(52, 152, 219, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 40px rgba(52, 152, 219, 0.15);
    padding: 10px 0;
    transform: translateY(0);
}

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

/* Enhanced Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.navbar_logo {
    height: 50px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(52, 152, 219, 0.2));
}

.logo:hover .navbar_logo {
    transform: scale(1.08) translateY(-2px);
    filter: drop-shadow(0 4px 16px rgba(52, 152, 219, 0.3));
}

/* --------------------- Outsided Buttons Start ------------------------ */
.action-buttons {
    display: none;
    gap: 1rem;
    align-items: center;
}

.btn-nav-primary {
    background: #ff6b6b !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3) !important;
}

.btn-nav-primary:hover {
    background: #ff5252 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4) !important;
}

.btn-nav-secondary {
    background: transparent !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border: 2px solid white !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    list-style-type: none;
}

.btn-nav-secondary:hover {
    background: white !important;
    color: #667eea !important;
    transform: translateY(-2px) !important;
}


/* --------------------- Outsided Buttons End ------------------------ */


/* Enhanced Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 20px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    background: transparent;
    backdrop-filter: blur(10px);
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.1));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    border-radius: 50px;
}

.nav-links a:hover::before {
    transform: scaleX(1);
}

.nav-links a:hover {
    color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
}

.nav-links a i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.nav-links a:hover i {
    transform: scale(1.2);
}

/* Special Navigation Buttons */
.btn-nav-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    border: 2px solid transparent;
}

.btn-nav-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%) !important;
    color: white !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.4) !important;
}

.btn-nav-secondary {
    background: transparent !important;
    color: #3498db !important;
    border: 2px solid #3498db;
}

.btn-nav-secondary:hover {
    background: #3498db !important;
    color: white !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3) !important;
}

/* Enhanced Dropdown */
.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(52, 152, 219, 0.1) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(52, 152, 219, 0.2) !important;
    min-width: 200px;
    padding: 15px 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-item {
    display: flex !important;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 25px !important;
    color: #2c3e50 !important;
    text-decoration: none;
    background: transparent;
    border: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-radius: 0 !important;
}

.dropdown-item:hover {
    background: rgba(52, 152, 219, 0.1) !important;
    color: #3498db !important;
    transform: translateX(8px);
}

.dropdown-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(52, 152, 219, 0.1);
    border: 2px solid rgba(52, 152, 219, 0.2);
}

.menu-toggle:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: scale(1.1);
}

.bar {
    width: 25px;
    height: 3px;
    background: #3498db;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Main Content Spacing */
main {
    margin-top: 80px;
    flex: 1;
    min-height: calc(100vh - 80px);
}

/* Enhanced Flash Messages */
.flash-messages {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1100;
    max-width: 400px;
}

.alert {
    margin-bottom: 15px;
    border: none;
    border-radius: 15px;
    padding: 20px 25px;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border-left: 4px solid;
    animation: slideInAlert 0.4s ease-out;
}

@keyframes slideInAlert {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.alert-success {
    background: linear-gradient(135deg, rgba(212, 237, 218, 0.95), rgba(195, 230, 203, 0.95));
    color: #155724;
    border-left-color: #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(248, 215, 218, 0.95), rgba(245, 198, 203, 0.95));
    color: #721c24;
    border-left-color: #dc3545;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 243, 205, 0.95), rgba(255, 234, 167, 0.95));
    color: #856404;
    border-left-color: #ffc107;
}

.alert-info {
    background: linear-gradient(135deg, rgba(209, 236, 241, 0.95), rgba(190, 229, 235, 0.95));
    color: #0c5460;
    border-left-color: #17a2b8;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-icon {
    font-size: 1.2rem;
}

.alert-message {
    flex: 1;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.3s ease;
    padding: 0;
    margin-left: 15px;
}

.btn-close:hover {
    opacity: 1;
}

/* Enhanced Fixed Action Buttons */
.fixed-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

#custom-fixed-button {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 18px 25px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

#custom-fixed-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

#custom-fixed-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(52, 152, 219, 0.6);
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}

#custom-fixed-button:hover::before {
    left: 100%;
}

.scroll-to-top {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.scroll-to-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.6);
}

.scroll-to-top:hover::before {
    transform: scale(1);
}

/* Enhanced Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    color: white;
    padding: 80px 0 30px;
   
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #3498db, #2980b9, #3498db, #2980b9);
    background-size: 400% 100%;
    animation: gradientWave 4s ease-in-out infinite;
}

@keyframes gradientWave {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerPattern" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(52,152,219,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23footerPattern)"/></svg>');
    opacity: 0.3;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.footer-section {
    animation: fadeInFooter 0.8s ease-out;
}

@keyframes fadeInFooter {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #3498db;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
}

.footer-section p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 25px;
}

/* Contact Info */
.contact-info {
    margin-top: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 12px 0;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    color: #3498db;
}

.contact-item i {
    color: #3498db;
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item:hover a {
    color: #3498db;
}

/* Footer Links */
.footer-section.links ul {
    list-style: none;
    padding: 0;
}

.footer-section.links li {
    margin-bottom: 15px;
}

.footer-section.links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding: 8px 0;
}

.footer-section.links a::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

.footer-section.links a:hover {
    color: #3498db;
    transform: translateX(15px);
}

.footer-section.links a:hover::before {
    width: 12px;
}

/* Enhanced Social Media Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(52, 152, 219, 0.2);
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #3498db, #2980b9);
    transform: scale(0);
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.social-icons a:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.4);
    color: white;
}

.social-icons a:hover::before {
    transform: scale(1);
}

.social-icons a i {
    position: relative;
    z-index: 2;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    position: relative;
    z-index: 2;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #3498db;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
        position: relative;
    }

    /* Hide desktop-only items */
    .desktop-only {
        display: none !important;
    }

    /* Show mobile actions container */

    /* Logo adjustments */
    .logo img.navbar_logo {
        height: 38px;
        max-width: 140px;
    }

    /* Mobile action buttons */
    .action-buttons {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .mobile-btn {
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
        border-radius: 20px !important;
        min-width: auto !important;
        white-space: nowrap !important;
    }

    .mobile-btn span {
        display: inline !important;
    }

    .mobile-btn i {
        font-size: 0.9rem !important;
        margin-right: 4px !important;
    }

    /* Mobile dropdown specific */
    .mobile-dropdown .dropdown-toggle {
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
        border-radius: 20px !important;
    }

    .mobile-dropdown .dropdown-menu {
        right: -20px;
        min-width: 160px;
    }

    /* Menu toggle button */
    .menu-toggle {
        display: flex;
        padding: 8px;
        margin-left: 8px;
    }

    .menu-toggle .bar {
        width: 22px;
        height: 2.5px;
        margin: 2.5px 0;
    }

    /* Navigation menu - mobile dropdown */
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 30px 0;
        box-shadow: 0 10px 40px rgba(52, 152, 219, 0.2);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-links:not(.notactive) {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        padding: 15px 30px;
        margin: 0 20px;
        border-radius: 15px;
        display: flex;
        justify-content: center;
        width: calc(100% - 40px);
        color: #333 !important;
        font-weight: 500;
    }

    .nav-links a:hover {
        background: rgba(52, 152, 219, 0.1) !important;
        color: #3498db !important;
    }

    /* Menu toggle animation */
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .navbar {
        padding: 12px 0;
    }

    /* Logo even smaller */
    .logo img.navbar_logo {
        height: 32px;
        max-width: 120px;
    }

    .action-buttons {
        gap: 6px;
    }

    /* Smaller mobile buttons */
    

    .mobile-btn span {
        display: none !important;
    }

    .mobile-btn i {
        font-size: 1rem !important;
        margin-right: 0 !important;
    }

    /* Smaller menu toggle */
    .menu-toggle {
        padding: 6px;
        margin-left: 6px;
    }

    .menu-toggle .bar {
        width: 20px;
        height: 2px;
        margin: 2px 0;
    }

    /* Mobile dropdown adjustments */
    .mobile-dropdown .dropdown-toggle {
        padding: 6px 10px !important;
        font-size: 1rem !important;
    }

    .mobile-dropdown .dropdown-menu {
        right: -30px;
        min-width: 140px;
        font-size: 0.85rem;
    }

    /* Navigation adjustments */
    .nav-links {
        top: 60px;
        padding: 20px 0;
        max-height: calc(100vh - 60px);
    }

    .nav-links a {
        padding: 12px 20px;
        margin: 0 15px;
        width: calc(100% - 30px);
        font-size: 0.9rem;
    }
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

.text-center {
    text-align: center;
}

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

.text-right {
    text-align: right;
}

/* Margin utilities */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 40px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 40px; }

/* Padding utilities */
.p-0 { padding: 0; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }
.p-5 { padding: 40px; }

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-secondary:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 24px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
}

.card-text {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 400;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #95a5a6;
    font-weight: 400;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #3498db;
    border-top: 2px solid transparent;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(52, 152, 219, 0.1);
    border-left-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Focus States for Accessibility */
*:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.nav-links a:focus,
.dropdown-item:focus,
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .navbar {
        background: white;
        border-bottom: 3px solid #3498db;
    }
    
    .footer {
        background: #000;
    }
    
    .nav-links a {
        color: #000;
    }
    
    .nav-links a:hover {
        background: #3498db;
        color: white;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    #custom-fixed-button,
    .scroll-to-top,
    .flash-messages {
        display: none;
    }
    
    main {
        margin-top: 0;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* Hero Section Styles (for landing page) */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="heroGrid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(52,152,219,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23heroGrid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

th {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

tr:hover {
    background: rgba(52, 152, 219, 0.05);
}

tr:last-child td {
    border-bottom: none;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.badge-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

/* Progress Bar */
.progress {
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 4px;
    transition: width 0.6s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(45deg, transparent 33%, rgba(255,255,255,0.1) 33%, rgba(255,255,255,0.1) 66%, transparent 66%);
    animation: progressShine 1s linear infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background: #2c3e50;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    font-size: 0.8rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    list-style: none;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 12px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #6c757d;
    margin: 0 0.5rem;
}

.breadcrumb-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #2980b9;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Pagination */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 12px;
    justify-content: center;
    margin: 2rem 0;
}

.page-item {
    margin: 0 3px;
}

.page-link {
    position: relative;
    display: block;
    color: #3498db;
    text-decoration: none;
    background: white;
    border: 2px solid #e9ecef;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-link:hover {
    color: white;
    background: #3498db;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-color: #3498db;
    color: white;
}

.page-item.disabled .page-link {
    color: #6c757d;
    background: #f8f9fa;
    border-color: #e9ecef;
    cursor: not-allowed;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 350px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.notification-error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.notification-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.notification-info {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

/* Accordion */
.accordion {
    border: 1px solid rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.accordion-item {
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    margin: 0;
}

.accordion-button {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: #2c3e50;
    text-align: left;
    background: white;
    border: 0;
    border-radius: 0;
    overflow-anchor: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.accordion-button:hover {
    background: rgba(52, 152, 219, 0.05);
    color: #3498db;
}

.accordion-button::after {
    content: '';
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='%23212529' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 1.25rem;
    transition: transform 0.2s ease-in-out;
}

.accordion-button[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.accordion-collapse {
    border-top: 1px solid rgba(52, 152, 219, 0.1);
}

.accordion-body {
    padding: 1rem 1.25rem;
    color: #6c757d;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
}

/* Selection Color */
::selection {
    background: rgba(52, 152, 219, 0.2);
    color: #2c3e50;
}

::-moz-selection {
    background: rgba(52, 152, 219, 0.2);
    color: #2c3e50;
}

/* New CSS */
/* Mobile Action Buttons */
.mobile-actions {
    display: none;
    align-items: center;
    gap: 10px;
    margin-right: 15px;
}

.mobile-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white !important;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    border: 2px solid transparent;
    white-space: nowrap;
}

.mobile-btn.btn-nav-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.mobile-btn.btn-nav-secondary {
    background: transparent !important;
    color: #3498db !important;
    border: 2px solid #3498db;
}

.mobile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    color: white !important;
}

.mobile-btn.btn-nav-secondary:hover {
    background: #3498db !important;
    color: white !important;
}

.mobile-btn i {
    font-size: 1rem;
}

.mobile-btn-text {
    font-size: 0.85rem;
    font-weight: 600;
}

.mobile-dropdown {
    position: relative;
}

.mobile-dropdown .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 180px;
    margin-top: 8px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .mobile-actions {
        display: flex;
    }
    
    /* Hide desktop-only items */
    .desktop-only {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .mobile-actions {
        gap: 8px;
        margin-right: 10px;
    }
    
    .mobile-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        border-radius: 20px;
    }
    
    .mobile-btn-text {
        display: none; /* Hide text on very small screens, show only icons */
    }
    
    .mobile-btn i {
        font-size: 1.1rem;
    }
    
    .mobile-dropdown .dropdown-menu {
        right: -10px;
        min-width: 160px;
        font-size: 0.85rem;
    }
}
