:root {
    --form-card-bg: #ffffff;
    --form-card-border: #e5e7eb;
    --form-label-color: #4b5563;
    --form-input-bg: #f9fafb;
    --form-input-border: #d1d5db;
    --form-input-text: #111827;
    --form-placeholder: #9ca3af;
    --form-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.form-page {
    padding: 1.5rem 0 3rem;
}

.form-wrapper-card {
    border: 1px solid var(--form-card-border);
    border-radius: 18px;
    background: var(--form-card-bg);
    box-shadow: var(--form-shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-wrapper-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.12);
}

.form-card {
    width: 100%;
}

.form-card-body {
    padding: 2rem 2.25rem 2.5rem;
}

.form-label {
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    color: var(--form-label-color) !important;
    text-transform: none;
}

.form-field-column {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-card .form-control,
.form-card .form-select {
    border-radius: 12px;
    border: 1px solid var(--form-input-border);
    background-color: var(--form-input-bg);
    color: var(--form-input-text);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.form-card .form-control::placeholder,
.form-card .form-select::placeholder {
    color: var(--form-placeholder);
}

.form-card .form-control:focus,
.form-card .form-select:focus {
    background-color: #fff;
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

.form-card .form-select[multiple] {
    min-height: 140px;
}

.form-card .form-select[multiple] option {
    padding: 0.4rem 0.75rem;
}

.form-card-footer {
    border-top: 1px solid #eef2f7;
    background-color: #f9fafb !important;
    padding: 1.25rem 1.75rem;
}

.form-submit-btn,
.form-cancel-btn {
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-submit-btn:hover,
.form-cancel-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.15);
}

.form-alert {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border: none;
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
}

.form-alert ul {
    margin-left: 1rem;
}

.form-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
}

.form-grid {
    row-gap: 1.75rem;
}

.invalid-feedback {
    font-size: 0.88rem;
}

.permission-matrix {
    border: 1px solid var(--form-card-border);
    border-radius: 16px;
    padding: 1.25rem;
    background: #f9fafc;
}

.permission-matrix-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.permission-table-wrapper {
    max-height: 380px;
    overflow-y: auto;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.permission-table thead th {
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}

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

.permission-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

.permission-table td,
.permission-table th {
    padding: 0.85rem 1rem;
}

.permission-table .form-check-input {
    cursor: pointer;
}

.permission-table-wrapper::-webkit-scrollbar {
    width: 10px;
}

.permission-table-wrapper::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 8px;
}

.permission-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.35);
    border-radius: 8px;
}

@media (max-width: 768px) {
    .permission-matrix {
        padding: 1rem;
    }

    .permission-table-wrapper {
        max-height: 300px;
    }
}

/* Data Listing Pages */
.list-page {
    padding: 1rem 0 2.5rem;
}

.data-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.data-card__header,
.data-card__footer {
    padding: 1.5rem 2rem;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    border-bottom: 1px solid #eef2f7;
}

.data-card__footer {
    border-top: 1px solid #eef2f7;
    border-bottom: none;
}

.data-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.data-card__subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.data-card__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.data-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.data-card .alert {
    border-radius: 12px;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table thead th {
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #6b7280;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.85rem 1rem;
}

.data-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
}

.data-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

.cell-primary {
    font-weight: 600;
    color: #111827;
}

.cell-meta {
    font-size: 0.8rem;
    color: #9ca3af;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.status-pill--success {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.status-pill--warning {
    background: rgba(250, 204, 21, 0.15);
    color: #b45309;
}

.status-pill--danger {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.table-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.table-actions form {
    margin: 0;
}

.table-actions .btn {
    border-radius: 10px;
    padding: 0.45rem 0.9rem;
    font-weight: 600;
}

.badge-soft-info {
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
}

.role-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.role-chip {
    background: rgba(99, 102, 241, 0.15);
    color: #4338ca;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.count-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
    font-weight: 600;
    min-width: 42px;
    text-align: center;
}

.count-chip--purple {
    background: rgba(129, 140, 248, 0.18);
    color: #4c1d95;
}

/* Profile specific tweaks */
.profile-summary-card {
    border-radius: 18px;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(35, 211, 149, 0.08));
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.profile-summary-card h5 {
    font-weight: 700;
    color: #0f172a;
}

.profile-meta-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.profile-meta-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.08);
    color: #4b5563;
}

.profile-meta-list li:last-child {
    border-bottom: none;
}

.profile-meta-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
}

.profile-meta-value {
    font-weight: 600;
    color: #111827;
}

/* Settings page */
.settings-page {
    padding-bottom: 2.5rem;
}

