﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/* Dashboard Styles */
.dashboard-container {
    padding: 20px 0;
}

.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.dashboard-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.dashboard-actions .btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .dashboard-actions .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

/* KPI Cards */
.kpi-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
}

    .kpi-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

.kpi-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

    .kpi-icon i {
        font-size: 24px;
        color: white;
    }

.kpi-content {
    flex: 1;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #2d3748;
}

.kpi-label {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 8px;
}

.kpi-trend {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

    .kpi-trend.positive {
        color: #38a169;
        background-color: #f0fff4;
    }

    .kpi-trend.negative {
        color: #e53e3e;
        background-color: #fff5f5;
    }

    .kpi-trend i {
        margin-right: 4px;
    }

/* Chart Cards */
.chart-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    height: 100%;
}

.chart-header {
    padding: 20px 24px 0;
    display: flex;
    justify-content: between;
    align-items: center;
    border-bottom: 1px solid #f7fafc;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.chart-controls select {
    width: auto;
    min-width: 140px;
}

.chart-body {
    padding: 0 24px 24px;
}

/* Activity Card */
.activity-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    height: 100%;
}

.activity-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f7fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.activity-body {
    padding: 0;
}

.activity-item {
    padding: 20px 24px;
    border-bottom: 1px solid #f7fafc;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

    .activity-item:last-child {
        border-bottom: none;
    }

    .activity-item:hover {
        background-color: #f7fafc;
    }

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

    .activity-icon i {
        font-size: 16px;
        color: white;
    }

.activity-content {
    flex: 1;
}

    .activity-content h6 {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 4px;
        color: #2d3748;
    }

    .activity-content p {
        font-size: 0.85rem;
        margin: 0;
    }

.activity-action {
    flex-shrink: 0;
}

/* Quick Actions Card */
.quick-actions-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    height: 100%;
}

.quick-actions-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f7fafc;
}

.quick-actions-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.quick-actions-body {
    padding: 24px;
}

.quick-action-item {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

    .quick-action-item:hover {
        background-color: #f7fafc;
        transform: translateY(-2px);
    }

.quick-action-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

    .quick-action-icon i {
        font-size: 20px;
        color: white;
    }

.quick-action-item h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
}

.quick-action-item p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* Background Colors */
.bg-primary {
    background-color: #667eea !important;
}

.bg-success {
    background-color: #48bb78 !important;
}

.bg-warning {
    background-color: #ed8936 !important;
}

.bg-info {
    background-color: #4299e1 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-header {
        text-align: center;
        padding: 20px;
    }

    .dashboard-title {
        font-size: 2rem;
    }

    .dashboard-actions {
        margin-top: 20px;
    }

    .kpi-card {
        margin-bottom: 20px;
    }

    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .activity-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .quick-action-item {
        margin-bottom: 15px;
    }
}

/* Animation for loading states */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kpi-card, .chart-card, .activity-card, .quick-actions-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
