/* Sistema Scolastico Nazionale - Stili Personalizzati */

:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    --navbar-height: 90px;
}

/* Modern Navigation Styles */
.modern-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

/* Compenso per navbar fissa su tutte le pagine */
body {
    padding-top: 60px;
}

.nav-container {
    /* Esteso a tutta la larghezza */
    width: 100%;
    margin: 0;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    flex: 0 0 auto;
    min-width: 250px;
}

.nav-brand i {
    font-size: 1.5rem;
    color: #0dcaf0;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.nav-item {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-item.active {
    color: #0dcaf0;
    background: rgba(13, 202, 240, 0.1);
}

.nav-item i {
    font-size: 1rem;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
    min-width: 250px;
    justify-content: flex-end;
}

.nav-user .btn-modern {
    padding: 10px 20px;
    background: linear-gradient(135deg, #0dcaf0 0%, #0d6efd 100%);
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-user .btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 202, 240, 0.4);
}

/* Mobile Navigation Actions - HIDDEN ON DESKTOP */
.mobile-nav-actions {
    display: none !important;
    align-items: center;
    gap: 10px;
}

.btn-modern-mobile {
    padding: 8px 15px;
    background: linear-gradient(135deg, #0dcaf0 0%, #0d6efd 100%);
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-modern-mobile span {
    display: none;
}

/* Mobile Navigation Toggle - HIDDEN ON DESKTOP */
.nav-toggle {
    display: none !important;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle.active i::before {
    content: "\f00d";
}

/* Desktop Only */
.desktop-only {
    display: inline-flex;
}

/* Mobile School Name - Hidden by default on desktop */
.mobile-school-name {
    display: none;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 10px;
        align-items: center;
    }
    
    .nav-brand {
        min-width: auto;
        flex: none;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        grid-column: 1;
    }
    
    .nav-brand .school-name {
        display: none !important;
    }
    
    .nav-brand .desktop-name {
        display: none !important;
    }
    
    .mobile-school-name {
        display: block;
        grid-column: 2;
        justify-self: center;
        align-self: center;
        max-width: 100%;
        padding: 0 10px;
        color: white;
        font-size: 1rem;
        font-weight: 600;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
        grid-column: unset;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-user {
        display: none;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-nav-actions {
        display: flex !important;
        flex: 0 0 auto;
        grid-column: 3;
        justify-self: end;
        align-self: center;
    }
    
    .nav-toggle {
        display: block !important;
    }
    
    .nav-item {
        width: 90%;
        margin: 5px auto;
    }
}

@media (max-width: 480px) {
    .nav-container {
        grid-template-columns: 40px 1fr auto;
        gap: 8px;
    }
    
    .btn-modern-mobile i {
        font-size: 1.1rem;
    }
    
    .btn-modern-mobile span {
        display: none;
    }
    
    .nav-brand i {
        font-size: 1.2rem;
    }
    
    .nav-brand img {
        max-height: 35px !important;
        max-width: 35px !important;
    }
    
    .mobile-school-name {
        font-size: 0.9rem;
        padding: 0 5px;
    }
    
    .mobile-nav-actions {
        gap: 5px;
    }
    
    .nav-toggle {
        padding: 5px;
    }
}

/* Footer Responsive Styles */
.footer-responsive .footer-brand {
    margin-bottom: 1rem;
}

.footer-responsive .footer-title {
    font-size: 1.1rem;
}

.footer-responsive .footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-responsive .footer-links {
    flex-wrap: wrap;
}

.footer-responsive .footer-link {
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.footer-responsive .footer-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.footer-responsive .footer-copyright {
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* Footer Mobile Styles */
@media (max-width: 768px) {
    footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-responsive .footer-brand {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-responsive .footer-title {
        font-size: 1rem;
        text-align: center;
    }
    
    .footer-responsive .footer-description {
        font-size: 0.85rem;
        padding: 0 15px;
    }
    
    .footer-responsive .footer-links {
        margin-top: 1.5rem;
    }
    
    .footer-responsive .footer-link {
        font-size: 0.9rem;
        display: block;
        padding: 8px 15px;
        margin: 2px 0;
    }
    
    .footer-responsive .footer-copyright {
        margin-top: 1.5rem;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .footer-responsive .footer-title {
        font-size: 0.9rem;
    }
    
    .footer-responsive .footer-description {
        font-size: 0.8rem;
    }
    
    .footer-responsive .footer-link {
        font-size: 0.85rem;
    }
    
    .footer-responsive .footer-copyright {
        font-size: 0.8rem;
    }
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.homepage-body {
    padding-top: 0;
}

/* Button Modern */
.btn-modern {
    padding: 12px 25px;
    background: linear-gradient(135deg, #0dcaf0 0%, #0d6efd 100%);
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    cursor: pointer;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 202, 240, 0.4);
    color: white;
}

/* Video Hero Section */
.video-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(30, 41, 59, 0.6) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 80px 20px 40px;
    width: 100%;
    max-width: 1200px;
}

.hero-text {
    margin-bottom: 40px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #0dcaf0 0%, #0d6efd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-card i {
    font-size: 2.5rem;
    color: #0dcaf0;
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 5px;
    font-weight: 700;
}

.stat-card p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Hero Section (Legacy) */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.min-vh-75 {
    min-height: 75vh;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

/* Quick Actions Section */
.quick-actions {
    padding: 80px 0;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.action-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.action-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.action-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.action-card h4 {
    color: #212529;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.action-card p {
    color: rgba(33, 37, 41, 0.8);
    margin-bottom: 20px;
}

/* Glass Effect */
.glass-effect {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Italian Flag Decoration */
.italian-flag-decoration {
    display: flex;
    justify-content: center;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.flag-stripe {
    flex: 1;
}

.flag-green {
    background-color: #009246;
}

.flag-white {
    background-color: #ffffff;
}

.flag-red {
    background-color: #ce2b37;
}

.hero-icon {
    font-size: 150px;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

/* Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #0dcaf0;
}

/* Feature and Education Cards Text Colors */
.feature-card ul li {
    color: #495057;
}

.feature-card ul li i {
    color: #198754;
}

.education-level-card ul li {
    color: #495057;
}

.education-level-card ul li i.fa-star {
    color: #ffc107;
}

.education-level-card h4 {
    color: #0d6efd;
}

.education-level-card p {
    color: #6c757d;
}

/* Education Level Cards */
.education-level-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.education-level-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.level-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #0d6efd;
}

/* CSS Variables for Gradients */
:root {
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --success: #198754;
}


.level-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

/* Footer - CORREZIONE CONTRASTO */
footer.bg-dark {
    background-color: #1a1a1a !important;
}

footer .text-muted {
    color: #b0b0b0 !important; /* Colore più chiaro per migliore contrasto su sfondo scuro */
}

footer .footer-brand {
    font-size: 1.2rem;
}

footer .footer-links a {
    color: #ffffff !important; /* Bianco per i link */
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .footer-links a:hover {
    color: #40e0d0 !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Buttons */
.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.btn-success {
    background: linear-gradient(135deg, #198754 0%, #13653f 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #13653f 0%, #198754 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
}

/* Regional Presence */
.regional-presence {
    background: rgba(30, 41, 59, 0.6);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.regions-grid .badge {
    font-size: 0.9rem;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
}

/* Contact Section */
.contact-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-icon {
        font-size: 100px;
    }
    
    .feature-icon {
        font-size: 36px;
    }
    
    .level-icon {
        font-size: 48px;
    }
    
    .hero-section {
        min-height: auto;
        padding: 60px 0;
    }
    
    .min-vh-75 {
        min-height: auto;
    }
}

/* Login Page Styles */
.login-page {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
}

.login-container {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.login-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    box-shadow: 0 25px 75px rgba(0,0,0,0.4);
    overflow: hidden;
    width: 100%;
    min-height: 600px;
}

.login-welcome {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.welcome-content {
    color: white;
}

.login-form-section {
    background: rgba(255, 255, 255, 0.98);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
}

.login-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.user-type-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.user-type-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: 10px;
}

.user-type-item i {
    font-size: 1.25rem;
}

.system-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.feature-item i {
    font-size: 1.25rem;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .login-welcome {
        display: none;
    }
    
    .login-card {
        max-width: 500px;
        margin: 0 auto;
        min-height: auto;
    }
    
    .login-form-section {
        padding: 2rem;
        min-height: auto;
        border-radius: 30px;
        background: rgba(255, 255, 255, 0.95);
    }
}

@media (max-width: 576px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-card {
        border-radius: 20px;
    }
    
    .login-form-section {
        padding: 1.5rem;
    }
    
    .login-form-container {
        max-width: 100%;
    }
    
    .demo-credentials {
        font-size: 0.875rem;
    }
}

/* Dashboard Styles */
.sidebar {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1e 100%);
    min-height: 100vh;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Sidebar Video Background */
.sidebar-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.sidebar-video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.4;
}

.sidebar-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.8) 0%, rgba(15, 15, 30, 0.9) 100%);
    z-index: 1;
}

.sidebar .position-sticky {
    position: relative;
    z-index: 2;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    border-left: 3px solid #40e0d0;
    color: white;
}

/* Sidebar dropdown styles */
.sidebar .dropdown-menu {
    position: static !important;
    transform: none !important;
    width: 100%;
    margin: 0;
    border: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0;
}

.sidebar .dropdown-menu .dropdown-item {
    padding: 0.5rem 1rem 0.5rem 3rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.sidebar .dropdown-menu .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar .dropdown-toggle::after {
    float: right;
    margin-top: 0.5rem;
}

.dashboard-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 25px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    color: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: bold;
}

.stat-card .stat-label {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Tables */
.table-responsive {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.table {
    margin-bottom: 0;
}

.table thead {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Forms */
.form-control:focus {
    border-color: #40e0d0;
    box-shadow: 0 0 0 0.25rem rgba(64, 224, 208, 0.25);
}

.form-select:focus {
    border-color: #40e0d0;
    box-shadow: 0 0 0 0.25rem rgba(64, 224, 208, 0.25);
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
}

/* Navbar */
.navbar-dark .navbar-brand {
    font-size: 1.3rem;
    font-weight: bold;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #40e0d0;
}

/* Fix per il dropdown menu della navbar - mostra sopra tutto */
.navbar .dropdown-menu,
.nav-item .dropdown-menu {
    z-index: 99999 !important;
    position: absolute !important;
    background: white;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.175);
}

.navbar .dropdown,
.nav-item.dropdown {
    position: relative !important;
}

/* Assicura che il dropdown sia visibile sopra tutti gli elementi */
.dropdown-menu.show {
    z-index: 999999 !important;
    display: block !important;
}

/* Fix specifico per dropdown nell'header */
.navbar-nav .dropdown-menu {
    z-index: 999999 !important;
    margin-top: 0.5rem;
}

/* Fix per dropdown menu end (allineato a destra) */
.dropdown-menu-end {
    z-index: 999999 !important;
    right: 0;
    left: auto;
}/* Force text colors to black */
.table td strong { color: #000 !important; }
.table td span { color: #000 !important; }
.text-primary { color: #000 !important; }
.text-success { color: #000 !important; }
.text-muted { color: #000 !important; }