.settings-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-summary-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.settings-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.settings-summary-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    margin-right: 0.75rem;
}

.settings-summary-list li {
    display: flex;
    align-items: center;
}

.settings-summary-value {
    font-weight: 600;
    color: #0f172a;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.status-badge--active {
    background: rgba(34, 197, 94, 0.18);
    color: #15803d;
}

.status-badge--danger {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.status-badge--muted {
    background: rgba(148, 163, 184, 0.18);
    color: #475569;
}

.secure-input-group {
    display: grid;
    grid-template-columns: minmax(0, 2fr) auto auto;
    gap: 0.6rem;
    align-items: center;
}

.secure-input-btn {
    white-space: nowrap;
    padding: 0.55rem 1.1rem;
}

.s3-config-fields.d-none {
    display: none !important;
}

.s3-config-fields .form-group {
    margin-bottom: 0;
}

/* Dashboard metric cards */
.dashboard-metrics {
    margin-bottom: 2rem;
}

.metric-card {
    display: flex;
    gap: 1rem;
    background: #fff;
    border-radius: 18px;
    padding: 1.25rem 1.4rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.metric-icon--primary { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.metric-icon--success { background: linear-gradient(135deg, #22c55e, #16a34a); }
.metric-icon--warning { background: linear-gradient(135deg, #fb923c, #f97316); }
.metric-icon--danger { background: linear-gradient(135deg, #f87171, #ef4444); }
.metric-icon--info { background: linear-gradient(135deg, #60a5fa, #3b82f6); }

.metric-label {
    display: block;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.metric-value {
    font-size: 1.65rem;
    font-weight: 700;
    color: #0f172a;
    display: block;
}

.metric-subtext {
    font-size: 0.85rem;
    color: #4b5563;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.1);
}

@media (max-width: 768px) {
    .metric-card {
        padding: 1rem 1.15rem;
    }

    .metric-value {
        font-size: 1.4rem;
    }
}

.dashboard-card {
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
    margin-bottom: 1.5rem;
}

.dashboard-card .card-header {
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 18px 18px 0 0;
}

.dashboard-card .card-body {
    padding: 1.45rem;
}

.dashboard-card .btn-group .btn {
    border-radius: 999px !important;
}

.dashboard-card .btn-tool {
    color: #64748b;
}

.dashboard-card .btn-tool:hover {
    color: #1d4ed8;
}

@media (max-width: 768px) {
    .secure-input-group {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .secure-input-btn {
        width: 100%;
    }
}

.empty-state {
    max-width: 360px;
    margin: 0 auto;
}

.empty-state h6 {
    font-weight: 600;
    margin-bottom: 0.4rem;
}

@media (max-width: 992px) {
    .data-card__header,
    .data-card__footer {
        padding: 1.25rem 1.5rem;
    }

    .data-table tbody td,
    .data-table thead th {
        padding: 0.75rem 0.9rem;
    }
}

@media (max-width: 768px) {
    .data-card__header {
        flex-direction: column;
        align-items: stretch;
    }

    .data-card__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .table-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

@media (max-width: 992px) {
    .form-card-body {
        padding: 1.75rem 1.5rem;
    }

    .form-submit-btn,
    .form-cancel-btn {
        width: 100%;
        justify-content: center;
    }

    .form-card-footer {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .form-card-body {
        padding: 1.5rem 1.25rem;
    }

    .form-grid {
        row-gap: 1.25rem;
    }

    .form-field-column {
        gap: 0.5rem;
    }
}
/* Modern Attractive AdminLTE Custom Styles */

/* Enhanced Color Scheme */
:root {
    --primary-color: #667eea;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-color: #dee2e6;
    --text-color: #495057;
    --text-muted: #6c757d;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    --gradient-success: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    --gradient-danger: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
}

/* Clean Modern Sidebar */
.main-sidebar {
    background: #2c3e50;
    box-shadow: 2px 0 10px rgba(0,0,0,0.15);
    border-right: 1px solid #34495e;
}

.main-sidebar .nav-link {
    color: rgba(255,255,255,0.8) !important;
    border-radius: 8px;
    margin: 2px 8px;
    transition: all 0.2s ease;
    padding: 10px 15px;
    font-weight: 500;
}

.main-sidebar .nav-link:hover,
.main-sidebar .nav-link.active {
    background: rgba(255,255,255,0.15) !important;
    color: #fff !important;
    transform: translateX(3px);
}

.main-sidebar .nav-link i {
    margin-right: 10px;
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.main-sidebar .nav-treeview {
    margin-left: 15px;
}

/* Clean Sidebar Headers */
.main-sidebar .nav-header {
    color: rgba(255,255,255,0.6) !important;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 20px 5px;
    margin-top: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.main-sidebar .nav-treeview .nav-link {
    padding: 8px 15px;
    font-size: 13px;
    margin: 1px 8px;
}

.main-sidebar .nav-treeview .nav-link:hover {
    background: rgba(255,255,255,0.08) !important;
    transform: translateX(2px);
}

/* Clean Header */
.main-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.main-header .navbar-nav .nav-link {
    color: #495057;
    font-weight: 500;
    transition: color 0.2s ease;
}

.main-header .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Clean Cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
    overflow: hidden;
    background: #fff;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.card-outline {
    border: none;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.card-outline.card-primary {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.card-outline.card-success {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.card-outline.card-warning {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 0 0 3px rgba(255, 193, 7, 0.1);
}

.card-outline.card-danger {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.card-outline.card-info {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 0 0 3px rgba(23, 162, 184, 0.1);
}

.card-header {
    background: #f8f9fa;
    border-bottom: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #495057;
}

.card-primary {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 3px 0 0 0 var(--primary-color);
}

.card-success {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 3px 0 0 0 var(--success-color);
}

.card-warning {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 3px 0 0 0 var(--warning-color);
}

.card-danger {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 3px 0 0 0 var(--danger-color);
}

.card-info {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 3px 0 0 0 var(--info-color);
}

/* Clean Info Boxes */
.info-box {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    border: none;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 1rem;
}

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

.info-box-icon {
    background: var(--primary-color) !important;
}

.info-box-icon.bg-success {
    background: var(--success-color) !important;
}

.info-box-icon.bg-warning {
    background: var(--warning-color) !important;
}

.info-box-icon.bg-danger {
    background: var(--danger-color) !important;
}

.info-box-icon.bg-info {
    background: var(--info-color) !important;
}

.info-box-content {
    padding: 1rem;
}

.info-box-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.info-box-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.75rem;
    display: block;
}

.info-box .progress {
    height: 6px;
    margin-bottom: 0.5rem;
    background: #e9ecef;
    border-radius: 3px;
}

.info-box .progress-bar {
    border-radius: 3px;
}

.info-box .progress-description {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

.info-box .progress-description i {
    margin-right: 0.25rem;
}

/* Clean Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

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

.btn-primary,
.form-submit-btn.btn-primary {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
}

.btn-secondary,
.form-cancel-btn.btn-secondary {
    background: #6c757d;
    border-color: #6c757d;
    color: #fff !important;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #545b62;
    border-color: #545b62;
    color: #fff !important;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success-color);
    border-color: var(--success-color);
}

.btn-warning {
    background: var(--warning-color);
    border-color: var(--warning-color);
}

.btn-danger {
    background: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-info {
    background: var(--info-color);
    border-color: var(--info-color);
}

/* Clean Tables - Professional Design */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
    background: #fff;
}

.table thead th {
    background: #f8f9fa;
    border: none;
    font-weight: 600;
    color: #495057;
    padding: 1rem;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6;
}

.table tbody td {
    padding: 1rem;
    border: none;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
    font-size: 14px;
    color: #495057;
    transition: all 0.2s ease;
    background: #fff;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:nth-child(even) {
    background: rgba(248,249,250,0.3);
}

.table tbody tr:hover {
    background: rgba(0,123,255,0.05) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

/* Clean Table Badges */
.table .badge {
    border-radius: 16px;
    padding: 0.4em 0.8em;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-primary {
    background: var(--primary-color);
}

.badge-success {
    background: var(--success-color);
}

.badge-warning {
    background: var(--warning-color);
}

.badge-danger {
    background: var(--danger-color);
}

.badge-info {
    background: var(--info-color);
}

/* Clean Table Actions */
.table .btn {
    padding: 0.35rem 0.7rem;
    font-size: 12px;
    margin: 0 2px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
}

.table .btn-primary {
    background: #007bff;
    border-color: #007bff;
    color: #fff !important;
}

.table .btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    color: #fff !important;
}

.table .btn-group .btn {
    border-radius: 4px;
}

/* Small Button Enhancements */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-sm.btn-primary {
    background: #007bff;
    border-color: #007bff;
    color: #fff !important;
}

.btn-sm.btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    color: #fff !important;
}

/* Clean Forms - Modern Design */
.form-control,
.form-select,
.form-control-modern {
    border-radius: 10px;
    border: 2px solid #e8e9ea;
    background-color: #ffffff;
    color: #1a1d29;
    font-weight: 500;
    padding: 0.875rem 1.125rem;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-control:hover,
.form-select:hover,
.form-control-modern:hover {
    border-color: #ced4da;
}

.form-control:focus,
.form-select:focus,
.form-control-modern:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
    background-color: #fafbfc;
    color: #1a1d29;
}

.form-control::placeholder,
.form-control-modern::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.form-select,
.select-wrapper select {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%236c757d' stroke-width='1.5' fill='none' stroke-linecap='round'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.125rem center;
    background-size: 14px 14px;
    padding-right: 2.8rem;
}

/* Select Wrapper for Modern Style */
.select-wrapper {
    position: relative;
}

.select-wrapper .select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1;
}

.select-wrapper select:focus ~ .select-arrow {
    color: #007bff;
    transform: translateY(-50%) rotate(180deg);
}

.select-wrapper select {
    padding-right: 2.8rem;
}

.select-wrapper .select-arrow {
    pointer-events: none;
}

/* Modern Label */
.modern-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a1d29;
    font-size: 0.9375rem;
}

.input-group>.form-select,
.input-group>.form-control {
    border-radius: 10px;
}

.input-group>.form-select:not(:last-child),
.input-group>.form-control:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group>.btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Clean Alerts */
.alert {
    border-radius: 6px;
    border: 1px solid transparent;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Clean Breadcrumbs */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
    font-weight: bold;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 600;
}

/* Clean Charts */
.chart {
    position: relative;
    height: 300px;
}

/* Clean Products List */
.products-list .item {
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.products-list .item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.products-list .product-img img {
    border-radius: 6px;
}

.products-list .product-title {
    font-weight: 600;
    color: #212529;
    text-decoration: none;
    margin-bottom: 0.25rem;
    display: block;
}

.products-list .product-description {
    color: #6c757d;
    font-size: 0.875rem;
}

.products-list .badge {
    font-size: 0.75rem;
    padding: 0.25em 0.5em;
}

/* Clean Calendar */
.bg-gradient-success {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .info-box {
        margin-bottom: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .btn-block {
        margin-bottom: 0.5rem;
    }
    
    .table-responsive {
        border-radius: 8px;
        overflow: hidden;
    }
}

/* Clean Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

/* Clean Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

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

/* Clean DataTables */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 0.5rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 4px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.8rem;
    transition: all 0.2s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--primary-color);
    color: #fff !important;
    border-color: var(--primary-color);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary-color);
    color: #fff !important;
    border-color: var(--primary-color);
}

/* Clean Modal Tables */
.modal .table {
    box-shadow: none;
    border: 1px solid #dee2e6;
}

.modal .table thead th {
    background: #f8f9fa;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

/* Modal Button Fixes */
.modal .btn-primary {
    background: #007bff !important;
    border-color: #007bff !important;
    color: #fff !important;
    font-weight: 500;
}

.modal .btn-primary:hover {
    background: #0056b3 !important;
    border-color: #0056b3 !important;
    color: #fff !important;
}

.modal .btn-sm.btn-primary {
    background: #007bff !important;
    border-color: #007bff !important;
    color: #fff !important;
    font-weight: 500;
}

.modal .btn-sm.btn-primary:hover {
    background: #0056b3 !important;
    border-color: #0056b3 !important;
    color: #fff !important;
}

/* Modal Card Button Fixes */
.modal .card .btn-primary {
    background: #007bff !important;
    border-color: #007bff !important;
    color: #fff !important;
    font-weight: 500;
}

.modal .card .btn-primary:hover {
    background: #0056b3 !important;
    border-color: #0056b3 !important;
    color: #fff !important;
}

.modal .card-footer .btn-primary {
    background: #007bff !important;
    border-color: #007bff !important;
    color: #fff !important;
    font-weight: 500;
}

.modal .card-footer .btn-primary:hover {
    background: #0056b3 !important;
    border-color: #0056b3 !important;
    color: #fff !important;
}

/* Force button text visibility in modals */
.modal a.btn-primary,
.modal button.btn-primary,
.modal .btn-primary {
    color: #fff !important;
    text-decoration: none !important;
}

.modal a.btn-primary:hover,
.modal button.btn-primary:hover,
.modal .btn-primary:hover {
    color: #fff !important;
    text-decoration: none !important;
}

/* Specific fix for screenshot buttons */
.modal .card-footer a.btn-sm.btn-primary {
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.modal .card-footer a.btn-sm.btn-primary:hover {
    color: #fff !important;
    text-decoration: none !important;
}

/* DataTables Consistency */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: #495057;
    font-size: 14px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.5rem 0.75rem;
    margin: 0 2px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #007bff;
    transition: all 0.2s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Ensure all table headers are consistent */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(248,249,250,0.3);
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: #fff;
}

/* Clean Sidebar Brand */
.main-sidebar .brand-link {
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem;
    text-align: center;
}

.main-sidebar .brand-link .brand-text {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
}

.sidebar-mini .brand-link .brand-image {
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
    border-radius: 14px;
}

/* Modern Content Header */
.content-header {
    padding: 1.5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.content-header h1 i {
    color: #007bff;
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.content-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    border: none;
    border-radius: 0;
}

.content-header .breadcrumb-item {
    color: #6c757d;
}

.content-header .breadcrumb-item.active {
    color: #495057;
    font-weight: 500;
}

.content-header .breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.content-header .breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: none;
}

/* Fix container-fluid conflicts with content-header */
.content-header .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
    border: none;
    margin: 0;
}

.content-header .row {
    margin-left: 0;
    margin-right: 0;
}

.content-header .col-sm-6 {
    padding-left: 0;
    padding-right: 0;
}

/* Ensure content area has proper spacing */
.content-wrapper {
    padding-top: 0;
}

.content-wrapper .content {
    padding-top: 0;
}

/* Fix main content container spacing */
.content-wrapper .content .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
    border: none;
    margin: 0;
}

/* Ensure proper spacing between header and content */
.content-wrapper .content .container-fluid:first-child {
    margin-top: 0;
    padding-top: 0;
}

/* Remove any conflicting borders from main content */
.content-wrapper .content {
    border: none;
    background: transparent;
}

/* Ensure proper spacing for main content */
.content-wrapper .content .row {
    margin-left: -15px;
    margin-right: -15px;
}

.content-wrapper .content .row > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

/* General Link Styling */
a:hover {
    text-decoration: none !important;
}

/* Clean Modern Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 8px 12px;
    margin: 0;
    font-size: 0.875rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #6c757d;
    font-weight: normal;
    margin: 0 0.5rem;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 600;
}

/* Enhanced Card Tools */
.card-tools {
    float: right;
}

.card-tools .btn-tool {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    background: transparent;
    border: 0;
    color: #6c757d;
    transition: color 0.2s ease;
}

.card-tools .btn-tool:hover {
    color: var(--primary-color);
}

/* Enhanced Footer Links */
.card-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.card-footer a:hover {
    color: #0056b3;
    text-decoration: none;
}

/* Enhanced Icons */
.fa-3x {
    font-size: 3em;
}

.text-muted {
    color: #6c757d !important;
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

/* Clean Pagination - Fix Large Arrow Issue */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 6px;
    margin: 20px 0;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.pagination .page-item {
    margin: 0 2px;
}

.pagination .page-link {
    position: relative;
    display: block;
    padding: 8px 12px;
    margin-left: -1px;
    line-height: 1.25;
    color: var(--primary-color);
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 40px;
    height: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination .page-link:hover {
    z-index: 2;
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.pagination .page-link:focus {
    z-index: 3;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.pagination .page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
    opacity: 0.6;
}

.pagination .page-item:first-child .page-link {
    margin-left: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.pagination .page-item:last-child .page-link {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Pagination Size Adjustments */
.pagination .page-link {
    min-width: 38px;
    height: 38px;
}

/* Responsive Pagination */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 3px;
    }
    
    .pagination .page-link {
        min-width: 35px;
        height: 35px;
        padding: 6px 8px;
        font-size: 13px;
    }
    
    .pagination .page-item {
        margin: 0 1px;
    }
}

/* Fix Laravel Pagination Specific Issues */
.pagination .page-link[rel="prev"],
.pagination .page-link[rel="next"] {
    font-size: 14px !important;
    font-weight: 600;
}

.pagination .page-link[aria-label="Previous"],
.pagination .page-link[aria-label="Next"] {
    font-size: 14px !important;
    font-weight: 600;
}

/* Ensure consistent sizing for all pagination elements */
.pagination .page-item .page-link {
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Override any AdminLTE pagination styles */
.adminlte .pagination .page-link {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
}

/* Specific styling for Previous/Next buttons */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    font-size: 12px !important;
    font-weight: 600;
    color: var(--primary-color);
}

.pagination .page-item:first-child .page-link:hover,
.pagination .page-item:last-child .page-link:hover {
    color: #fff;
}

/* Ensure all pagination elements are properly sized */
.pagination .page-item .page-link {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Fix for any Bootstrap 4 specific pagination issues */
.pagination .page-link:not(:disabled):not(.disabled) {
    cursor: pointer;
}

/* Ensure consistent spacing */
.pagination .page-item + .page-item .page-link {
    margin-left: -1px;
}
