/* ========================================
   DASHBOARD STYLES - BEJDI
   Modern, Corporate, Minimalist Design
   ======================================== */

/* Dashboard Container */
.dashboard-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Dashboard Header with Pattern Background */
.dashboard-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 40px 30px;
    margin: -20px -20px 0 -20px;
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    opacity: 0.5;
}

.dashboard-header-content {
    position: relative;
    z-index: 1;
}

.dashboard-title {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.dashboard-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 400;
}

/* Filter Section */
.filter-section {
    background: #2563eb;
    padding: 30px;
    margin: 0 -20px;
}

.filter-form {
    max-width: 1400px;
    margin: 0 auto;
}

.filter-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.filter-input {
    padding: 12px 18px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    background: white;
    color: #1f2937;
    outline: none;
    transition: all 0.3s ease;
}

.filter-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.filter-input::placeholder {
    color: #9ca3af;
}

.filter-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-filter {
    padding: 12px 32px;
    background: #1e3a8a;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
}

.btn-reset {
    padding: 12px 32px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.filter-advanced {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.filter-advanced:hover {
    text-decoration: underline;
}

/* Quick Actions Compact */
.quick-actions-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.quick-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.3s ease;
    font-weight: 500;
}

.quick-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.quick-icon {
    font-size: 24px;
}

/* Table Section */
.table-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Usage Progress Bar */
.usage-progress {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.usage-text {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.progress-bar-container {
    height: 24px;
    background: #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 50%, #22c55e 100%);
    transition: width 0.3s ease;
    border-radius: 12px;
}

.usage-percent {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    text-align: right;
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-left {
    display: flex;
    gap: 6px;
    align-items: center;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-btn:hover:not(.disabled):not(.active) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.page-btn.active {
    background: #7c3aed;
    color: white;
    border-color: #7c3aed;
    border-radius: 50%;
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.per-page-select {
    padding: 8px 32px 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    outline: none;
}

.pagination-info {
    font-size: 14px;
    color: #6b7280;
    white-space: nowrap;
}

/* Cases Table */
.cases-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

.cases-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cases-table thead {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.cases-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cases-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s ease;
}

.cases-table tbody tr:hover {
    background: #f9fafb;
}

.cases-table td {
    padding: 16px;
    color: #1f2937;
    vertical-align: top;
}

.checkbox-all,
.checkbox-row {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.party-item {
    padding: 4px 0;
    font-size: 14px;
    line-height: 1.5;
}

.text-muted {
    color: #9ca3af;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-activ {
    background: #dcfce7;
    color: #166534;
}

.status-suspendat {
    background: #fed7aa;
    color: #9a3412;
}

.status-inchis {
    background: #f3f4f6;
    color: #6b7280;
}

/* Action Buttons */
.btn-action {
    display: inline-block;
    padding: 6px 10px;
    text-decoration: none;
    font-size: 16px;
    transition: transform 0.2s ease;
}

.btn-action:hover {
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-header {
        padding: 30px 20px;
    }

    .filter-section {
        padding: 20px;
    }

    .filter-inputs {
        grid-template-columns: 1fr;
    }

    .pagination-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .pagination-left {
        order: 2;
        width: 100%;
        flex-wrap: wrap;
    }

    .pagination-right {
        order: 1;
        width: 100%;
        justify-content: space-between;
    }

    .cases-table {
        font-size: 12px;
    }

    .cases-table th,
    .cases-table td {
        padding: 10px 8px;
    }
}
