/* ============================================
   DASHBOARD STYLES
   ============================================ */

:root {
    /* Dashboard specific colors */
    --dash-primary-color: #147e93;
    --dash-success-color: #28a745;
    --dash-warning-color: #ffc107;
    --dash-danger-color: #f6040d;
    --dash-info-color: #1fa3bd;
    --dash-light-bg: #f8f9fa;
    --dash-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --dash-hover-shadow: 0 8px 16px rgba(20, 126, 147, 0.15);
}

/* ============================================
   PAGE WRAPPER
   ============================================ */

.dashboard-wrapper {
    width: 100%;
    box-sizing: border-box;
    background-color: var(--dash-light-bg);
    padding: 0;
    margin: 0;
}

.dashboard-wrapper * {
    box-sizing: border-box;
}

.container-fluid {
    width: 100%;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.dashboard-container {
    padding: 2rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ============================================
   HEADER CARD
   ============================================ */

.dashboard-header {
    background: linear-gradient(135deg, var(--dash-primary-color) 0%, var(--dash-info-color) 100%);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    margin: 0 0 2rem 0;
    box-shadow: var(--dash-hover-shadow);
    width: 100%;
    box-sizing: border-box;
}

.dashboard-header h2 {
    margin: 0 0 0.5rem 0;
    padding: 0;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
    line-height: 1.2;
}

.dashboard-header p {
    margin: 0;
    padding: 0;
    opacity: 0.95;
    font-size: 14px;
    line-height: 1.5;
}

/* ============================================
   STATISTICS SECTION
   ============================================ */

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.stat-card {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: var(--dash-card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--dash-hover-shadow);
}

.stat-card .card-body {
    padding: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.stat-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-label {
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.5rem 0;
    padding: 0;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    padding: 0;
    line-height: 1;
    word-break: break-word;
}

.stat-value.teal {
    color: var(--dash-primary-color);
}

.stat-value.red {
    color: var(--dash-danger-color);
}

.stat-value.green {
    color: var(--dash-success-color);
}

.stat-value.yellow {
    color: var(--dash-warning-color);
}

.stat-icon-wrapper {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.stat-icon-wrapper.teal {
    background: linear-gradient(135deg, var(--dash-primary-color), var(--dash-info-color));
}

.stat-icon-wrapper.red {
    background: linear-gradient(135deg, var(--dash-danger-color), #ff5733);
}

.stat-icon-wrapper.green {
    background: linear-gradient(135deg, var(--dash-success-color), #5cb85c);
}

.stat-icon-wrapper.yellow {
    background: linear-gradient(135deg, var(--dash-warning-color), #ffb300);
}

/* ============================================
   QUICK ACCESS SECTION
   ============================================ */

.quick-access-section {
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dash-primary-color);
    margin: 0 0 1.5rem 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    font-size: 22px;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    min-height: 120px;
    border: 2px solid var(--dash-primary-color);
    background: white;
    color: var(--dash-primary-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
}

.quick-btn:hover {
    background-color: var(--dash-primary-color);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(20, 126, 147, 0.25);
}

.quick-btn i {
    font-size: 28px;
    margin-bottom: 0.75rem;
}

.quick-btn p {
    font-size: 12px;
    text-align: center;
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

/* ============================================
   RECENT ACTIVITIES SECTION
   ============================================ */

.activities-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.card {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: var(--dash-card-shadow);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
    width: 100%;
    box-sizing: border-box;
}

.card-header h5 {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--dash-primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-body {
    padding: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    width: 100%;
    box-sizing: border-box;
}

.activity-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.activity-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    min-width: 40px;
}

.activity-icon.success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--dash-success-color);
}

.activity-icon.info {
    background-color: rgba(20, 126, 147, 0.1);
    color: var(--dash-primary-color);
}

.activity-icon.warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--dash-warning-color);
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-content p {
    margin: 0 0 0.25rem 0;
    padding: 0;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.activity-content small {
    margin: 0;
    padding: 0;
    color: #999;
    font-size: 12px;
}

/* ============================================
   QUICK STATS SECTION
   ============================================ */

.quick-stats-card .card-body {
    padding: 1.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin: 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row span:first-child {
    color: #666;
    font-weight: 500;
}

.stat-row strong {
    font-size: 16px;
}

.tip-card {
    background: linear-gradient(135deg, var(--dash-primary-color), var(--dash-info-color));
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0 0 0;
    width: 100%;
    box-sizing: border-box;
}

.tip-card h5 {
    margin: 0 0 1rem 0;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
}

.tip-card ul {
    list-style-position: inside;
    padding-left: 0;
    margin: 0;
}

.tip-card li {
    font-size: 13px;
    margin-bottom: 0.5rem;
    padding: 0;
    line-height: 1.5;
}

.tip-card li:last-child {
    margin-bottom: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .activities-container {
        grid-template-columns: 1fr;
    }

    .statistics-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.2rem;
    }

    .quick-access-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .dashboard-container {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .statistics-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .stat-card .card-body {
        padding: 1rem;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .quick-access-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .quick-btn {
        padding: 1rem 0.75rem;
        min-height: 100px;
    }

    .quick-btn i {
        font-size: 24px;
        margin-bottom: 0.5rem;
    }

    .quick-btn p {
        font-size: 11px;
    }

    .dashboard-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .dashboard-header h2 {
        font-size: 22px;
        gap: 0.5rem;
    }

    .dashboard-header h2 i {
        font-size: 24px;
    }

    .section-title {
        font-size: 16px;
        margin-bottom: 1rem;
    }

    .dashboard-container {
        padding: 1rem;
    }

    .card-header {
        padding: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .activity-item {
        gap: 0.75rem;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .stat-row {
        padding: 0.75rem 0;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .statistics-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .stat-card .card-body {
        padding: 0.75rem;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-label {
        font-size: 12px;
    }

    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .quick-btn {
        padding: 0.75rem 0.5rem;
        min-height: 90px;
        font-size: 11px;
    }

    .quick-btn i {
        font-size: 20px;
        margin-bottom: 0.25rem;
    }

    .dashboard-header h2 {
        font-size: 18px;
    }

    .dashboard-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .dashboard-container {
        padding: 0.75rem;
    }

    .card-header {
        padding: 1rem;
    }

    .activities-container {
        gap: 1rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card,
.card {
    animation: slideUp 0.4s ease-out;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.15s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }
.stat-card:nth-child(4) { animation-delay: 0.25s; }

/* ============================================
   UTILITIES
   ============================================ */

.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.fw-bold {
    font-weight: 700;
}

.fw-500 {
    font-weight: 500;
}

.text-muted {
    color: #6c757d;
}

.d-flex {
    display: flex;
}

.flex-grow-1 {
    flex: 1;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}
