/* Custom CSS for Sistem Manajemen Data */

/* Modern Sidebar Styling */
.main-sidebar {
    background-color: #1a1d29 !important;
    border-right: 1px solid #2d3748;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.brand-link {
    background-color: #2d3748 !important;
    border-bottom: 1px solid #4a5568;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
}

.brand-link:hover {
    background-color: #4a5568 !important;
    text-decoration: none;
}

.brand-text {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 1rem;
}

.brand-image {
    color: #4299e1 !important;
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* User Panel */
.user-panel {
    border-bottom: 1px solid #2d3748;
    padding: 0.75rem 1.25rem !important;
}

.user-panel .info a {
    color: #e2e8f0 !important;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
}

.user-panel .info a:hover {
    color: #4299e1 !important;
}

/* Sidebar Navigation */
.nav-sidebar {
    padding: 0.25rem 0;
}

.nav-header {
    color: #a0aec0 !important;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.25rem 0.25rem 1.25rem !important;
    margin-top: 0.5rem;
}

.nav-sidebar .nav-link {
    color: #cbd5e0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
    font-size: 0.875rem;
}

.nav-sidebar .nav-link:hover {
    background-color: #2d3748 !important;
    color: #ffffff !important;
    border-left-color: #4299e1;
    transform: translateX(2px);
}

.nav-sidebar .nav-link.active {
    background-color: #2d3748 !important;
    color: #ffffff !important;
    border-left-color: #4299e1;
    box-shadow: inset 0 0 0 1px rgba(66, 153, 225, 0.2);
}

.nav-sidebar .nav-link.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #4299e1;
}

.nav-sidebar .nav-icon {
    margin-right: 0.6rem;
    width: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Logout Link Special Styling */
.nav-sidebar .nav-link.text-danger {
    color: #fc8181 !important;
    margin-top: 0.5rem;
    border-top: 1px solid #2d3748;
    padding-top: 0.75rem;
}

.nav-sidebar .nav-link.text-danger:hover {
    background-color: #742a2a !important;
    color: #fed7d7 !important;
    border-left-color: #fc8181;
}

/* Main Header/Navbar */
.main-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-light .navbar-nav .nav-link {
    color: #4a5568 !important;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #2d3748 !important;
    background-color: #f7fafc;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    color: #4a5568;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f7fafc;
    color: #2d3748;
}

/* Content Wrapper */
.content-wrapper {
    background-color: #f1f5f9 !important;
    min-height: calc(100vh - 57px);
}

.content-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
    padding: 1.5rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.content-header h1 {
    color: #1e293b;
    font-weight: 600;
    font-size: 1.75rem;
    margin: 0;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    color: #64748b;
    font-size: 0.875rem;
}

.breadcrumb-item.active {
    color: #475569;
    font-weight: 500;
}

.breadcrumb-item a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #2563eb;
}

/* Cards */
.card {
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    border-color: #cbd5e1;
}

.card-header {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem 0.75rem 0 0 !important;
}

.card-title {
    color: #1e293b;
    font-weight: 600;
    font-size: 1.125rem;
    margin: 0;
}

.card-body {
    padding: 1.5rem;
    background-color: #ffffff;
}

.card-footer {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
    border-radius: 0 0 0.75rem 0.75rem;
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.875rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #333333 !important;
    border-color: #333333 !important;
    color: #ffffff !important;
}

.btn-primary:focus, .btn-primary.focus {
    background-color: #333333 !important;
    border-color: #333333 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25) !important;
}

.btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active {
    background-color: #333333 !important;
    border-color: #333333 !important;
    color: #ffffff !important;
}

.btn-primary:not(:disabled):not(.disabled):active:focus, .btn-primary:not(:disabled):not(.disabled).active:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25) !important;
}

.btn-success {
    background-color: #48bb78;
    color: #ffffff;
}

.btn-success:hover {
    background-color: #38a169;
    color: #ffffff;
}

.btn-warning {
    background-color: #ed8936;
    color: #ffffff;
}

.btn-warning:hover {
    background-color: #dd6b20;
    color: #ffffff;
}

.btn-danger {
    background-color: #f56565;
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #e53e3e;
    color: #ffffff;
}

.btn-info {
    background-color: #4fd1c7;
    color: #ffffff;
}

.btn-info:hover {
    background-color: #38b2ac;
    color: #ffffff;
}

