/* .card-title{
    box-shadow: 2px 2px lightblue;
}
 */

/* HERO HEADER SECTION */
.hero-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    /* padding: 2rem 0 3.5rem 0; */
    margin-bottom: 3rem;
    box-shadow: 0 0.7rem 1rem rgba(0, 0, 0,0.5);
    background-image: url('/assets/images/app/bandaeu-akv-nologo-1920-229.jpg');
    /* background-position: center; */
    background-position-x: center;
    background-position-y: -1px;
}

/* .hero-section::before {
    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="karate" patternUnits="userSpaceOnUse" width="20" height="20"><circle cx="10" cy="10" r="1" fill="rgba(212,175,55,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23karate)"/></svg>') repeat;
    opacity: 0.3;
}
 */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    /* background: linear-gradient(180deg, transparent 0%, var(--soft-white) 100%); */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-badge {
    /* display: inline-flex;
    align-items: center; */
    width: 250px;
    background: rgba(212, 175, 55, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--karate-gold);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-title {
    text-transform: uppercase;
    font-size: clamp(3rem, 6vw, 3rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
    line-height: 1;
}

.hero-title .highlight {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-family: 'AGLAE-title', 'Playfair Display', serif;
    /* background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; */
    background-clip: text;
    color: var(--karate-gold);
    text-shadow: #000 2px 2px 5px;
}

.brand-subtitle.dashboard {
    font-size: 1.7rem;
    letter-spacing: 5px;
    text-shadow: #000 1px 1px 3px;
    color: var(--karate-gold);
    font-weight: 1000;
    text-transform: uppercase;
}

.hero-subtitle {
    /* font-size: 1rem; */
    color: rgba(0,0,0,1);
    /* font-weight: 400; */
    font-weight: 900;
    /* letter-spacing: 0.1rem; */
    letter-spacing: 0.3rem;
    text-shadow: #ffffff 2px 2px 20px;
    /* max-width: 700px; */
    /* margin: 0 auto 2rem; */
    /* line-height: 1.5; */
    text-transform: uppercase;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-stat {
    text-align: center;
    color: white;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* COMPLETION ALERT */
.completion-alert {
    background: linear-gradient(135deg, #fff8e1 0%, #fef3c7 100%);
    border: 2px solid #f59e0b;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    animation: slideInDown 0.6s ease-out;
}

.completion-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

.alert-content {
    padding: 2rem;
}

.alert-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.alert-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.alert-text h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.alert-text p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
}

/* MAIN CARDS */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
}

.main-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.main-card.registrations::before {
    background: var(--gradient-red);
}

.main-card.schedule::before {
    background: var(--gradient-blue);
}

.main-card.documents::before {
    background: var(--gradient-gold);
}

.main-card.payments::before {
    background: var(--gradient-green);
}   

.main-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-header-custom {
    padding: 2rem 2rem 1rem 2rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.8rem;
    color: white;
    box-shadow: var(--shadow-sm);
}

.card-icon.registrations {
    background: var(--gradient-red);
}

.card-icon.schedule {
    background: var(--gradient-blue);
}

.card-icon.documents {
    background: var(--gradient-gold);
}

.card-icon.payments {
    background: var(--gradient-green);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.card-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.card-body-custom {
    padding: 1rem 2rem 2rem 2rem;
}

.wrapper-doc-list{
    overflow: auto;
    max-height: 400px;
}

.not-finished-blur{
    filter: blur(0.4rem);
}
/* Registration Items */
.registration-item,
.document-item {
    background: rgba(248, 249, 250, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.registration-item:hover,
.document-item:hover {
    background: white;
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.item-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.item-info{
    min-width: 85px;
}

.item-info h6 {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

.item-info small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.progress-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.progress-steps {
    display: flex;
    gap: 3px;
}

.progress-step {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dee2e6;
    transition: all 0.3s ease;
}

.progress-step.completed {
    background: var(--karate-gold);
    transform: scale(1.1);
}

.progress-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Schedule Grid */
.schedule-preview {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.schedule-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.schedule-day {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.5rem 0;
}

.schedule-slots {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.schedule-slot {
    background: var(--blue-color);
    color: white;
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.2;
    font-weight: 500;
}

.schedule-slot.empty {
    background: transparent;
}

 /* Payment Items */
.payment-summary {
    background: linear-gradient(135deg, var(--light-gray) 0%, white 100%);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.payment-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-green);
    border-radius: 16px 16px 0 0;
}

.payment-total {
    text-align: center;
    margin-bottom: 1rem;
}

.payment-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--green-color);
    display: block;
    margin-bottom: 0.25rem;
    line-height: 3rem;
}

.payment-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.payment-breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.payment-stat {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.payment-stat-amount {
    font-size: 1.4rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.payment-stat-amount.paid {
    color: var(--green-color);
}

.payment-stat-amount.pending {
    color: #f59e0b;
}

.payment-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-item {
    background: rgba(248, 249, 250, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.payment-item:hover {
    background: white;
    border-color: rgba(5, 150, 105, 0.3);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.payment-item.overdue {
    border-color: rgba(239, 68, 68, 0.3);
    background-color: rgba(0, 0, 0, 0.05);
    background-size: 200% 200%;
    animation: attention-pulse 3s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.15);
    border-radius: 12px;
}

@keyframes attention-pulse {
    0%, 100% {
        transform: scale(1);
        background-position: 0% 50%;
        background-color: rgba(0, 0, 0, 0.05);
        box-shadow: 0 3px 15px rgba(255, 255, 255, 0.15);
    }
    50% {
        transform: scale(1.02);
        background-position: 100% 50%;
        background-color: #ffb2b2;
        box-shadow: 0 5px 20px rgba(255, 25, 0, 0.3);
    }
}

.payment-item.validated {
    border-color: rgba(239, 68, 68, 0.3);
    background: var(--gradient-green-subtile);
}

.payment-item.overdue:hover {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(254, 242, 242, 1);
}

/* Badge "Attention requise" pour overdue */
.payment-item.overdue::before {
    content: "⚠️ Attention requise";
    position: relative;
    top: -35px;
    right: 0;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    animation: badge-glow 2s ease-in-out infinite alternate;
}

/* Animation du badge */
@keyframes badge-glow {
    from {
        box-shadow: 0 2px 12px rgba(231, 76, 60, 0.4);
        transform: scale(1);
    }
    to {
        box-shadow: 0 3px 15px rgba(231, 76, 60, 0.6);
        transform: scale(1.02);
    }
}

.payment-info h6 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.payment-due {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.payment-due.overdue {
    color: var(--primary-color);
    font-weight: 7000;
    /* animation : attention-pulse-text 3s ease-in-out infinite; */
}


@keyframes attention-pulse-text {
    0%, 100% {
        color: #ff4141;
    }
    50% {
        color: #f8e9e9;
    }
}
.payment-amount-item {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--green-color);
}

/* Documents Section */
.document-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.document-stat {
    background: linear-gradient(135deg, var(--light-gray) 0%, white 100%);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.document-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.document-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.upload-zone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    background: rgba(248, 249, 250, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 1rem;
}

.upload-zone:hover {
    border-color: var(--karate-gold);
    background: rgba(212, 175, 55, 0.05);
}

.upload-zone i {
    font-size: 2rem;
    color: var(--karate-gold);
    margin-bottom: 0.5rem;
}

/* Action Buttons */
/* .btn-custom {
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
} */

.btn-primary-custom {
    background: var(--gradient-red);
    color: white;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-secondary-custom {
    background: var(--gradient-blue);
    color: white;
}

.btn-secondary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-tertiary-custom {
    background: var(--gradient-gold);
    color: white;
}

.btn-tertiary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-quaternary-custom {
    background: var(--gradient-green);
    color: white;
}

.btn-quaternary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* NEWS SECTION */
.news-section {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

.news-header {
    padding: 2rem 2rem 1rem 2rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.news-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-gold);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    color: white;
    font-size: 1.8rem;
    box-shadow: var(--shadow-sm);
}

.news-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.news-body {
    padding: 1rem 2rem 2rem 2rem;
}

.news-item {
    background: rgba(248, 249, 250, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.news-item:hover {
    background: white;
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.news-item-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.news-content {
    color: var(--primary-color);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ANIMATIONS */
@keyframes slideInDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.main-card:nth-child(1) {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.main-card:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.main-card:nth-child(3) {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.news-section {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0 2rem 0;
        background-position-x: 0px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .cards-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card-header-custom,
    .card-body-custom,
    .news-header,
    .news-body,
    .alert-content {
        padding: 1.5rem;
    }

    .schedule-days,
    .schedule-slots {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    
    .document-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .alert-header {
        flex-direction: column;
        text-align: center;
    }

    .alert-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .brand-subtitle.dashboard {
        font-size: 1.2rem;
        letter-spacing: 3px;
    }
}


        .thank-you-text {
            color: rgba(255, 255, 255, 0.9);
            font-size: 1rem;
            line-height: 1.4;
        }
        .thank-you-card {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            border: none;
            box-shadow: 0 8px 25px rgba(40, 167, 69, 0.2);
            border-radius: 12px;
        }
        
        .thank-you-icon {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: white;
        }
        .btn-close-custom {
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.3);
            color: white;
            border-radius: 8px;
            padding: 8px 16px;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        
        .btn-close-custom:hover {
            background: rgba(255, 255, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.5);
            color: white;
            transform: translateY(-1px);
        }
        .thank-you-title {
            color: white;
            font-weight: 600;
            font-size: 1.25rem;
            margin-bottom: 8px;
        }