/* ===== GENERAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== CARD STYLES ===== */
.card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* ===== BUTTON STYLES ===== */
.btn-custom {
    background-color: #2c5aa0;
    color: white;
    font-weight: bold;
    transition: 0.3s;
    border: none;
}

.btn-custom:hover {
    background-color: #1e3f5a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
}

.btn-detail {
    background-color: #2c5aa0;
    color: white;
    font-size: 12px;
    border: none;
}

.btn-detail:hover {
    background-color: #1e3f5a;
    color: white;
}

/* ===== FORM STYLES ===== */
.form-label {
    color: #2c5aa0;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control, .form-select {
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    transition: 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: #2c5aa0;
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

/* ===== NAVBAR STYLES ===== */
.navbar {
    background: linear-gradient(90deg, #2c5aa0 0%, #1e3f5a 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* ===== STAT CARD STYLES ===== */
.stat-card {
    border-radius: 10px;
    border: none;
    color: white;
    transition: 0.3s;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.stat-card-baru {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card-proses {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card-selesai {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* ===== TABLE STYLES ===== */
.table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 20px;
    margin-top: 20px;
}

.table thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid #2c5aa0;
}

.table thead th {
    color: #2c5aa0;
    font-weight: 600;
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* ===== BADGE STYLES ===== */
.badge-baru {
    background-color: #667eea;
    padding: 6px 12px;
    border-radius: 20px;
}

.badge-diproses {
    background-color: #f5576c;
    padding: 6px 12px;
    border-radius: 20px;
}

.badge-selesai {
    background-color: #00b894;
    padding: 6px 12px;
    border-radius: 20px;
}

/* ===== SUCCESS ICON ===== */
.success-icon {
    font-size: 60px;
    color: #28a745;
    animation: bounce 0.6s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== DETAIL CARD STYLES ===== */
.detail-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.label-detail {
    color: #2c5aa0;
    font-weight: 600;
}

.alert-info-detail {
    background-color: #e7f3ff;
    border-left: 4px solid #2c5aa0;
    color: #2c5aa0;
}

/* ===== ADMIN DASHBOARD STYLES ===== */
.admin-header {
    background: linear-gradient(90deg, #2c5aa0 0%, #1e3f5a 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.status-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.status-btn {
    padding: 8px 16px;
    border: 2px solid #2c5aa0;
    background: white;
    color: #2c5aa0;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.status-btn.active {
    background: #2c5aa0;
    color: white;
}

.status-btn:hover {
    background: #2c5aa0;
    color: white;
}

/* ===== TEKNISI DASHBOARD STYLES ===== */
.antrian-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 5px solid #2c5aa0;
    transition: 0.3s;
    cursor: pointer;
}

.antrian-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.antrian-card.completed {
    border-left-color: #00b894;
}

.antrian-number {
    font-size: 24px;
    font-weight: bold;
    color: #2c5aa0;
    margin-bottom: 10px;
}

.antrian-info {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.antrian-info strong {
    color: #2c5aa0;
}

.status-badge-proses {
    display: inline-block;
    background: #f5576c;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin-top: 10px;
}

.status-badge-selesai {
    display: inline-block;
    background: #00b894;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin-top: 10px;
}

/* ===== MODAL STYLES ===== */
.modal-header {
    background: linear-gradient(90deg, #2c5aa0 0%, #1e3f5a 100%);
    color: white;
    border: none;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* ===== ACTION BUTTON STYLES ===== */
.btn-sm-custom {
    padding: 6px 12px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.btn-proses {
    background-color: #f5576c;
    border: none;
    color: white;
}

.btn-proses:hover {
    background-color: #d63447;
    color: white;
}

.btn-selesai {
    background-color: #00b894;
    border: none;
    color: white;
}

.btn-selesai:hover {
    background-color: #00a67e;
    color: white;
}

.btn-laporan {
    background-color: #2c5aa0;
    border: none;
    color: white;
}

.btn-laporan:hover {
    background-color: #1e3f5a;
    color: white;
}

/* ===== TIMELINE STYLES ===== */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    padding-left: 40px;
    margin-bottom: 20px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 12px;
    height: 12px;
    background: #2c5aa0;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #2c5aa0;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 12px;
    width: 4px;
    height: 50px;
    background: #e0e0e0;
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-content {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.timeline-time {
    font-size: 12px;
    color: #999;
    font-weight: 600;
}

.timeline-title {
    font-weight: 600;
    color: #2c5aa0;
    margin-top: 5px;
}

/* ===== LIVE INDICATOR ===== */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #f5576c;
    font-weight: 600;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #f5576c;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 15px;
    }
    
    .table-container {
        padding: 15px;
    }
    
    .status-filter {
        flex-direction: column;
    }
    
    .status-btn {
        width: 100%;
    }
    
    .antrian-card {
        margin-bottom: 10px;
    }
}
