/**
 * Percetakan V1 - Custom Theme Extensions
 * Built on top of Merbal Bootstrap Template
 * 
 * This file contains ONLY necessary custom styles that are specific
 * to PercetakanV1 and not provided by the Merbal template.
 * 
 * Guidelines:
 * - Use Merbal's existing classes whenever possible
 * - Keep customizations minimal
 * - Document all custom additions
 */

/* ============================================
   AUTHENTICATION PAGES
   ============================================ */

/* Auth page gradient background */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Divider with text */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}

.divider-text {
    padding: 0 1rem;
    color: #6c757d;
    font-size: 0.875rem;
}

/* ============================================
   GRADIENT ENHANCEMENTS
   ============================================ */

/* Primary gradient for buttons and badges */
.btn-primary,
.badge.bg-primary {
    background: linear-gradient(135deg, #8231d3 0%, #9b59b6 100%) !important;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6a1fb8 0%, #8e44ad 100%) !important;
}

/* Success gradient */
.badge.bg-success {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important;
}

/* Warning gradient */
.badge.bg-warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
}

/* Danger gradient */
.badge.bg-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

/* Info gradient */
.badge.bg-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
}

/* Secondary gradient */
.badge.bg-secondary {
    background: linear-gradient(135deg, #868e96 0%, #6c757d 100%) !important;
}

/* ============================================
   MODAL ENHANCEMENTS
   ============================================ */

/* Purple gradient modal header */
.modal-header {
    background: linear-gradient(135deg, #8231d3 0%, #9b59b6 100%);
    color: white;
}

.modal-header .modal-title {
    color: white !important;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* ============================================
   ALERT CUSTOMIZATIONS
   ============================================ */

.alert {
    border: none;
    border-radius: 0.5rem;
}

.alert-info {
    background: linear-gradient(135deg, #e0f7fa 0%, #b3e5fc 100%);
    color: #00695c;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
}

.alert-success {
    background: linear-gradient(135deg, #d4f4dd 0%, #b8e994 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
}

/* ============================================
   CARD CUSTOMIZATIONS
   ============================================ */

/* Stat cards with gradients */
.stat-card-gradient-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card-gradient-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card-gradient-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card-gradient-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Modern card styling */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* ============================================
   TABLE ENHANCEMENTS
   ============================================ */

.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    color: #495057;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table tbody td {
    vertical-align: middle;
    padding: 0.875rem 0.75rem;
    border-top: 1px solid #eff2f7;
}

/* DataTables styling */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 0.375rem;
    margin: 0 2px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #8231d3 0%, #9b59b6 100%) !important;
    border-color: transparent !important;
    color: white !important;
}

/* ============================================
   FORM ENHANCEMENTS
   ============================================ */

.form-control:focus,
.form-select:focus {
    border-color: #8231d3;
    box-shadow: 0 0 0 0.2rem rgba(130, 49, 211, 0.15);
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* ============================================
   BADGE ENHANCEMENTS
   ============================================ */

.badge {
    padding: 0.5em 0.85em;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 0.375rem;
}

/* Status badges */
.badge-paid {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.badge-unpaid {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.badge-pending {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.badge-process {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.badge-complete {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.badge-postpaid {
    background: linear-gradient(135deg, #ff9f43 0%, #ffb976 100%);
    color: white;
}

/* ============================================
   BUTTON ENHANCEMENTS
   ============================================ */

.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    transition: all 0.3s ease;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1.125rem;
}

/* Button group for actions */
.btn-group .btn {
    margin: 0 2px;
}

/* ============================================
   NOTIFICATION CUSTOMIZATIONS
   ============================================ */

.notify {
    top: 10%;
    z-index: 9999;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb-main {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.breadcrumb-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 0;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    #button1,
    #button2,
    #pay-button,
    .btn,
    .breadcrumb-action,
    .card-header button,
    .no-print {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Icon button */
.icon-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Smooth transitions */
.transition-all {
    transition: all 0.3s ease;
}

/* Hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Text utilities */
.text-gradient-primary {
    background: linear-gradient(135deg, #8231d3 0%, #9b59b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Spacing utilities */
.mb-25 {
    margin-bottom: 1.5rem !important;
}

.mt-25 {
    margin-top: 1.5rem !important;
}

.p-25 {
    padding: 1.5rem !important;
}

/* Border radius */
.radius-xl {
    border-radius: 0.75rem !important;
}

/* Shadow utilities */
.shadow-sm {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.shadow-md {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

.shadow-lg {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .breadcrumb-main {
        padding: 1rem;
    }
    
    .breadcrumb-title {
        font-size: 1.25rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 0.35em 0.65em;
    }
}

/* ============================================
   LOADING & SPINNER
   ============================================ */

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* ============================================
   DASHBOARD STAT CARDS
   ============================================ */

.stat-card {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Gradient backgrounds for stat cards */
.gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-success {
    background: linear-gradient(135deg, #28c76f 0%, #48da89 100%);
}

.gradient-warning {
    background: linear-gradient(135deg, #ff9f43 0%, #ffb976 100%);
}

.gradient-danger {
    background: linear-gradient(135deg, #ea5455 0%, #f08182 100%);
}

.gradient-info {
    background: linear-gradient(135deg, #00cfe8 0%, #25ddf5 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #7367f0 0%, #9e95f5 100%);
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.2);
    font-size: 28px;
    color: white;
}

.analytics-card {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.progress-thin {
    height: 6px;
    border-radius: 10px;
}

.table-modern {
    border-collapse: separate;
    border-spacing: 0 8px;
}

.table-modern tbody tr {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    border-radius: 8px;
}

.table-modern tbody tr:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.badge-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.3px;
}

/* Welcome section */
.welcome-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    padding: 30px;
    color: white;
    margin-bottom: 25px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.info-badge {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-right: 10px;
    font-size: 13px;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8231d3 0%, #9b59b6 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #6a1fb8 0%, #8e44ad 100%);
}




