/* Gap Analysis Dashboard Styling */
.ttc-gap-analysis-wrap {
    animation: k12-fade-in 0.5s ease-out;
}

@keyframes k12-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gap-tile {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.gap-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.chapter-gap-card {
    transition: border-color 0.2s;
}

.chapter-gap-card:hover {
    border-color: #4f46e5;
}

.gap-item {
    transition: background 0.2s;
}

.gap-item:hover {
    background: #f8fafc;
}

/* Modal Overlay for Gap Report */
.gap-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gap-modal-content {
    background: #f1f5f9;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    border-radius: 24px;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.close-gap-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Donut Progress Pulse */
.mastery-donut {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    border: 8px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Path Step Connector */
.path-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 12px;
    top: 24px;
    width: 2px;
    height: calc(100% - 12px);
    background: rgba(255, 255, 255, 0.2);
}