@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

/**
 * MYDECKSTATS HOMEPAGE - Dark SaaS Modern Theme 2025
 * Updated to match admin.css design system
 */

:root {
    /* Color Palette - Dark SaaS */
    --bg-darker: #0d0f14;
    --bg-dark: #181a20;
    --bg-card: #1e2128;
    --bg-hover: #252830;

    --accent-primary: #6c5ce7;
    --accent-secondary: #a29bfe;
    --accent-gradient: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    
    --text-primary: #f8f9fa;
    --text-secondary: #adb5bd;
    --text-muted: #6c757d;
    
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #d63031;
    --info: #74b9ff;
    
    /* Effects */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --blur-glass: blur(10px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 70px;
}

/* ============================================
   NAVIGATION - Glass morphism navbar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(24, 26, 32, 0.8);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-sm);
    height: 70px;
    padding: 0.8rem 0;
}

.navbar-collapse {
    background: transparent;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(30, 33, 40, 0.98);
        backdrop-filter: var(--blur-glass);
        -webkit-backdrop-filter: var(--blur-glass);
        padding: 1rem;
        border-radius: 12px;
        margin-top: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: var(--shadow-md);
    }
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: var(--transition-smooth);
    margin: 0 0.5rem;
    position: relative;
    display: inline-block;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--text-primary) !important;
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link.active {
    color: var(--text-primary) !important;
}

.nav-link.active::after {
    content: '';
    display: block;
    height: 2px;
    background-color: currentColor;
    width: 80%;
    position: absolute;
}

/* User Avatar */
.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.user-avatar:hover {
    transform: scale(1.1);
}

/* Dropdown */
.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: var(--shadow-md);
}

.dropdown-item {
    color: var(--text-primary);
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
}

.dropdown-item-text {
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
}

/* ============================================
   BUTTONS - Modern gradient styles
   ============================================ */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
    color: #fff;
}

.btn-outline-primary {
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #00cec9);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 184, 148, 0.4);
}

.btn-outline-success {
    color: var(--success);
    border: 2px solid var(--success);
    background: transparent;
}

.btn-outline-success:hover {
    background: var(--success);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 184, 148, 0.3);
}

.btn-outline-danger {
    color: var(--danger);
    border: 2px solid var(--danger);
    background: transparent;
}

.btn-outline-danger:hover {
    background: var(--danger);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(225, 112, 85, 0.3);
}

.btn-outline-warning {
    color: var(--warning);
    border: 2px solid var(--warning);
    background: transparent;
}

.btn-outline-warning:hover {
    background: var(--warning);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(253, 203, 110, 0.3);
}

.btn-outline-secondary {
    color: var(--text-secondary);
    border: 2px solid var(--text-secondary);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--text-secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(173, 181, 189, 0.3);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -300px;
    right: -300px;
    z-index: 0;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-image {
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

.hero-image i {
    color: var(--accent-primary);
    opacity: 0.8;
    filter: drop-shadow(0 10px 30px rgba(108, 92, 231, 0.3));
}

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

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    background: var(--bg-dark);
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.feature-card {
    background: rgba(30, 33, 40, 0.6);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    height: 100%;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(108, 92, 231, 0.3);
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    z-index: 1;
    position: relative;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    z-index: 1;
    position: relative;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
    z-index: 1;
    position: relative;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works-section {
    background: var(--bg-darker);
}

.step-card {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    color: var(--text-primary);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3);
}

.step-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: var(--accent-gradient);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -200px;
    left: -200px;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.cta-section .btn-light {
    background: var(--text-primary);
    color: var(--accent-primary);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
}

.cta-section .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer a {
    transition: var(--transition-smooth);
}

.footer a:hover {
    color: var(--accent-primary) !important;
}

/* ============================================
   AUTHENTICATION PAGES
   ============================================ */
.auth-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    position: relative;
}

.auth-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.auth-card {
    background: rgba(30, 33, 40, 0.8);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.auth-card-body {
    padding: 3rem 2.5rem;
}

.auth-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--text-primary);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3);
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.auth-card .form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.auth-card .form-control {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.auth-card .form-control:focus {
    background: var(--bg-card);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.25);
}

