/* ============================================
   MODERN STYLE CSS - Customer Manager
   Inspired by Rytech Design System
   ============================================ */

/* Import Google Fonts - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Poppins', sans-serif;
}

/* ============================================
   BACKGROUND & BODY
   ============================================ */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ============================================
   CONTAINER STYLES
   ============================================ */
.custom-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.custom-container:hover {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2), 0 12px 15px -8px rgba(0, 0, 0, 0.15);
}

/* ============================================
   CARD STYLES - Modern dengan Gradient
   ============================================ */
.card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.15), 0 4px 10px -2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.25), 0 8px 15px -3px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-bottom: 2px solid #cbd5e1;
    padding: 18px 20px;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* ============================================
   STATISTICS CARDS - Gradient dengan Shadow
   ============================================ */
.card.bg-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    border: none;
    box-shadow: 0 8px 20px -4px rgba(59, 130, 246, 0.4), 0 4px 10px -2px rgba(59, 130, 246, 0.3);
}

.card.bg-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border: none;
    box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.4), 0 4px 10px -2px rgba(16, 185, 129, 0.3);
}

.card.bg-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border: none;
    box-shadow: 0 8px 20px -4px rgba(245, 158, 11, 0.4), 0 4px 10px -2px rgba(245, 158, 11, 0.3);
}

.card.bg-info {
    background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
    border: none;
    box-shadow: 0 8px 20px -4px rgba(6, 182, 212, 0.4), 0 4px 10px -2px rgba(6, 182, 212, 0.3);
}

.card.bg-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border: none;
    box-shadow: 0 8px 20px -4px rgba(239, 68, 68, 0.4), 0 4px 10px -2px rgba(239, 68, 68, 0.3);
}

/* ============================================
   BUTTON STYLES - Gradient Bercahaya
   ============================================ */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    border: none;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

