﻿/* Modern Dashboard Styles with #3498db as Primary Color */
.modern-dashboard {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: #f5f7fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation Bar */
.dashboard-navbar {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    padding: 0 30px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.brand-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
}

    .brand-logo i {
        margin-right: 12px;
        font-size: 1.8rem;
    }

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.user-role {
    font-size: 0.8rem;
    opacity: 0.8;
}

.user-name {
    font-weight: 600;
}

.user-avatar i {
    font-size: 2.2rem;
    color: rgba(255,255,255,0.9);
}

/* Main Content */
.dashboard-content {
    padding: 30px;
    flex: 1;
}

/* Quick Actions Panel */
.quick-actions-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    gap: 8px;
}

    .action-btn i {
        font-size: 1rem;
    }

    .action-btn.primary {
        background-color: #3498db;
        color: white;
        box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    }

        .action-btn.primary:hover {
            background-color: #2980b9;
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
        }

    .action-btn.secondary {
        background-color: white;
        color: #3498db;
        border: 1px solid #3498db;
    }

        .action-btn.secondary:hover {
            background-color: #f8f9fa;
        }

.search-panel {
    flex: 1;
    max-width: 700px;
}

.search-controls {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.search-select {
    padding: 12px 15px;
    border: none;
    border-right: 1px solid #eee;
    background: white;
    color: #333;
    font-weight: 500;
    outline: none;
    min-width: 150px;
}

.search-input-container {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

    .search-input-container i {
        color: #95a5a6;
        margin-right: 10px;
    }

    .search-input-container input {
        flex: 1;
        border: none;
        padding: 12px 0;
        outline: none;
        font-size: 0.95rem;
    }

/* Status Indicators */
.status-indicators {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.indicator-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

    .indicator-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

.indicator-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

    .indicator-icon.hold {
        background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    }

    .indicator-icon.active {
        background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    }

    .indicator-icon.closed {
        background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    }

/* Cases Grid */
.cases-grid-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
}

.empty-icon i {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.empty-state p {
    color: #7f8c8d;
    margin-bottom: 30px;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.case-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-top: 4px solid #3498db;
    display: flex;
    flex-direction: column;
}

    .case-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }

.case-hold {
    border-top-color: #e74c3c;
}

.case-active {
    border-top-color: #2ecc71;
    border: 1px solid #2ecc71; /* Adjust the width and style as needed */
}

.case-closed {
    border-top-color: #3498db;
}

.case-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.case-badge {
    background-color: #3498db;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.case-status i {
    font-size: 1.4rem;
}

.case-status .fa-pause-circle {
    color: #e74c3c;
}

.case-status .fa-spinner {
    color: #2ecc71;
    animation: spin 2s linear infinite;
}

.case-status .fa-check-circle {
    color: #3498db;
}



.case-card-body {
    padding: 15px;
    flex: 1;
}

.case-detail {
    display: flex;
    margin-bottom: 12px;
}

    .case-detail label {
        font-weight: 600;
        color: #7f8c8d;
        min-width: 90px;
        font-size: 0.9rem;
    }

    .case-detail span {
        color: #2c3e50;
        font-size: 0.95rem;
    }

.case-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
}

.filed-by {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #7f8c8d;
}

    .filed-by i {
        font-size: 1.1rem;
    }

.case-actions {
    display: flex;
    gap: 10px;
}

.icon-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #eee;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .icon-btn:hover {
        background: #3498db;
        color: white;
        border-color: #3498db;
        transform: scale(1.1);
    }

/* Pagination */
.pagination-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}
