/* Show Config Enhanced Styles */

:root {
    --bs-card-border-radius: 1rem;
    --primary-gradient: linear-gradient(135deg, #556ee6 0%, #344cb7 100%);
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* General Layout */
.page-content {
    background-color: #f8f9fa;
    min-height: 100vh;
}

body[data-layout-mode="dark"] .page-content {
    background-color: #0d1117;
}

/* Typography */
.font-family-base {
    font-family: inherit;
}

/* Compact Header */
.page-header-compact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-header-compact h4 {
    color: #fff !important;
    margin-bottom: 0;
    font-size: 1.25rem;
}

.page-header-compact p {
    color: rgba(255, 255, 255, 0.85) !important;
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* Wallet Badge in Header */
.wallet-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.wallet-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.wallet-badge i {
    font-size: 1.1rem;
}

/* Enhanced Buttons */
.btn {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-soft-primary {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.btn-soft-primary:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

/* Rounded Pill Buttons */
.rounded-pill {
    border-radius: 50px !important;
    padding: 0.4rem 1.2rem;
    font-size: 0.875rem;
}

.btn-white {
    background: #fff;
    color: #6c757d;
    border: 1px solid #e0e0e0;
    transition: var(--transition-smooth);
}

.btn-white:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Action Buttons */
.btn-action {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-action i {
    font-size: 1rem;
}

.btn-action.btn-light {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.btn-action.btn-light.text-primary:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    transform: translateY(-2px) scale(1.05);
}

.btn-action.btn-light.text-danger:hover {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    transform: translateY(-2px) scale(1.05);
}

/* Search Box & Filters */
.search-card {
    border: none;
    background: #fff;
    box-shadow: var(--card-shadow);
    border-radius: 1rem;
    transition: var(--transition-smooth);
}

.search-input-group .input-group-text {
    background-color: transparent;
    padding-left: 0.5rem;
}

.search-input-group .form-control {
    border-right: none;
    box-shadow: none;
}

.search-input-group .form-control:focus {
    background: transparent;
}

/* Main Table Card */
.main-card {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    background: #fff;
    transition: var(--transition-smooth);
}

.card-header-custom {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
}

.table-responsive {
    overflow-x: auto;
}

/* Table Styling */
.custom-table {
    margin-bottom: 0;
}

.custom-table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #495057;
    padding: 1rem;
    border-bottom: 2px solid #dee2e6;
    letter-spacing: 0.5px;
}

.custom-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f0f2f5;
    transition: var(--transition-smooth);
}

.custom-table tbody tr {
    transition: var(--transition-smooth);
}

.custom-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    transform: translateX(4px);
    box-shadow: -4px 0 0 0 #667eea;
}

/* ID Badge */
.id-badge {
    font-weight: 700;
    min-width: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    transition: var(--transition-smooth);
}

.id-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Status Badges */
.badge {
    padding: 0.4em 0.8em;
    font-weight: 500;
    border-radius: 0.375rem;
}

.badge-soft {
    padding: 0.4em 0.8em;
    font-weight: 500;
}

/* Avatars */
.avatar-xs {
    height: 2.5rem;
    width: 2.5rem;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(85, 110, 230, 0.2);
}

/* Dark Mode Overrides */
body[data-layout-mode="dark"] .main-card,
body[data-layout-mode="dark"] .search-card {
    background-color: #161b22;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

body[data-layout-mode="dark"] .card-header-custom {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body[data-layout-mode="dark"] .custom-table thead th {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    color: #c9d1d9;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

body[data-layout-mode="dark"] .custom-table tbody td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #c9d1d9;
}

body[data-layout-mode="dark"] .custom-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    box-shadow: -4px 0 0 0 #667eea;
}

body[data-layout-mode="dark"] .text-dark {
    color: #c9d1d9 !important;
}

body[data-layout-mode="dark"] .bg-soft-primary {
    background-color: rgba(102, 126, 234, 0.15) !important;
    color: #a4b1e5 !important;
}

body[data-layout-mode="dark"] .bg-soft-info {
    background-color: rgba(41, 156, 219, 0.15) !important;
    color: #4dc3ff !important;
}

body[data-layout-mode="dark"] .btn-white {
    background: #21262d;
    color: #c9d1d9;
    border-color: #30363d;
}

body[data-layout-mode="dark"] .btn-white:hover {
    background: #30363d;
    border-color: #667eea;
    color: #667eea;
}

/* Spinner */
.loading-spinner {
    display: none;
    margin-left: 5px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table-row-animate {
    animation: fadeIn 0.4s ease forwards;
}

/* Alert Enhancements */
.alert {
    border-radius: 0.75rem;
    border: none;
}

.alert-soft-primary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #495057;
}