/* Custom CSS untuk Aplikasi Antrian */

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Navbar Styles */
.navbar-brand {
    font-weight: bold;
    font-size: 1.2rem;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* Button Styles */
.btn-primary {
    background-color: #667eea;
    border-color: #667eea;
}

.btn-primary:hover {
    background-color: #5a67d8;
    border-color: #5a67d8;
}

/* Table Styles */
.table {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background-color: #667eea;
    color: white;
    border: none;
    font-weight: 600;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Form Styles */
.form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 12px;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
}

/* Badge Styles */
.badge {
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Dashboard Card Styles */
.dashboard-card {
    border-radius: 15px;
    padding: 25px;
    color: white;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.dashboard-card:hover::before {
    top: -100%;
    right: -100%;
}

.dashboard-card i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.dashboard-card h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Antrian Display */
.antrian-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
}

.antrian-number {
    font-size: 5rem;
    font-weight: bold;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.antrian-stand {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Custom Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .antrian-number {
        font-size: 3rem;
    }
    
    .dashboard-card {
        margin-bottom: 20px;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Status Badge Styles */
.status-menunggu {
    background-color: #ffc107;
    color: #000;
}

.status-dipanggil {
    background-color: #17a2b8;
    color: #fff;
}

.status-selesai {
    background-color: #28a745;
    color: #fff;
}

.status-batal {
    background-color: #dc3545;
    color: #fff;
}

/* Profile Image Styles */
.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Sidebar Styles */
.sidebar {
    background-color: #343a40;
    min-height: 100vh;
    padding: 0;
}

.sidebar .nav-link {
    color: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}

.sidebar .nav-link.active {
    background-color: #667eea;
    color: #fff;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 400px;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #667eea;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    background: #667eea;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #667eea;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 45%;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background-color: #667eea;
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
}

.modal-footer {
    border-radius: 0 0 15px 15px;
    border: none;
}

/* Progress Bar Styles */
.progress {
    height: 25px;
    border-radius: 15px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 15px;
    font-weight: 600;
}

/* Custom Input Group */
.input-group-text {
    background-color: #667eea;
    color: white;
    border: none;
}

/* Pagination Styles */
.pagination .page-link {
    color: #667eea;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background-color: #667eea;
    border-color: #667eea;
}

/* Breadcrumb Styles */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #667eea;
}

/* Dropdown Styles */
.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.dropdown-item {
    padding: 10px 20px;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Tooltip Styles */
.tooltip-inner {
    background-color: #343a40;
    border-radius: 8px;
    padding: 8px 12px;
}

/* Popover Styles */
.popover {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.popover-header {
    background-color: #667eea;
    color: white;
    border-radius: 10px 10px 0 0;
    border: none;
}

/* Toast Styles */
.toast {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.toast-header {
    background-color: #667eea;
    color: white;
    border-radius: 10px 10px 0 0;
    border: none;
}

/* List Group Styles */
.list-group-item {
    border: none;
    border-radius: 10px;
    margin-bottom: 5px;
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

/* Accordion Styles */
.accordion-button {
    background-color: #f8f9fa;
    border: none;
    border-radius: 10px;
    margin-bottom: 5px;
}

.accordion-button:not(.collapsed) {
    background-color: #667eea;
    color: white;
}

.accordion-body {
    background-color: white;
    border-radius: 0 0 10px 10px;
}