/* Mobile Responsive Dashboard */

@media (max-width: 768px) {
    /* Dashboard grid */
    .dashboard-grid,
    .row {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    [class*="col-"] {
        width: 100% !important;
        flex: 1 0 100%;
    }

    /* Dashboard cards */
    .dashboard-card,
    .stat-card,
    .info-card {
        width: 100%;
        padding: 1.5rem;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        margin-bottom: 1rem;
    }

    .dashboard-card h3,
    .stat-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .dashboard-card p,
    .stat-card p {
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
    }

    /* Stat boxes */
    .stat-box {
        background-color: #f8f9fa;
        border-radius: 8px;
        padding: 1.5rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .stat-value {
        font-size: 2rem;
        font-weight: bold;
        color: var(--primary-blue);
        margin-bottom: 0.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
        color: #666;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* Quick actions */
    .quick-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .quick-actions .btn {
        width: 100%;
        padding: 0.75rem;
        text-align: center;
    }

    /* Navigation cards */
    .nav-card {
        display: block;
        padding: 1.5rem;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        text-decoration: none;
        color: inherit;
        margin-bottom: 1rem;
        transition: all 0.3s ease;
    }

    .nav-card:hover {
        background-color: #f8f9fa;
        border-color: var(--primary-blue);
        box-shadow: 0 2px 8px rgba(69, 105, 144, 0.15);
    }

    .nav-card i {
        font-size: 2rem;
        color: var(--primary-blue);
        margin-bottom: 0.5rem;
        display: block;
    }

    .nav-card h4 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .nav-card p {
        font-size: 0.85rem;
        color: #666;
        margin: 0;
    }

    /* Charts and graphs */
    .chart-container {
        position: relative;
        height: 300px;
        margin-bottom: 1.5rem;
        padding: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        background-color: #f8f9fa;
    }

    /* List with icons */
    .dashboard-list {
        list-style: none;
        padding: 0;
    }

    .dashboard-list li {
        padding: 1rem;
        border-bottom: 1px solid #dee2e6;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .dashboard-list li:last-child {
        border-bottom: none;
    }

    .dashboard-list li i {
        font-size: 1.5rem;
        color: var(--primary-blue);
        flex-shrink: 0;
    }

    .dashboard-list li .content {
        flex: 1;
    }

    .dashboard-list li .content h5 {
        margin-bottom: 0.25rem;
        font-size: 0.95rem;
    }

    .dashboard-list li .content p {
        margin: 0;
        font-size: 0.85rem;
        color: #666;
    }

    /* Progress bars */
    .progress {
        height: 8px;
        border-radius: 4px;
        background-color: #e9ecef;
        margin-top: 0.5rem;
    }

    .progress-bar {
        background-color: var(--primary-blue);
    }

    /* Timeline */
    .timeline {
        list-style: none;
        padding: 0;
        position: relative;
    }

    .timeline::before {
        content: '';
        position: absolute;
        left: 20px;
        top: 0;
        bottom: 0;
        width: 2px;
        background-color: #dee2e6;
    }

    .timeline li {
        padding: 1.5rem;
        padding-left: 60px;
        position: relative;
        margin-bottom: 1rem;
    }

    .timeline li::before {
        content: '';
        position: absolute;
        left: 12px;
        top: 1.5rem;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background-color: var(--primary-blue);
        border: 2px solid white;
        box-shadow: 0 0 0 2px #dee2e6;
    }

    /* Empty state */
    .empty-state {
        text-align: center;
        padding: 3rem 1.5rem;
    }

    .empty-state i {
        font-size: 3rem;
        color: #ccc;
        margin-bottom: 1rem;
        display: block;
    }

    .empty-state h4 {
        font-size: 1.1rem;
        color: #666;
        margin-bottom: 0.5rem;
    }

    .empty-state p {
        color: #999;
        margin-bottom: 1.5rem;
    }

    /* Alerts */
    .alert {
        padding: 1rem;
        margin-bottom: 1.5rem;
        border-radius: 4px;
    }

    .alert i {
        margin-right: 0.75rem;
    }
}

@media (max-width: 480px) {
    .dashboard-card,
    .stat-card,
    .nav-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .nav-card i {
        font-size: 1.75rem;
    }

    .chart-container {
        height: 250px;
        padding: 0.75rem;
    }

    .timeline li {
        padding: 1rem;
        padding-left: 50px;
    }

    .timeline li::before {
        left: 8px;
        width: 14px;
        height: 14px;
    }

    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-state i {
        font-size: 2.5rem;
    }
}

/* Print styles */
@media print {
    .dashboard-card {
        page-break-inside: avoid;
        border: 1px solid #000;
        margin-bottom: 1rem;
    }

    .btn,
    .quick-actions {
        display: none;
    }
}