.btn-secondary {
    background-color: #a0aec0;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #718096;
    color: #ffffff;
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    margin-bottom: 0;
    font-size: 0.85rem;
}

.table thead th {
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-bottom: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    padding: 0.875rem 0.75rem;
    vertical-align: middle;
}

.table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f5f9;
}

.table tbody tr:last-child {
    border-bottom: none;
}

.table tbody tr:hover {
    background-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table tbody td {
    padding: 0.875rem 0.75rem;
    color: #475569;
    border: none;
    vertical-align: middle;
    line-height: 1.4;
}

.table-responsive {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8fafc;
}

.table-hover tbody tr:hover {
    background-color: #f1f5f9;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
}

.badge-success {
    background-color: #c6f6d5;
    color: #22543d;
}

.badge-danger {
    background-color: #fed7d7;
    color: #742a2a;
}

.badge-warning {
    background-color: #feebc8;
    color: #7b341e;
}

.badge-info {
    background-color: #bee3f8;
    color: #2a4365;
}

.badge-secondary {
    background-color: #e2e8f0;
    color: #4a5568;
}

/* Info Boxes */
.info-box {
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.info-box:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.info-box-icon {
    border-radius: 0.75rem 0 0 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.info-box-content {
    padding: 1.5rem;
    background-color: #ffffff;
}

.info-box-text {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.info-box-number {
    color: #1e293b;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

/* Forms */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
    color: #374151;
    font-size: 0.875rem;
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #ffffff;
    color: #1f2937;
    outline: none;
}

.form-control:hover {
    border-color: #9ca3af;
}

.form-label {
    color: #374151;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.input-group {
    border-radius: 0.5rem;
    overflow: hidden;
}

.input-group-text {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Alerts */
.alert {
    border: 1px solid transparent;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
    border-left: 4px solid #22c55e;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
    border-left: 4px solid #ef4444;
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
    border-left: 4px solid #3b82f6;
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border-color: #fed7aa;
    border-left: 4px solid #f59e0b;
}

.alert-dismissible .btn-close {
    padding: 0.75rem 1rem;
}

/* Pagination */
.pagination .page-link {
    border-radius: 0.5rem;
    margin: 0 0.125rem;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.pagination .page-link:hover {
    background-color: #4299e1;
    border-color: #4299e1;
    color: #ffffff;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: #4299e1;
    border-color: #4299e1;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar-open .main-sidebar {
        transform: translateX(0);
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .content-header {
        padding: 1rem 0;
    }
    
    .content-header h1 {
        font-size: 1.5rem;
    }
    
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .info-box-content {
        padding: 1rem;
    }
    
    .info-box-number {
        font-size: 1.5rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .content-wrapper {
        background-color: #1a202c !important;
    }
    
    .card {
        background-color: #2d3748;
        color: #e2e8f0;
    }
    
    .card-header {
        background-color: #2d3748;
        border-bottom-color: #4a5568;
    }
    
    .card-footer {
        background-color: #1a202c;
        border-top-color: #4a5568;
    }
}

/* Utility Classes */
.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

.rounded-lg {
    border-radius: 0.75rem !important;
}

.text-primary-custom {
    color: #4299e1 !important;
}

.bg-primary-custom {
    background-color: #4299e1 !important;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { 
        transform: translateX(-10px); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

/* Modern Empty State */
.empty-state-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 3rem 1rem;
}

.empty-state-content {
    text-align: center;
    max-width: 500px;
    animation: fadeInUp 0.6s ease-out;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.empty-state-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

.empty-state-icon i {
    font-size: 2rem;
    color: #64748b;
    z-index: 1;
    position: relative;
}

.empty-state-title {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.empty-state-description {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.modern-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.modern-btn:hover::before {
    left: 100%;
}

.modern-btn-primary {
    background: #000000;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.modern-btn-primary:hover {
    background: #333333;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.modern-btn-secondary {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.modern-btn-secondary:hover {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .empty-state-container {
        min-height: 300px;
        padding: 2rem 1rem;
    }
    
    .empty-state-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .empty-state-icon i {
        font-size: 1.5rem;
    }
    
    .empty-state-title {
        font-size: 1.25rem;
    }
    
    .empty-state-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .empty-state-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .modern-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}
/* Modern Search Form */
.search-form-container {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    margin-bottom: 1.5rem;
}

.modern-search-group {
    position: relative;
    display: flex;
    align-items: stretch;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    max-width: 400px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.modern-search-group:hover {
    border-color: #000000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.modern-search-group:focus-within {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.modern-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #2d3748;
    outline: none;
    transition: all 0.3s ease;
    min-width: 0;
}

.modern-search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.modern-search-input:focus {
    color: #1a202c;
}

.modern-search-btn {
    background: #000000;
    border: none;
    color: white;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    border-left: 1px solid #374151;
}

.modern-search-btn:hover {
    background: #374151;
}

.modern-search-btn:active {
    background: #111827;
}

.modern-search-btn i {
    font-size: 0.875rem;
}

/* Search Results Info */
.search-results-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #0c4a6e;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-results-info i {
    color: #0284c7;
}

/* Responsive Search */
@media (max-width: 768px) {
    .search-form-container {
        padding: 1rem;
    }
    
    .modern-search-group {
        margin-bottom: 1rem;
    }
    
    .modern-search-input {
        padding: 0.625rem 0.875rem;
        font-size: 0.85rem;
    }
    
    .modern-search-btn {
        padding: 0.625rem 1rem;
        min-width: 45px;
    }
    
    .modern-btn {
        width: 100%;
        justify-content: center;
    }
}
/* Data Table Specific Styling */
.data-table-container {
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 1rem;
}

.data-table-container .table {
    margin-bottom: 0;
    border: none;
    font-size: 0.875rem;
}

.data-table-container .table thead th {
    padding: 0.75rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    background: #000000;
    color: white;
    border: none;
    text-align: left;
    vertical-align: middle;
}

.data-table-container .table tbody td {
    padding: 0.75rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.3;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.data-table-container .table tbody tr:last-child td {
    border-bottom: none;
}

.data-table-container .table tbody tr:hover {
    background-color: #f8fafc;
}

.data-table-container .table tbody td code {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.data-table-container .table tbody td .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

.data-table-container .table tbody td small {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.2;
    display: block;
    margin-top: 0.125rem;
}

/* Table Action Buttons */
.table-actions {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.table-actions .btn {
    padding: 0.375rem;
    font-size: 0.75rem;
    border-radius: 4px;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.table-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.table-actions .btn i {
    font-size: 0.75rem;
}

.table-actions .btn-info {
    background-color: #0ea5e9;
    border-color: #0ea5e9;
}

.table-actions .btn-info:hover {
    background-color: #0284c7;
    border-color: #0284c7;
}

.table-actions .btn-warning {
    background-color: #f59e0b;
    border-color: #f59e0b;
}

.table-actions .btn-warning:hover {
    background-color: #d97706;
    border-color: #d97706;
}

.table-actions .btn-secondary {
    background-color: #6b7280;
    border-color: #6b7280;
}

.table-actions .btn-secondary:hover {
    background-color: #4b5563;
    border-color: #4b5563;
}

.table-actions .btn-success {
    background-color: #10b981;
    border-color: #10b981;
}

.table-actions .btn-success:hover {
    background-color: #059669;
    border-color: #059669;
}

.table-actions .btn-danger {
    background-color: #ef4444;
    border-color: #ef4444;
}

.table-actions .btn-danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
}

/* Responsive Table */
@media (max-width: 768px) {
    .data-table-container .table thead th,
    .data-table-container .table tbody td {
        padding: 0.5rem 0.375rem;
        font-size: 0.75rem;
    }
    
    .data-table-container .table thead th {
        font-size: 0.6rem;
    }
    
    .table-actions {
        flex-direction: column;
        gap: 0.125rem;
    }
    
    .table-actions .btn {
        width: 100%;
        min-width: auto;
    }
}
/* Modern View Page Styling */
.view-header-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.view-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
}

.view-title {
    color: #1e293b;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.view-subtitle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.view-code {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.view-separator {
    color: #cbd5e1;
    font-weight: bold;
}

.view-srut {
    font-weight: 600;
    color: #475569;
}

.view-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-status-badge.status-aktif {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.view-status-badge.status-nonaktif {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.view-section-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.view-section-header {
    background: #000000;
    color: white;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.view-section-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-section-header i {
    font-size: 0.9rem;
}

.view-section-body {
    padding: 1.25rem;
}

.view-field {
    margin-bottom: 1rem;
}

.view-field:last-child {
    margin-bottom: 0;
}

.view-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.375rem;
}

.view-value {
    font-size: 0.875rem;
    color: #1e293b;
    line-height: 1.4;
    font-weight: 500;
}

.view-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-badge.badge-primary {
    background: #dbeafe;
    color: #1e40af;
}

.view-badge.badge-secondary {
    background: #f1f5f9;
    color: #475569;
}

.view-badge.badge-info {
    background: #e0f2fe;
    color: #0c4a6e;
}

.view-image-item {
    margin-bottom: 1.5rem;
}

.view-image-item:last-child {
    margin-bottom: 0;
}

.view-image-item label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.view-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.view-qr-container {
    margin-bottom: 1rem;
}

.view-qr-image {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.view-qr-description {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

.view-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 0.3s ease;
}

.view-link:hover {
    color: #2563eb;
    text-decoration: none;
}

.view-actions-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.view-actions-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.view-actions-left {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.view-actions-right {
    display: flex;
    gap: 0.75rem;
}

.modern-btn-warning {
    background: #f59e0b;
    color: white;
}

.modern-btn-warning:hover {
    background: #d97706;
    color: white;
}

.modern-btn-success {
    background: #10b981;
    color: white;
}

.modern-btn-success:hover {
    background: #059669;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .view-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .view-title {
        font-size: 1.5rem;
    }
    
    .view-subtitle {
        flex-wrap: wrap;
    }
    
    .view-section-body {
        padding: 1rem;
    }
    
    .view-actions-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .view-actions-left,
    .view-actions-right {
        justify-content: center;
    }
    
    .modern-btn {
        flex: 1;
        justify-content: center;
    }
}
/* Edit Form Specific Styling */
.form-help-text {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
    font-style: italic;
}

.required-indicator {
    color: #ef4444;
    font-weight: bold;
}

.modern-btn-info {
    background: #0ea5e9;
    color: white;
}

.modern-btn-info:hover {
    background: #0284c7;
    color: white;
}

/* Submit Section for Edit */
.submit-section {
    background: #000000;
    color: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.submit-section h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Gap utility for button spacing */
.gap-3 {
    gap: 0.75rem;
}

/* Readonly input styling */
.modern-form-control[readonly] {
    background-color: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
    border-color: #cbd5e1;
}

.modern-form-control[readonly]:focus {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    box-shadow: none;
    transform: none;
}
/* Edit Form Current Image Styling */
.current-image {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem;
    background: #f8fafc;
}

.current-image img {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.current-image small {
    color: #64748b;
    font-weight: 500;
    font-size: 0.75rem;
}
/* Dashboard Specific Styles */
.info-box {
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    overflow: hidden;
}

.info-box:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.info-box-icon {
    border-radius: 12px 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
}

.info-box-icon i {
    font-size: 24px;
}

.info-box-content {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-box-text {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-box-number {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.modern-table {
    font-size: 13px;
    border-radius: 8px;
    overflow: hidden;
}

.modern-table th {
    background-color: #000 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 15px !important;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-table td {
    padding: 12px 15px !important;
    border-top: 1px solid #e0e0e0 !important;
    vertical-align: middle;
    font-size: 13px;
}

.modern-table tbody tr:hover {
    background-color: #f8f9fa;
}

.btn-group-sm .btn {
    padding: 6px 10px;
    font-size: 11px;
    border-radius: 4px;
    margin-right: 2px;
}

/* Card improvements */
.card {
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    overflow: hidden;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 12px 12px 0 0;
    padding: 20px 25px;
}

.card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.card-body {
    padding: 25px;
}

/* Button improvements */
.btn-dark {
    background-color: #000 !important;
    border-color: #000 !important;
    border-radius: 6px;
    font-weight: 500;
}

.btn-dark:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-lg {
    border-radius: 10px;
    padding: 15px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.btn-secondary:hover {
    background-color: #545b62 !important;
    border-color: #545b62 !important;
}

/* Badge improvements */
.badge {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 500;
}

.badge-success {
    background-color: #28a745 !important;
}

.badge-secondary {
    background-color: #6c757d !important;
}

/* Code styling */
code {
    background-color: #f1f3f4;
    color: #333;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #e0e0e0;
}

/* Empty state improvements */
.text-center.py-4 {
    padding: 40px 20px !important;
}

.text-center.py-4 i {
    opacity: 0.6;
    margin-bottom: 20px !important;
}

.text-center.py-4 p {
    font-size: 16px;
    margin-bottom: 25px;
    color: #666;
}

/* Row spacing */
.row {
    margin-bottom: 20px;
}

.row:last-child {
    margin-bottom: 0;
}
/* Lazy Loading Styles */
.lazy-load {
    background: #f0f0f0;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.lazy-load:before {
    content: "Loading QR...";
    color: #666;
    font-size: 12px;
}

.lazy-load[src] {
    background: none;
}

.lazy-load[src]:before {
    display: none;
}

/* QR Code Card Styles - Simplified */
.qr-card {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.qr-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.qr-card .card-body {
    padding: 20px;
}

.qr-preview {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px;
    background-color: #fff;
    max-width: 120px;
    margin: 0 auto 15px auto;
}

.vehicle-info {
    margin-bottom: 15px;
}

.vehicle-info h6 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 12px;
}

.info-label {
    font-weight: 500;
    color: #666;
}

.info-value {
    color: #333;
    font-weight: 500;
}

.info-value code {
    font-size: 11px;
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
}

.url-section {
    margin-bottom: 15px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.url-label {
    font-size: 11px;
    font-weight: 500;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

.url-section .form-control {
    font-size: 10px;
    height: 32px;
}

.url-section .btn {
    font-size: 10px;
    padding: 6px 10px;
}

.action-buttons {
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.action-buttons .btn {
    font-size: 11px;
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: 500;
}

.action-buttons .btn-dark {
    background-color: #000;
    border-color: #000;
    margin-bottom: 8px;
}

.action-buttons .btn-dark:hover {
    background-color: #333;
    border-color: #333;
}

.action-buttons .btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.action-buttons .btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

/* Header card */
.qr-header-card .card-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 20px;
}

.qr-header-card .card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Search card */
.search-card .card-body {
    padding: 15px 20px;
}

/* Remove complex flexbox layouts */
.qr-cards-row {
    margin: 0 -15px;
}

.qr-cards-row > [class*="col-"] {
    padding: 0 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .qr-card .card-body {
        padding: 15px;
    }
    
    .info-item {
        flex-direction: column;
        margin-bottom: 8px;
    }
    
    .info-value {
        margin-top: 2px;
    }
}
/* QR Code Modal Styles */
.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 25px;
    border-radius: 10px 10px 0 0;
}

.modal-header .modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.modal-body {
    padding: 25px;
}

.vehicle-info-modal {
    padding-right: 15px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.info-table {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
}

.info-row-modal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
}

.info-row-modal:last-child {
    margin-bottom: 0;
}

.info-label-modal {
    font-weight: 600;
    color: #666;
    min-width: 100px;
}

.info-value-modal {
    color: #333;
    font-weight: 500;
    text-align: right;
    flex: 1;
    margin-left: 15px;
}

.info-value-modal code {
    font-size: 12px;
    background-color: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    font-weight: 600;
}

.url-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.url-input-group .form-control {
    flex: 1;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.url-input-group .btn {
    border-radius: 6px;
    font-size: 12px;
    padding: 6px 12px;
    white-space: nowrap;
}

.qr-preview-modal {
    padding-left: 15px;
}

.qr-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.qr-image-modal {
    max-width: 250px;
    width: 100%;
    height: auto;
    border-radius: 6px;
    background-color: #fff;
    padding: 10px;
    border: 1px solid #dee2e6;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 20px 25px;
    border-radius: 0 0 10px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-group-modal {
    display: flex;
    gap: 10px;
}

.btn-group-modal .btn {
    font-size: 13px;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 500;
}

.btn-group-modal .btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-group-modal .btn-success:hover {
    background-color: #218838;
    border-color: #218838;
}

.btn-group-modal .btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-group-modal .btn-info:hover {
    background-color: #138496;
    border-color: #138496;
}

.modal-footer .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    font-size: 13px;
    padding: 8px 20px;
    border-radius: 6px;
}

.modal-footer .btn-secondary:hover {
    background-color: #545b62;
    border-color: #545b62;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .vehicle-info-modal,
    .qr-preview-modal {
        padding: 0;
        margin-bottom: 20px;
    }
    
    .info-row-modal {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 15px;
    }
    
    .info-value-modal {
        text-align: left;
        margin-left: 0;
        margin-top: 5px;
    }
    
    .url-input-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .url-input-group .btn {
        width: 100%;
    }
    
    .btn-group-modal {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .modal-footer .btn-secondary {
        width: 100%;
    }
}