/* ============================================
   MODERN THEME - Santi Application
   ============================================ */

/* Global Styles */
body {
    background-color: #f5f7fa;
    font-size: 15px;
    padding-bottom: 80px;
}


/* Page Container */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    padding-bottom: 4rem;
}

/* Header Styles */
.order-header,
.page-header{
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

    .order-header h1,
    .page-header h1 {
        margin: 0;
        font-size: 2rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

/* Info Card */
.info-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

    .info-card h3 {
        font-size: 1.25rem;
        font-weight: 600;
        color: #374151;
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid #e5e7eb;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

/* Info Rows */
.info-row {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s;
}

    .info-row:hover {
        background: #f9fafb;
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .info-row:last-child {
        border-bottom: none;
    }

.info-label {
    font-weight: 600;
    color: #6b7280;
    min-width: 200px;
    flex-shrink: 0;
}

.info-value {
    color: #111827;
    flex: 1;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* Enhanced Button Styles */
.btn {
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    padding: 0.7rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    }

    .btn:active {
        transform: translateY(0);
    }

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-outline-primary {
    border: 2px solid #3b82f6;
    color: #3b82f6;
    background: white;
}

    .btn-outline-primary:hover {
        background: #3b82f6;
        color: white;
    }

.btn-lg {
    padding: 0.9rem 1.75rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* Tabs */
.nav-tabs {
    border: none;
    margin-bottom: 0;
    background: white;
    border-radius: 12px 12px 0 0;
    padding: 0.5rem 0.5rem 0 0.5rem;
}

    .nav-tabs .nav-link {
        border: none;
        color: #6b7280;
        font-weight: 500;
        padding: 1rem 1.5rem;
        transition: all 0.2s;
        border-radius: 8px;
        margin-right: 0.25rem;
    }

        .nav-tabs .nav-link:hover {
            color: #3b82f6;
            background: #f3f4f6;
        }

        .nav-tabs .nav-link.active {
            color: white;
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        }

.tab-content {
    background: white;
    border-radius: 0 0 12px 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-top: 1.5rem;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.table {
    margin-bottom: 0;
}

    .table thead {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        color: white;
    }

        .table thead th {
            border: none;
            padding: 1.25rem 1rem;
            font-weight: 600;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

    .table tbody tr {
        transition: all 0.2s;
        border-bottom: 1px solid #f3f4f6;
    }

        .table tbody tr:hover {
            background: #f9fafb;
            transform: scale(1.002);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }

        .table tbody tr:last-child {
            border-bottom: none;
        }

    .table tbody td {
        padding: 0.75rem 0.75rem;
        vertical-align: middle;
        font-size: 15px;
    }

/* Form Controls */
.form-control,
.form-select {
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    padding: 0.6rem 0.9rem;
    transition: all 0.2s;
}

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

/* Range Hint */
.range-hint {
    margin-top: 0.35rem;
    display: block;
    font-weight: 500;
}

/* Delete Button */
.delete-prodboard-line,
.btn-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    color: white;
    transition: all 0.2s;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

    .delete-prodboard-line:hover,
    .btn-delete:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
    }

/* Section Title */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin: 2rem 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .section-title::before {
        content: '';
        width: 4px;
        height: 1.5rem;
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        border-radius: 2px;
    }

/* Product Image */
.product-image {
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

    .product-image:hover {
        transform: scale(1.05);
    }

/* Action Icons */
.action-icon {
    color: #6b7280;
    transition: color 0.2s;
    margin: 0 0.25rem;
}

    .action-icon:hover {
        color: #3b82f6;
    }

.delete-icon:hover {
    color: #ef4444;
}

/* Info Highlight */
.info-highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    margin-left: 0.25rem;
}

/* Cards */
.card {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

    .card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transform: translateY(-2px);
    }

.card-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    border-radius: 12px 12px 0 0 !important;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Badge */
.badge {
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
}

/* Modal */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.modal-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
}

    .modal-header .btn-close {
        filter: brightness(0) invert(1);
    }

.modal-footer {
    border-top: 1px solid #e5e7eb;
}

/* Pagination */
.pagination {
    margin-bottom: 3rem;
}

    .pagination .page-link {
        border-radius: 8px;
        margin: 0 0.25rem;
        border: 2px solid #e5e7eb;
        color: #3b82f6;
        transition: all 0.2s;
        font-size: 15px;
    }

        .pagination .page-link:hover {
            background: #3b82f6;
            border-color: #3b82f6;
            color: white;
            transform: translateY(-2px);
        }

    .pagination .page-item.active .page-link {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        border-color: #3b82f6;
    }

/* Breadcrumb */
.breadcrumb {
    background: white;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.breadcrumb-item.active {
    color: #3b82f6;
}

/* Loading Spinner */
.spinner-border-custom {
    border-color: #3b82f6;
    border-right-color: transparent;
}

/* Tooltips */
.tooltip-inner {
    background: #374151;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
}

/* Dropdown */
.dropdown-menu {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 6px;
    transition: all 0.2s;
    padding: 0.5rem 1rem;
}

    .dropdown-item:hover {
        background: #f3f4f6;
        color: #3b82f6;
    }

/* List Group */
.list-group-item {
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

    .list-group-item:hover {
        background: #f9fafb;
        border-color: #3b82f6;
    }

/* Progress Bar */
.progress {
    border-radius: 10px;
    background: #e5e7eb;
    height: 1.5rem;
}

.progress-bar {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 10px;
}

/* Input Group */
.input-group-text {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 2px solid #e5e7eb;
    border-radius: 8px 0 0 8px;
    color: #6b7280;
    font-weight: 500;
}

/* Custom Checkbox & Radio */
.form-check-input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.form-check-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

/* Footer */
.footer {
    background: white;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
    padding: 1.5rem 0;
    margin-top: 4rem;
}

/* Navbar Enhancements */
.navbar {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.navbar-brand {
    transition: transform 0.2s;
}

    .navbar-brand:hover {
        transform: scale(1.05);
    }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page-container {
        padding: 1rem;
    }

    .order-header h1,
    .page-header h1 {
        font-size: 1.5rem;
    }

    .info-row {
        flex-direction: column;
    }

    .info-label {
        min-width: auto;
        margin-bottom: 0.5rem;
    }

    .table thead th {
        font-size: 0.85rem;
        padding: 0.75rem 0.5rem;
    }

    .table tbody td {
        padding: 0.75rem 0.5rem;
    }
}

/* DataTables Integration */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    padding: 0.5rem;
    padding-right: 2.5rem !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border-color: #3b82f6 !important;
    color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f3f4f6 !important;
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
}

/* Utility Classes */
.shadow-custom {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.rounded-custom {
    border-radius: 12px;
}

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

.gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.gradient-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.gradient-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.gradient-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animation Classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.3s ease-in-out;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: #374151;
}
