/* DASHBOARD STYLES */
.dashboard-body {
    grid-template-columns: 1fr !important;
    max-width: 1200px !important;
}

.dashboard-main {
    width: 100%;
}

.dashboard-header {
    margin-bottom: 32px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-stats {
    display: flex;
    gap: 16px;
}

.stat-card {
    background: var(--green-light);
    border-radius: 8px;
    padding: 16px 24px;
    text-align: center;
    min-width: 150px;
    border: 1px solid var(--border);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--green);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box,
.filter-select {
    padding: 10px 13px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.93rem;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(46, 125, 70, 0.12);
}

.filter-select {
    min-width: 180px;
}

.filter-select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(46, 125, 70, 0.12);
}

.btn-clear-all {
    padding: 10px 16px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.15s;
}

.btn-clear-all:hover {
    border-color: #c0392b;
    color: #c0392b;
    background: rgba(192, 57, 43, 0.05);
}

/* APPLICATIONS LIST */
.applications-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.empty-state {
    text-align: center;
    padding: 60px 40px;
    background: var(--offwhite);
    border-radius: 10px;
    border: 1px dashed var(--border);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.empty-state h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.empty-state p {
    color: var(--muted);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* APPLICATION CARD */
.application-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    background: #fff;
}

.application-card:hover {
    border-color: var(--green);
    box-shadow: 0 4px 12px rgba(46, 125, 70, 0.1);
}

.app-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: var(--offwhite);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.app-card-header:hover {
    background: var(--green-light);
}

.app-basic-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.app-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.app-names {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.app-name {
    font-weight: 600;
    font-size: 0.93rem;
    color: var(--text);
}

.app-position {
    font-size: 0.8rem;
    color: var(--muted);
}

.app-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chevron-expand {
    font-size: 0.75rem;
    color: var(--muted);
    transition: transform 0.25s;
}

.application-card.open .chevron-expand {
    transform: rotate(180deg);
    color: var(--green);
}

.btn-delete {
    background: none;
    border: none;
    color: #c0392b;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    transition: opacity 0.15s;
}

.btn-delete:hover {
    opacity: 0.7;
}

/* APPLICATION DETAILS */
.app-card-body {
    display: none;
    padding: 18px;
    border-top: 1px solid var(--border);
    background: #fff;
}

.application-card.open .app-card-body {
    display: block;
}

.app-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 4px;
}

.detail-value {
    font-size: 0.93rem;
    color: var(--text);
    font-weight: 500;
}

@media (max-width: 900px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-stats {
        width: 100%;
    }

    .dashboard-filters {
        flex-direction: column;
    }

    .search-box,
    .filter-select,
    .btn-clear-all {
        width: 100%;
    }

    .app-details-grid {
        grid-template-columns: 1fr;
    }

    .app-card-header {
        flex-wrap: wrap;
    }

    .app-card-actions {
        width: 100%;
        margin-top: 12px;
        justify-content: space-between;
    }
}