/* Button Primary dengan Gradient Biru */
.btn-primary {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 25%, #2E6AA8 50%, #275A93 75%, #1E4A7E 100%) !important;
    color: white !important;
    box-shadow: 
        0 4px 15px rgba(74, 144, 226, 0.3),
        0 2px 8px rgba(53, 122, 189, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: none !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(74, 144, 226, 0.4),
        0 4px 12px rgba(53, 122, 189, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #357ABD 0%, #2E6AA8 25%, #275A93 50%, #1E4A7E 75%, #153A69 100%) !important;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 15px rgba(74, 144, 226, 0.3),
        0 2px 8px rgba(53, 122, 189, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Button Success dengan Gradient Hijau */
.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 25%, #1e8449 50%, #1a6f3e 75%, #165a33 100%) !important;
    color: white !important;
    box-shadow: 
        0 4px 15px rgba(39, 174, 96, 0.3),
        0 2px 8px rgba(34, 153, 84, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: none !important;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(39, 174, 96, 0.4),
        0 4px 12px rgba(34, 153, 84, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #229954 0%, #1e8449 25%, #1a6f3e 50%, #165a33 75%, #124528 100%) !important;
}

/* Button Danger dengan Gradient Merah */
.btn-danger {
    background: linear-gradient(135deg, #d63031 0%, #c0392b 25%, #a93226 50%, #922b21 75%, #7b241c 100%) !important;
    color: white !important;
    box-shadow: 
        0 4px 15px rgba(214, 48, 49, 0.3),
        0 2px 8px rgba(192, 57, 43, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: none !important;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(214, 48, 49, 0.4),
        0 4px 12px rgba(192, 57, 43, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #c0392b 0%, #a93226 25%, #922b21 50%, #7b241c 75%, #641e17 100%) !important;
}

/* Button Secondary dengan Gradient Abu-abu */
.btn-secondary {
    background: linear-gradient(135deg, #7b7b7b 0%, #6a6a6a 25%, #595959 50%, #484848 75%, #373737 100%) !important;
    color: white !important;
    box-shadow: 
        0 4px 15px rgba(123, 123, 123, 0.3),
        0 2px 8px rgba(106, 106, 106, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: none !important;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(123, 123, 123, 0.4),
        0 4px 12px rgba(106, 106, 106, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #6a6a6a 0%, #595959 25%, #484848 50%, #373737 75%, #262626 100%) !important;
}

/* Button Warning dengan Gradient Kuning */
.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 25%, #b45309 50%, #92400e 75%, #78350f 100%) !important;
    color: white !important;
    box-shadow: 
        0 4px 15px rgba(245, 158, 11, 0.3),
        0 2px 8px rgba(217, 119, 6, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: none !important;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(245, 158, 11, 0.4),
        0 4px 12px rgba(217, 119, 6, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #d97706 0%, #b45309 25%, #92400e 50%, #78350f 75%, #451a03 100%) !important;
}

/* Button Info dengan Gradient Cyan */
.btn-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 25%, #0e7490 50%, #155e75 75%, #164e63 100%) !important;
    color: white !important;
    box-shadow: 
        0 4px 15px rgba(6, 182, 212, 0.3),
        0 2px 8px rgba(8, 145, 178, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: none !important;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(6, 182, 212, 0.4),
        0 4px 12px rgba(8, 145, 178, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 25%, #155e75 50%, #164e63 75%, #083344 100%) !important;
}

/* Efek Glow untuk semua button */
.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;
}

.btn:hover::before {
    left: 100%;
}

/* Icon styling dalam button */
.btn i {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Button Outline Styles */
.btn-outline-primary {
    background: transparent !important;
    border: 2px solid #3b82f6 !important;
    color: #3b82f6 !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
}

.btn-outline-success {
    background: transparent !important;
    border: 2px solid #10b981 !important;
    color: #10b981 !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.btn-outline-success:hover {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4);
}

.btn-outline-danger {
    background: transparent !important;
    border: 2px solid #ef4444 !important;
    color: #ef4444 !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.btn-outline-danger:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.4);
}

.btn-outline-warning {
    background: transparent !important;
    border: 2px solid #f59e0b !important;
    color: #f59e0b !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.btn-outline-warning:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.4);
}

.btn-outline-info {
    background: transparent !important;
    border: 2px solid #06b6d4 !important;
    color: #06b6d4 !important;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.2);
}

.btn-outline-info:hover {
    background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(6, 182, 212, 0.4);
}

.btn-outline-secondary {
    background: transparent !important;
    border: 2px solid #6c757d !important;
    color: #6c757d !important;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.btn-outline-secondary:hover {
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(108, 117, 125, 0.4);
}

/* ============================================
   BADGE STYLES - Gradient dengan Shadow
   ============================================ */
.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 3px 8px -2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px -3px rgba(0, 0, 0, 0.3);
}

.badge.bg-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
}

/* ============================================
   TABLE STYLES - Modern dengan Sticky Header
   ============================================ */
.table-responsive {
    border-radius: 8px;
    overflow: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: linear-gradient(135deg, #2c3e50, #34495e) !important;
    color: white !important;
    font-weight: 600;
    padding: 15px;
    border: none;
    text-align: center;
    vertical-align: middle;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.3);
}

.table thead th:first-child {
    border-top-left-radius: 8px;
}

.table thead th:last-child {
    border-top-right-radius: 8px;
}

.table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #e2e8f0;
}

.table tbody tr:hover {
    background-color: #f8f9fa !important;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.1), 0 2px 8px -2px rgba(0, 0, 0, 0.08);
    transform: scale(1.01);
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
}

/* Zebra striping */
.table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* ============================================
   FORM CONTROLS - Modern dengan Focus Effect
   ============================================ */
.form-control,
.form-select {
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    padding: 10px 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.08);
}

.form-control:hover,
.form-select:hover {
    box-shadow: 0 3px 10px -2px rgba(0, 0, 0, 0.12);
    border-color: #94a3b8;
}

.form-control:focus,
.form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 4px 15px -3px rgba(59, 130, 246, 0.3);
    outline: none;
}

/* ============================================
   ALERT STYLES - Modern dengan Gradient
   ============================================ */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.1);
}

.alert-info {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0c4a6e;
    border-left: 4px solid #0284c7;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-left: 4px solid #059669;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-left: 4px solid #d97706;
}

/* ============================================
   PAGINATION - Modern Style
   ============================================ */
.pagination {
    margin: 0;
}

.page-link {
    color: #3b82f6;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin: 0 3px;
    border: 1px solid #e2e8f0;
}

.page-link:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ============================================
   SCROLLBAR CUSTOM
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #888, #555);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #555, #333);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .btn {
        transform: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    }
    
    .btn:hover {
        transform: none !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    }
    
    .card:hover {
        transform: translateY(-2px);
    }
}

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

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

/* ============================================
   UTILITY CLASSES
   ============================================ */
.shadow-modern {
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.15), 0 4px 10px -2px rgba(0, 0, 0, 0.1);
}

.shadow-modern-hover:hover {
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.25), 0 8px 15px -3px rgba(0, 0, 0, 0.15);
}

.gradient-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
}

.gradient-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

.gradient-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

.gradient-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

.gradient-info {
    background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
}

