﻿.page-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 25px;
}

.dashboard {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 15px;
}

.card-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,.05);
    text-align: center;
}

.card-title {
    color: #666;
    font-size: 14px;
}

.card-value {
    font-size: 26px;
    font-weight: bold;
    margin-top: 5px;
}

/* Quick Actions */
.quick-actions h3 {
    margin-bottom: 10px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-primary {
    background: #007bff;
    border: none;
    padding: 10px 20px;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

    .btn-primary:hover {
        background: #005ecb;
    }

/* latest items */
.latest-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.latest-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,.05);
}

    .latest-box h3 {
        margin-bottom: 15px;
        font-size: 18px;
    }

    .latest-box ul {
        padding: 0;
        list-style: none;
    }

    .latest-box li {
        padding: 5px 0;
        border-bottom: 1px solid #eee;
    }

.empty {
    color: #888;
    font-size: 14px;
}


/*///////////////////*/
.dashboard-container {
    padding: 25px;
}

.dashboard-title {
    font-size: 26px;
    margin-bottom: 20px;
    font-weight: bold;
}

.loading {
    font-size: 18px;
    color: #555;
}

.profile-warning {
    font-size: 16px;
    padding: 15px;
    border-radius: 8px;
}

.dashboard-content {
    margin-top: 20px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.card-box {
    background: #ffffff;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.card-title {
    color: #555;
    font-size: 14px;
}

.card-value {
    font-size: 20px;
    margin-top: 6px;
}

    .card-value.ok {
        color: #00aa44;
    }

    .card-value.pending {
        color: #dd9900;
    }

.section-box {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.btn-action {
    display: block;
    padding: 12px;
    width: 100%;
    margin: 8px 0;
    border: none;
    background: #3a7cec;
    color: white;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: .2s;
}

    .btn-action:hover {
        background: #2f6ad1;
    }

.dashboard-wrapper {
    max-width: 1200px;
    margin: auto;
    padding: 24px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

    .dashboard-header h2 {
        margin: 0;
    }

.subtitle {
    color: #777;
    font-size: 14px;
}

.role-badge {
    background: #2563eb;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.stat-icon {
    font-size: 28px;
    margin-right: 16px;
}

.stat-info .label {
    font-size: 13px;
    color: #888;
}

.stat-info .value {
    font-size: 16px;
    font-weight: 600;
}

.ok {
    color: #16a34a;
}

.pending {
    color: #f97316;
}

.actions-box {
    background: #f9fafb;
    padding: 20px;
    border-radius: 14px;
}

.actions-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.action-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
}

    .action-btn.danger {
        background: #dc2626;
    }

.dashboard-alert {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    padding: 14px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.dashboard-loading {
    text-align: center;
    padding: 80px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
