/* MODERN MONITORING DASHBOARD STYLES */
:root {
    --primary: #4f46e5;
    --primary-light: #818cf8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0ea5e9;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --card-shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.monitoring-header {
    background: white;
    padding: 1.25rem 1.75rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--slate-200);
    box-shadow: var(--card-shadow);
}

.monitoring-title {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--slate-800);
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
}

/* STATISTICS CARDS */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-premium-card {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--slate-200);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.stat-premium-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

.stat-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--slate-900);
    margin: 0;
    line-height: 1.2;
}

.stat-info p {
    color: var(--slate-500);
    font-size: 0.7rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CARD VARIANTS */
.card-blue { border-left: 5px solid var(--primary); }
.card-blue .stat-icon-wrapper { background: #eef2ff; color: var(--primary); }

.card-amber { border-left: 5px solid var(--warning); }
.card-amber .stat-icon-wrapper { background: #fffbeb; color: var(--warning); }

.card-emerald { border-left: 5px solid var(--success); }
.card-emerald .stat-icon-wrapper { background: #ecfdf5; color: var(--success); }

.card-slate { border-left: 5px solid var(--slate-500); }
.card-slate .stat-icon-wrapper { background: #f8fafc; color: var(--slate-500); }

/* FILTER SECTION */
.premium-filter {
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.form-select-premium, .form-control-premium {
    border: 1.5px solid var(--slate-200);
    border-radius: 12px;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    background-color: var(--slate-50);
}

.form-select-premium:focus, .form-control-premium:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    background-color: white;
}

/* PROGRESS GRID */
.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.premium-progress-card {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--slate-200);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.premium-progress-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.card-image-wrapper {
    height: 160px;
    position: relative;
    overflow: hidden;
    background: var(--slate-100);
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.premium-progress-card:hover .card-image-wrapper img {
    transform: scale(1.1);
}

.status-floating-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

.status-belum_mulai { color: var(--slate-600); border: 1px solid var(--slate-200); }
.status-dalam_proses { color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.3); background: rgba(255, 251, 235, 0.9); }
.status-selesai { color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); background: rgba(236, 253, 245, 0.9); }

.card-main-content {
    padding: 1.25rem;
    flex-grow: 1;
}

.job-type-label {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--slate-800);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: block;
}

.tech-team-section {
    background: var(--slate-50);
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px dashed var(--slate-300);
}

.tech-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--slate-700);
}

.team-badge {
    display: inline-block;
    background: var(--primary-light);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    text-transform: uppercase;
}

/* PROGRESS BAR PREMIUM */
.premium-progress-container {
    margin-top: 1.5rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--slate-500);
}

.progress-value {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--primary);
}

.progress-track {
    height: 10px;
    background: var(--slate-100);
    border-radius: 99px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 99px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CARD FOOTER */
.card-premium-footer {
    padding: 1rem 1.5rem;
    background: var(--slate-50);
    border-top: 1px solid var(--slate-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-premium-action {
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-view {
    background: white;
    color: var(--slate-700);
    border: 1px solid var(--slate-200);
}

.btn-view:hover {
    background: var(--slate-100);
    color: var(--slate-900);
}

.btn-edit {
    background: var(--warning);
    color: white;
    border: none;
}

.btn-edit:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .monitoring-header { padding: 1.5rem; }
    .stats-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .stats-container { grid-template-columns: 1fr; }
}