.auth-card .form-control::placeholder {
    color: var(--text-muted);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
}

.alert-success {
    background: rgba(0, 184, 148, 0.15);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-info {
    background: rgba(116, 185, 255, 0.15);
    color: var(--info);
    border-left: 4px solid var(--info);
}

.alert-danger {
    background: rgba(214, 48, 49, 0.15);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: rgba(253, 203, 110, 0.15);
    color: var(--warning);
    border-left: 4px solid var(--warning);
}

.alert-modern {
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
}

.alert-success.alert-modern {
    background: rgba(0, 184, 148, 0.1);
    border-color: rgba(0, 184, 148, 0.3);
}

.alert-info.alert-modern {
    background: rgba(116, 185, 255, 0.1);
    border-color: rgba(116, 185, 255, 0.3);
}

/* ============================================
   UTILITIES
   ============================================ */
.bg-dark {
    background-color: var(--bg-dark) !important;
}

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

.text-light {
    color: var(--text-primary) !important;
}

.auth-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

.auth-link-text {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.auth-link {
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.auth-link:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.auth-link-secondary {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.auth-link-secondary:hover {
    color: var(--accent-primary);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-image {
        margin-top: 3rem;
    }

    .hero-image i {
        font-size: 6rem !important;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .auth-card-body {
        padding: 2rem 1.5rem;
    }

    .auth-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0 !important;
    }

    .feature-card,
    .step-card {
        margin-bottom: 1.5rem;
    }

    .auth-card-body {
        padding: 1.5rem 1rem;
    }
}

h1, h2, h3, h4, h5, h6,
p, span, div:not(.badge):not(.btn):not(.mana-symbol) {
    color: var(--text-primary) !important;
}

.text-muted {
    color: var(--text-secondary) !important;
}

small {
    color: var(--text-secondary) !important;
}

.stat-card {
    background: var(--darker-bg);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid rgba(108, 92, 231, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.stat-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.2);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.stat-icon.bg-primary {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.stat-icon.bg-success {
    background: linear-gradient(135deg, #00b894, #55efc4);
}

.stat-icon.bg-warning {
    background: linear-gradient(135deg, #fdcb6e, #ffeaa7);
}

.stat-icon.bg-info {
    background: linear-gradient(135deg, #0984e3, #74b9ff);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light-text);
    margin: 0;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-text);
    margin: 0.25rem 0 0;
}

/* Dashboard Cards */
.dashboard-card {
    background: var(--darker-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(108, 92, 231, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.dashboard-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.2);
}

.dashboard-card.coming-soon {
    opacity: 0.7;
}

.dashboard-card.coming-soon:hover {
    transform: none;
    border-color: rgba(108, 92, 231, 0.1);
    box-shadow: none;
}

.card-icon-wrapper {
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.card-icon.bg-primary-gradient {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.card-icon.bg-success-gradient {
    background: linear-gradient(135deg, #00b894, #55efc4);
}

.card-icon.bg-warning-gradient {
    background: linear-gradient(135deg, #fdcb6e, #ffeaa7);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 0.75rem;
}

.card-description {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    flex: 1;
    line-height: 1.6;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.coming-soon-badge {
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .dashboard-card {
        padding: 1.5rem;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-label-modern {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
    font-size: 1rem;
}

.form-control-modern,
.form-select-modern {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    transition: var(--transition-smooth);
    width: 100%;
    font-size: 1rem;
}

.form-control-modern:focus,
.form-select-modern:focus {
    background: rgba(30, 33, 40, 0.8);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 0.25rem rgba(108, 92, 231, 0.25);
    color: var(--text-primary);
    outline: none;
}

.form-control-modern::placeholder {
    color: var(--text-muted);
}

.form-text-modern {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

/* Color Checkboxes */
.color-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.color-checkbox-item {
    position: relative;
}

.color-checkbox-item input {
    position: absolute;
    opacity: 0;
}

.color-checkbox-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--bg-dark);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.color-checkbox-label:hover {
    border-color: rgba(108, 92, 231, 0.3);
    background: rgba(30, 33, 40, 0.8);
}

.color-checkbox-item input:checked + .color-checkbox-label {
    border-color: var(--accent-primary);
    background: rgba(108, 92, 231, 0.1);
}

.color-checkbox-label span {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 576px) {
    .form-card {
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .color-checkboxes {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Stats Overview */
.stats-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
    height: 100%;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.1);
}

.stats-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    box-shadow: var(--shadow-md);
}

.stats-icon.bg-primary {
    background: var(--accent-gradient);
}

.stats-icon.bg-success {
    background: linear-gradient(135deg, #00b894, #00cec9);
}

.stats-icon.bg-danger {
    background: linear-gradient(135deg, #d63031, #e17055);
}

.stats-icon.bg-info {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
}

.stats-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.stats-content p {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

/* Deck Cards */
.deck-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.deck-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(108, 92, 231, 0.3);
}

.deck-card.deck-banned {
    border-color: rgba(214, 48, 49, 0.3);
    opacity: 0.8;
}

.deck-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.deck-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.deck-card-body {
    flex: 1;
    margin-bottom: 1rem;
}

.deck-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.deck-info-label {
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

.deck-info-value {
    color: var(--text-primary);
    font-weight: 500;
}

.deck-colors {
    display: flex;
    gap: 0.25rem;
}

.deck-description {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.deck-card-footer {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

/* Empty State */
.empty-state {
    background: var(--bg-card);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: var(--accent-gradient);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #fff;
    box-shadow: var(--shadow-md);
}

.empty-state h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .deck-header .btn-lg {
        width: 100%;
        margin-top: 1rem;
    }
    
    .stats-card {
        justify-content: center;
        text-align: center;
    }
}

/* Deck Header Card */
.deck-header-card {
    background: var(--accent-gradient);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.deck-header-card::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -150px;
    right: -150px;
}

.deck-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.deck-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

/* Deck Details Card */
.deck-details-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

/* Detail Items */
.detail-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(24, 26, 32, 0.5);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.detail-item:hover {
    border-color: rgba(108, 92, 231, 0.3);
    transform: translateX(5px);
}

.detail-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.detail-icon.bg-primary {
    background: var(--accent-gradient);
}

.detail-icon.bg-secondary {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
}

.detail-content {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Detail Sections */
.detail-section {
    padding: 1.25rem;
    background: rgba(24, 26, 32, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.deck-colors-display {
    display: flex;
    gap: 0.5rem;
    font-size: 2rem;
}

/* Meta Info */
.meta-info-grid {
    display: grid;
    gap: 0.75rem;
}

.meta-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.meta-label {
    color: var(--text-muted);
}

.meta-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* Action Buttons */
.deck-actions {
    display: flex;
    gap: 1rem;
}

/* Badges */
.badge {
    padding: 0.375rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.bg-success {
    background: linear-gradient(135deg, #00b894, #00cec9);
}

.badge.bg-danger {
    background: linear-gradient(135deg, #d63031, #e17055);
}

.badge.bg-secondary {
    background: rgba(173, 181, 189, 0.2);
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .deck-header-card {
        padding: 1.5rem;
    }
    
    .deck-title {
        font-size: 1.5rem;
    }
    
    .deck-details-card {
        padding: 1.5rem;
    }
    
    .deck-actions {
        flex-direction: column;
    }
    
    .detail-item {
        flex-direction: column;
        text-align: center;
    }
}

.tournament-show-header {
    background: var(--accent-gradient);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.tournament-show-header::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -150px;
    right: -150px;
}

.tournament-show-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
    position: relative;
    z-index: 1;
}

.tournament-show-date {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    position: relative;
    z-index: 1;
}

.info-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    /*height: 100%;*/
}

.info-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(24, 26, 32, 0.5);
    border-radius: 8px;
}

.info-item i {
    font-size: 1.125rem;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
    margin-left: auto;
}

.info-value.link {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.info-value.link:hover {
    color: var(--text-primary);
}

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

.stat-item {
    background: rgba(24, 26, 32, 0.5);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.matches-section {
    background: var(--bg-card);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.matches-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.matches-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.match-card {
    background: rgba(24, 26, 32, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    transition: var(--transition-smooth);
}

.match-card:hover {
    border-color: rgba(108, 92, 231, 0.3);
    transform: translateY(-2px);
}

.match-round {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-result-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.match-result-badge.result-win {
    background: linear-gradient(135deg, var(--success), #00cec9);
    color: #fff;
}

.match-result-badge.result-loss {
    background: linear-gradient(135deg, var(--danger), #e17055);
    color: #fff;
}

.match-result-badge.result-draw {
    background: linear-gradient(135deg, var(--warning), #e17055);
    color: var(--bg-dark);
}

.match-result-badge.result-bye {
    background: rgba(40, 146, 253, 0.2);
    color: var(--text-secondary);
}

.match-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.match-opponent,
.match-deck,
.match-score,
.match-notes {
    color: var(--text-secondary);
}

.match-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.empty-matches {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-matches-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: var(--accent-gradient);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
}

@media (max-width: 768px) {
    .tournament-show-header {
        padding: 1.5rem;
    }
    
    .tournament-show-title {
        font-size: 1.5rem;
    }
    
    .matches-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .matches-header .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Tournament Cards */
.tournament-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tournament-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(108, 92, 231, 0.3);
}

.tournament-card-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tournament-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.tournament-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.tournament-card-body {
    flex: 1;
    margin-bottom: 1rem;
}

.tournament-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.tournament-placement {
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    margin: 1rem 0;
}

.placement-badge {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.placement-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.placement-divider {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.placement-total {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.placement-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tournament-record {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(24, 26, 32, 0.5);
    border-radius: 12px;
    margin: 1rem 0;
}

.record-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.record-stat.win .record-number { color: var(--success); }
.record-stat.loss .record-number { color: var(--danger); }
.record-stat.draw .record-number { color: var(--warning); }

.record-number {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.record-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.record-divider {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.tournament-matches-count {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
}

.tournament-card-footer {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .tournament-header .btn-lg {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Result Checkbox Styling */
.result-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.result-checkbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: rgba(30, 33, 40, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.75rem;
    min-height: 120px;
}

.result-checkbox i {
    font-size: 2rem;
    transition: all 0.3s ease;
}

.result-checkbox span {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.result-checkbox:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Win Style */
.result-win i {
    color: #00b894;
}

.btn-check:checked + .result-win {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.2), rgba(0, 206, 201, 0.2));
    border-color: #00b894;
    box-shadow: 0 0 20px rgba(0, 184, 148, 0.4);
}

.btn-check:checked + .result-win span {
    color: #00b894;
}

/* Loss Style */
.result-loss i {
    color: #d63031;
}

.btn-check:checked + .result-loss {
    background: linear-gradient(135deg, rgba(214, 48, 49, 0.2), rgba(225, 112, 85, 0.2));
    border-color: #d63031;
    box-shadow: 0 0 20px rgba(214, 48, 49, 0.4);
}

.btn-check:checked + .result-loss span {
    color: #d63031;
}

/* Draw Style */
.result-draw i {
    color: #fdcb6e;
}

.btn-check:checked + .result-draw {
    background: linear-gradient(135deg, rgba(253, 203, 110, 0.2), rgba(225, 112, 85, 0.2));
    border-color: #fdcb6e;
    box-shadow: 0 0 20px rgba(253, 203, 110, 0.4);
}

.btn-check:checked + .result-draw span {
    color: #fdcb6e;
}

/* Bye Style */
.result-bye i {
    color: #74b9ff;
}

.btn-check:checked + .result-bye {
    background: linear-gradient(135deg, rgba(116, 185, 255, 0.2), rgba(9, 132, 227, 0.2));
    border-color: #74b9ff;
    box-shadow: 0 0 20px rgba(116, 185, 255, 0.4);
}

.btn-check:checked + .result-bye span {
    color: #74b9ff;
}

/* Select2 Dark Theme Customization */
.select2-container--default .select2-selection--single {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    height: 45px;
    padding: 0.625rem 1rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-primary);
    line-height: 28px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 43px;
    right: 8px;
}

.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.25);
}

.select2-dropdown {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.select2-search--dropdown .select2-search__field {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.5rem;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: var(--accent-primary);
    outline: none;
}

.select2-results__option {
    color: var(--text-primary);
    padding: 0.75rem 1rem;
}

.select2-results__option--highlighted {
    background: rgba(108, 92, 231, 0.2) !important;
}

.select2-results__option--selected {
    background: var(--accent-primary) !important;
}

@media (max-width: 576px) {
    .result-checkbox-group {
        grid-template-columns: repeat(2, 1fr);
    }
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--text-muted);
}

.select2-search--dropdown {
    padding: 0.75rem;
}

.select2-container--default .select2-results__option--disabled {
    color: var(--text-muted);
}

  /* Riduci le icone della toolbar Quill */
.ql-toolbar.ql-snow button,
.ql-toolbar.ql-snow .ql-picker-label,
.ql-toolbar.ql-snow .ql-picker-item {
    font-size: 14px; /* dimensione più piccola per le icone */
}

/* Riduci la dimensione delle frecce nel picker (ad esempio header, size, font) */
.ql-toolbar.ql-snow .ql-stroke,
.ql-toolbar.ql-snow .ql-fill {
    stroke-width: 1.5px; /* rende le frecce più sottili */
}

/* Opzionale: riduci padding dei pulsanti */
.ql-toolbar.ql-snow button,
.ql-toolbar.ql-snow .ql-picker-label {
    padding: 4px 6px;
}

/* Quill Editor Dark Theme Customization */
.ql-toolbar.ql-snow {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px 8px 0 0;
    padding: 12px;
    height: auto;
    min-height: 42px;
    line-height: 1.2;
}

.ql-container.ql-snow {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 8px 8px;
    color: var(--text-primary);
    font-family: inherit;
}

.ql-editor {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
}

.ql-editor.ql-blank::before {
    color: #c0c0c0; /* grigio chiaro */
    font-style: normal;
    opacity: 0.6;
}

.ql-snow .ql-stroke {
    stroke: var(--text-primary);
}

.ql-snow .ql-fill {
    fill: var(--text-primary);
}

.ql-snow .ql-picker-label {
    color: var(--text-primary);
}

.ql-toolbar.ql-snow .ql-picker-label:hover,
.ql-toolbar.ql-snow .ql-picker-label.ql-active {
    color: var(--accent-primary);
}

.ql-toolbar.ql-snow button:hover,
.ql-toolbar.ql-snow button.ql-active {
    color: var(--accent-primary);
}

.ql-toolbar.ql-snow button:hover .ql-stroke,
.ql-toolbar.ql-snow button.ql-active .ql-stroke {
    stroke: var(--accent-primary);
}

.ql-toolbar.ql-snow button:hover .ql-fill,
.ql-toolbar.ql-snow button.ql-active .ql-fill {
    fill: var(--accent-primary);
}

.ql-picker-options {
    background: var(--bg-card)!important;
}

.ql-snow .ql-picker-options {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
}

.ql-snow .ql-picker-item:hover {
    color: var(--accent-primary);
}

.ql-editor h1, .ql-editor h2, .ql-editor h3 {
    color: var(--text-primary);
}

.ql-editor a {
    color: var(--accent-primary);
}

.ql-editor blockquote {
    border-left-color: var(--accent-primary);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

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

.modal-content.glass-effect {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 247, 250, 0.95) 100%);
}

.modal-header {
    padding: 1.5rem 1.5rem 1rem;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem;
}

/* Animazione smooth per il modal */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: none;
}

/* Stile per il backdrop */
.modal-backdrop.show {
    opacity: 0.7;
    backdrop-filter: blur(3px);
}

/* ============================================
   PAGINATION - Override Tailwind Default Styles
   ============================================ */

/* Container principale */
nav[aria-label="Pagination Navigation"] {
    margin: 2rem 0;
}

/* Nascondi la versione mobile (sm:hidden) e mostra solo desktop */
nav[aria-label="Pagination Navigation"] .sm\:hidden {
    display: none !important;
}

/* Container dei link */
nav[aria-label="Pagination Navigation"] > div > div:last-child {
    width: 100%;
    justify-content: center;
}

/* Span container dei bottoni */
nav[aria-label="Pagination Navigation"] span.relative.z-0 {
    display: flex;
    gap: 0.5rem;
    box-shadow: none !important;
}

/* Reset bordi arrotondati dei primi/ultimi */
nav[aria-label="Pagination Navigation"] .rounded-l-md {
    border-radius: 8px !important;
}

nav[aria-label="Pagination Navigation"] .rounded-r-md {
    border-radius: 8px !important;
}

/* Tutti i link e span della paginazione */
nav[aria-label="Pagination Navigation"] a,
nav[aria-label="Pagination Navigation"] span.relative {
    background: var(--bg-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text-primary) !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
    transition: var(--transition-smooth) !important;
    font-weight: 500 !important;
    min-width: 45px !important;
    text-align: center !important;
    margin-left: 0 !important;
    box-shadow: none !important;
}

/* Hover state */
nav[aria-label="Pagination Navigation"] a:hover {
    background: var(--bg-hover) !important;
    border-color: rgba(108, 92, 231, 0.3) !important;
    color: var(--text-primary) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm) !important;
}

/* Active/Current page */
nav[aria-label="Pagination Navigation"] span[aria-current="page"] span {
    background: var(--accent-gradient) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.4) !important;
}

/* Disabled state (previous quando sei alla prima pagina) */
nav[aria-label="Pagination Navigation"] span[aria-disabled="true"] span {
    background: rgba(30, 33, 40, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}

nav[aria-label="Pagination Navigation"] span[aria-disabled="true"] span:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Icone SVG */
nav[aria-label="Pagination Navigation"] svg {
    width: 1rem !important;
    height: 1rem !important;
    color: currentColor !important;
}

/* Testo "Showing X to Y of Z results" */
nav[aria-label="Pagination Navigation"] p.text-sm {
    color: var(--text-secondary) !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
}

nav[aria-label="Pagination Navigation"] p.text-sm span {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    min-width: auto !important;
}

/* Focus state */
nav[aria-label="Pagination Navigation"] a:focus {
    outline: none !important;
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.25) !important;
    border-color: var(--accent-primary) !important;
}

/* Mobile responsive */
@media (max-width: 576px) {
    nav[aria-label="Pagination Navigation"] span.relative.z-0 {
        gap: 0.25rem;
    }
    
    nav[aria-label="Pagination Navigation"] a,
    nav[aria-label="Pagination Navigation"] span.relative {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.875rem !important;
        min-width: 38px !important;
    }
    
    /* Nascondi alcuni numeri su mobile mantenendo first, last e current */
    nav[aria-label="Pagination Navigation"] span.relative.z-0 > a:not(:first-of-type):not(:last-of-type):not(:nth-child(2)):not(:nth-last-child(2)) {
        display: none !important;
    }
}

/* Fix per margini negativi */
nav[aria-label="Pagination Navigation"] .-ml-px {
    margin-left: 0 !important;
}

/* Fix per z-index */
nav[aria-label="Pagination Navigation"] .z-10 {
    z-index: auto !important;
}

/* Remove focus ring default */
nav[aria-label="Pagination Navigation"] .ring {
    box-shadow: none !important;
}

nav[aria-label="Pagination Navigation"] .focus\:ring:focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.25) !important;
}
