/* Mobile Dashboard Styles */

/* Dashboard Layout */
.dashboard-stats {
    padding: 1rem 1rem 0.5rem;
    margin-bottom: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.stats-card:active {
    transform: translateY(0);
}

.stats-card .card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}

.stats-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-icon i {
    font-size: 1.25rem;
}

.stats-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stats-value {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.2;
    color: #2c3e50;
}

.card-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    margin: 0;
}

small.text-muted {
    font-size: 0.75rem;
    color: #94a3b8 !important;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .dashboard-stats {
        padding: 0.75rem;
    }

    .stats-grid {
        gap: 0.75rem;
    }

    .stats-card .card-body {
        padding: 1rem;
    }

    .stats-icon {
        width: 2.25rem;
        height: 2.25rem;
    }

    .stats-icon i {
        font-size: 1rem;
    }

    .stats-value {
        font-size: 1.5rem;
    }

    .card-title {
        font-size: 0.8125rem;
    }

    small.text-muted {
        font-size: 0.75rem;
    }

    /* Hide quick actions on mobile */
    .quick-actions {
        display: none;
    }

    /* Improve status badges */
    .badge {
        padding: 0.35em 0.65em;
        font-size: 0.75rem;
        font-weight: 500;
    }

    .badge.bg-success,
    .badge.bg-primary,
    .badge.bg-warning,
    .badge.bg-danger,
    .badge.bg-info {
        color: #fff !important;
    }

    /* Improve table readability */
    .table {
        font-size: 0.875rem;
    }

    .table td, 
    .table th {
        padding: 0.75rem;
    }

    /* Activity cards */
    .activity-card, .card {
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 1.25rem;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .activity-card .card-header, .card .card-header {
        padding: 1.25rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .activity-card .card-body {
        padding: 0.75rem;
    }
}

/* Hide Quick Actions on Mobile */
@media (max-width: 768px) {
    .quick-actions {
        display: none;
    }

    /* Improve card spacing */
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .stats-card {
        margin-bottom: 0;
        height: 100%;
    }

    .stats-card .card-body {
        padding: 1rem;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .stats-icon {
        margin-bottom: 0.5rem;
    }

    .stats-value {
        font-size: 1.5rem;
        line-height: 1.2;
        margin-bottom: 0.25rem;
    }

    .card-title {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }

    /* Fix processed status text color */
    .badge.bg-success {
        color: #fff !important;
        background-color: #28a745 !important;
    }

    /* Improve table readability */
    .table td, .table th {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    /* Status badges */
    .badge {
        font-size: 0.75rem;
        padding: 0.35em 0.65em;
    }

    /* Improve activity cards */
    .activity-card {
        margin-bottom: 1rem;
    }

    .activity-card .card-header {
        padding: 1rem;
    }

    .activity-card .card-body {
        padding: 0.75rem;
    }
}


/* Dashboard Header */
.dashboard-header {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.welcome-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.welcome-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-name {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.user-role {
    font-size: 0.875rem;
    opacity: 0.8;
    font-weight: 500;
}

@media (max-width: 768px) {
    .dashboard-header {
        padding: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .welcome-title {
        font-size: 1rem;
    }

    .user-name {
        font-size: 1.25rem;
    }

    .user-role {
        font-size: 0.8125rem;
    }
}

.welcome-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.welcome-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-name {
    font-size: 1.5rem;
    font-weight: 600;
}

.user-role {
    font-size: 1rem;
    opacity: 0.8;
}

/* Stats Grid */
.dashboard-stats {
    padding: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stats-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.stats-card:active {
    transform: scale(0.98);
}

.stats-card .card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stats-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.stats-icon i {
    font-size: 1.5rem;
    color: #0056b3;
}

.stats-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stats-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1;
}

.card-title {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

/* Action Buttons */
.dashboard-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    gap: 1rem;
}

.dashboard-actions .btn {
    flex: 1;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* Recent Requests Table */
.recent-requests {
    margin: 1rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.recent-requests table {
    width: 100%;
}

.recent-requests th,
.recent-requests td {
    padding: 1rem;
    font-size: 0.875rem;
}

.recent-requests th {
    background: #f8f9fa;
    font-weight: 500;
    color: #495057;
}

@media (max-width: 576px) {
    .recent-requests {
        margin: 0.5rem;
    }

    .recent-requests th,
    .recent-requests td {
        padding: 0.75rem;
    }

    .dashboard-stats {
        padding: 0.5rem;
    }

    .stats-grid {
        gap: 0.75rem;
    }

    .stats-card .card-body {
        padding: 1rem;
    }

    .stats-value {
        font-size: 1.5rem;
    }
}
@media (max-width: 768px) {
    /* Container spacing */
    .container-fluid {
        padding: 1.25rem !important;
    }

    /* Welcome message */
    .welcome-header {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    .welcome-header h4 {
        font-size: 1.25rem;
    }
    .welcome-header small {
        display: block;
        margin-top: 0.25rem;
    }

    /* Stats cards */
    .stats-card {
        margin-bottom: 1rem;
        border-radius: 12px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        transition: transform 0.2s ease;
        text-decoration: none !important;
        color: inherit;
    }
    .stats-card:active {
        transform: scale(0.98);
    }
    .stats-card .card-body {
        padding: 1.25rem;
        text-align: center;
    }
    .stats-card i {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    .stats-card h2 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    .stats-card .card-title {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    .stats-card small {
        font-size: 0.8rem;
    }

    /* Recent activity */
    .activity-card, .card {
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 1.25rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    .activity-card .card-header {
        padding: 1rem;
    }
    .activity-card .card-title {
        font-size: 1.1rem;
    }
    .activity-card .table {
        font-size: 0.9rem;
    }
    .activity-card .table td {
        padding: 0.75rem 1rem;
        white-space: normal;
    }

    /* Quick actions */
    .quick-actions {
        display: grid;
        gap: 1.25rem;
        margin-bottom: 1rem;
    }
    .quick-actions .btn {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    .quick-actions .btn i {
        font-size: 1.5rem;
    }

    /* Status badges */
    .badge {
        font-size: 0.75rem;
        padding: 0.35em 0.65em;
    }

    /* Table responsiveness */
    .table-responsive {
        margin: 0;
        border-radius: 12px;
    }
    .table-responsive table {
        margin-bottom: 0;
    }
    .table-responsive th {
        white-space: nowrap;
    }
}
