/* Dashboard Section */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--card-gap, 1.25rem);
    flex-wrap: wrap;
    gap: 1rem;
}

.panel-header h2 {
    margin-bottom: 0;
}

.highlight-panel {
    border: 1px solid rgba(236, 72, 153, 0.3);
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.1);
}

.highlight-panel h2 i {
    color: #ec4899;
}

.date-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Revision Cards */
.revision-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--card-gap, 1.25rem);
}

.revision-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.revision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--card-color, var(--accent-primary));
}

.revision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-subject {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--card-color, var(--text-secondary));
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.card-topic {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.revision-badge {
    background: rgba(236, 72, 153, 0.2);
    color: #fbcfe8;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.8rem;
}

.btn-complete-revision {
    width: 100%;
    margin-top: auto;
    /* Push to bottom naturally */
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #a7f3d0;
    padding: 0.6rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-complete-revision:hover {
    background: rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #fef2f2;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* All Topics List */
.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* Topic List Item */
.topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.2s;
}

.topic-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

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

.topic-info-main h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.topic-info-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    gap: 1rem;
}

.topic-info-sub span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.topic-subject-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--card-color);
}

.status-pills {
    display: flex;
    gap: 0.25rem;
}

.status-pill {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    cursor: help;
}

.status-pill.completed {
    background: var(--color-computer);
    /* Emerald */
    color: white;
    border-color: transparent;
}

.status-pill.pending {
    opacity: 0.5;
    /* Visual cue for pending */
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.animated-entry {
    opacity: 0;
    animation: fadeIn 0.4s ease-out forwards;
}


@media (max-width: 576px) {
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .panel-header .history-nav {
        width: 100%;
        justify-content: space-between;
        background: rgba(255, 255, 255, 0.03);
        padding: 0.5rem;
        border-radius: 1rem;
    }
}
