/* Custom CSS for EV Charging Calculator - Bootstrap 5 Version */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');
* {
    font-family: 'Ubuntu', 'Noto Sans Thai', sans-serif !important;
}

body {
    background: #FFFFFF;
    font-size: 0.875rem;
    height: 100vh;
    margin: 0;
    padding: 0;
}

/* Ionicons Styling */
ion-icon {
    vertical-align: middle;
}

ion-icon.me-1 {
    margin-right: 0.25rem !important;
}

ion-icon.me-2 {
    margin-right: 0.5rem !important;
}

ion-icon.text-primary {
    color: #0d6efd !important;
}

ion-icon.text-success {
    color: #198754 !important;
}

ion-icon.text-info {
    color: #0dcaf0 !important;
}

ion-icon.text-warning {
    color: #ffc107 !important;
}

/* Sidebar Styles - Muted Colors */
.sidebar {
    height: calc(100vh - 40px);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.06);
    background: #F8F9FA !important;
    overflow-y: auto;
    overflow-x: hidden;
    width: 240px;
    flex: 0 0 240px;
}
.subsidebar {
    height: calc(100vh - 40px);
}

@media (max-width: 992px) {
    .subsidebar {
        height: 100vh;
    }
}

@media (min-width: 992px) {
    .sidebar {
        width: 240px;
        max-width: 240px;
    }
}

@media (min-width: 1200px) {
    .sidebar {
        width: 220px;
        max-width: 220px;
    }
}

.sidebar .nav-link {
    color: #6C757D;
    font-weight: 400;
    border-radius: 0.375rem;
    margin: 0.125rem 1rem;
    padding: 0.75rem 1rem;
    transition: all 0.15s ease-in-out;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.sidebar .nav-link:hover {
    color: #495057;
    background-color: #E9ECEF;
}

.sidebar .nav-link.nav-link-prominent {
    color: #495057;
    font-weight: 400;
}

.sidebar .nav-link.nav-link-admin {
    color: #DC3545;
    font-weight: 400;
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.sidebar .nav-link.nav-link-admin:hover {
    color: #ffffff;
    background-color: #DC3545;
}

.sidebar .nav-link.active {
    color: #6C757D;
    background-color: #E9ECEF;
    font-weight: 500;
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 0.5rem;
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.08) !important;
    background: #FFFFFF;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.08) !important;
}

.card-header {
    border-radius: 0.75rem 0.75rem 0 0 !important;
    border-bottom: none;
    font-weight: 400;
}

/* Border Left Cards */
.border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

/* Modern Input Styles */
.modern-input {
    border: 2px solid #e3e6f0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.04);
}

.modern-input:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
    background: #fff;
}

.modern-input:hover:not(:focus) {
    border-color: #bac8f3;
}

/* Modern Button Styles */
.modern-btn {
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.04);
}

.modern-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.08);
}

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

/* Color Button Enhanced Styles */
.color-btn {
    position: relative;
    border: 1px solid #e5e7eb !important;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 20px !important;
    height: 20px !important;
    border-radius: 4px !important;
}

.color-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.color-btn:hover::before {
    width: 80%;
    height: 80%;
}

.color-btn::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: 400;
    font-size: 0.6rem;
    opacity: 0;
    transition: all 0.3s ease;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.7);
}

.color-btn.selected::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

.color-btn.selected {
    border-color: #4e73df !important;
    box-shadow: 0 0 0 2px rgba(78, 115, 223, 0.3);
    transform: scale(1.1);
    animation: colorPulse 0.6s ease-out;
}

@keyframes colorPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(78, 115, 223, 0.7);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 0 4px rgba(78, 115, 223, 0.1);
    }
    100% {
        transform: scale(1.1);
        box-shadow: 0 0 0 2px rgba(78, 115, 223, 0.3);
    }
}

.color-btn:hover {
    box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* Result Card Styles - Legacy (keeping for any remaining usage) */
.result-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 1.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.08);
}

.result-card .result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-card .result-item:last-child {
    border-bottom: none;
}

.result-item-icon {
    width: 24px;
    text-align: center;
    margin-right: 0.75rem;
}

/* Modal Result Styles */
.result-card-modal {
    padding: 1rem;
}

.result-section {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
}

.result-item-modal {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.result-item-modal:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.result-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    font-weight: 400;
}

.result-value {
    font-size: 1rem;
    color: #495057;
    font-weight: 400;
}

.result-section h6 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dee2e6;
}

/* Loading Animation */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* History Table Styles */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.04);
}

/* Auto-width scrollable table */
.table-responsive {
    border-radius: 0.5rem;
    box-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.04);
}

.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

.table th {
    color: white;
    font-weight: 400;
    border: none;
    padding: 1rem 0.75rem;
}

.table td {
    padding: 0.75rem;
    vertical-align: middle;
    border-color: #e3e6f0;
}

.table-hover tbody tr:hover {
    background-color: rgba(78, 115, 223, 0.05);
}

/* Table Sorting Styles */
.table-dark .sortable {
    position: relative;
    transition: all 0.2s ease;
    user-select: none;
    cursor: pointer;
}

.table-dark .sortable:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-1px);
}

.table-dark .sortable.active-sort {
    background-color: rgba(255, 193, 7, 0.15) !important;
    position: relative;
}

.table-dark .sortable.active-sort::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffc107, #ffdb4d);
    border-radius: 2px 2px 0 0;
}

.sort-icon {
    display: inline-block;
    transition: all 0.3s ease;
    margin-left: 0.25rem;
}

.sortable:hover .sort-icon {
    transform: scale(1.1);
}

.sortable.active-sort .sort-icon {
    animation: sortPulse 0.6s ease-out;
}

@keyframes sortPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Sort icon hover effects */
.sort-icon ion-icon {
    transition: all 0.2s ease;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.sortable:hover .sort-icon ion-icon {
    filter: drop-shadow(0 2px 4px rgba(255,193,7,0.3));
}

/* Sort direction indicator enhancement */
.sort-icon ion-icon[name="chevron-up"] {
    animation: bounceUp 0.3s ease-out;
}

.sort-icon ion-icon[name="chevron-down"] {
    animation: bounceDown 0.3s ease-out;
}

@keyframes bounceUp {
    0% { transform: translateY(2px); }
    50% { transform: translateY(-2px); }
    100% { transform: translateY(0); }
}

@keyframes bounceDown {
    0% { transform: translateY(-2px); }
    50% { transform: translateY(2px); }
    100% { transform: translateY(0); }
}

/* Table enhancement for better sorting visibility */
.table-dark th.sortable {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.table-dark th.sortable.active-sort {
    border-bottom: 2px solid #ffc107;
}

/* Loading state for sorted columns */
.sortable.loading .sort-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Badge Styles */
.badge-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.badge-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.badge-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.badge-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

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

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

.slide-up {
    animation: slideUp 0.3s ease-out;
}

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

/* Form Enhancements */
.form-label {
    font-weight: 400;
    color: #5a5c69;
    margin-bottom: 0.5rem;
}

.form-text {
    font-size: 0.8rem;
    font-weight: 400;
}

/* Modal Enhancements */
.modal-content {
    border: none;
    border-radius: 0.75rem !important;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-header {
    border-radius: 0.75rem 0.75rem 0 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #F8F9FA;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Fix btn-close positioning in modal headers */
.modal-header .btn-close {
    position: relative;
    padding: 0.5rem;
    flex-shrink: 0;
}

.modal-header .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

.modal-header .btn-close-white:hover {
    opacity: 1;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0 0 0.75rem 0.75rem !important;
    background: #F8F9FA;
}

.modal-body {
    background: #FFFFFF;
}

/* Modal dialog sizing */
.modal-dialog {
    margin-top: 1rem;
}

.modal-xl .modal-content {
    border-radius: 0.75rem !important;
}

.modal-lg .modal-content {
    border-radius: 0.75rem !important;
}

/* Modal top positioning */
.modal-top .modal-dialog {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Success/Error Messages */
.alert-custom {
    border: none;
    border-radius: 0.75rem;
    font-weight: 400;
}

.alert-success-custom {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.alert-error-custom {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

/* Car Image Styles */
#carImage {
    transition: all 0.5s ease-in-out;
    border-radius: 1rem;
    opacity: 1;
}

#carImage:hover {
    transform: scale(1.05);
}

.car-image-hidden {
    opacity: 0 !important;
    transform: scale(0.95);
}

.car-image-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.car-image-loading.fade-out {
    opacity: 0;
}

.color-selection {
    transition: opacity 0.3s ease-in-out;
}

/* Preload images class */
.preload-images {
    position: absolute;
    top: -9999px;
    left: -9999px;
    visibility: hidden;
    width: 1px;
    height: 1px;
}

/* Statistics Cards Enhancement */
.h5 {
    font-size: 1.75rem;
    font-weight: 400;
}

.text-xs {
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

/* Navbar Enhancements - #EF9A4E Theme */
.navbar-orange {
    background: #EF9A4E !important;
    box-shadow: 0 0.125rem 0.25rem rgba(239, 154, 78, 0.3) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 0.5rem 0 !important;
    height: 56px !important;
    min-height: 56px !important;
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .navbar-orange {
        height: 40px !important;
        min-height: 40px !important;
    }
}

.navbar-brand {
    font-size: 1.1rem;
    font-weight: 500;
}

.navbar-brand img {
    height: 28px !important;
}

.navbar-orange .navbar-brand {
    color: #FFFFFF !important;
    font-weight: 500 !important;
}

.navbar-orange .navbar-brand:hover {
    color: #FFFFFF !important;
}

.navbar-orange .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.navbar-orange .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.container-fluid {
    padding: 0 !important;
    max-width: 100%;
}

.container-fluid .row {
    margin: 0;
    --bs-gutter-x: 0;
}

.container-fluid .row > * {
    padding-left: 0;
    padding-right: 0;
}

/* Better grid spacing */
.row.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

.row.g-3 > * {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    margin-bottom: var(--bs-gutter-y);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.mobile-overlay.show {
    display: block;
}

/* Pagination Styles */
.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.btn-group .btn:last-child {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

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

.btn-outline-dark:disabled {
    opacity: 0.5;
    background-color: transparent;
    border-color: #6c757d;
}

.btn-outline-primary:disabled {
    opacity: 0.5;
    background-color: transparent;
    border-color: #0d6efd;
}

/* Badge enhancements for user table */
.badge.bg-secondary {
    background-color: #6c757d !important;
}

.badge.bg-info {
    background-color: #0dcaf0 !important;
    color: #000 !important;
}

/* Special user icon animation */
ion-icon[name="beer"] {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Admin Controls Wrapper */
.admin-controls-wrapper {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid rgba(239, 154, 78, 0.15);
}

/* Admin Filter Group */
.admin-filter-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border-radius: 0.375rem;
    overflow: hidden;
}

.admin-filter-btn {
    border-color: rgba(239, 154, 78, 0.3) !important;
    color: #6c757d !important;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    background: #ffffff;
}

.admin-filter-btn:hover {
    background-color: rgba(239, 154, 78, 0.1) !important;
    border-color: rgba(239, 154, 78, 0.4) !important;
    color: #EF9A4E !important;
}

.btn-check:checked + .admin-filter-btn {
    background-color: #EF9A4E !important;
    border-color: #EF9A4E !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(239, 154, 78, 0.3);
}

.btn-check:checked + .admin-filter-btn:hover {
    background-color: #E6923F !important;
    border-color: #E6923F !important;
    color: #ffffff !important;
}

/* Admin Page Badge */
.admin-page-badge {
    background: linear-gradient(135deg, #EF9A4E 0%, #E6923F 100%) !important;
    color: #ffffff !important;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 0.25rem;
    box-shadow: 0 2px 4px rgba(239, 154, 78, 0.25);
}

/* Admin Navigation Group */
.admin-nav-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border-radius: 0.25rem;
    overflow: hidden;
}

.admin-nav-btn {
    border-color: rgba(239, 154, 78, 0.3) !important;
    color: #6c757d !important;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    transition: all 0.2s ease;
    background: #ffffff;
}

.admin-nav-btn:hover:not(:disabled) {
    background-color: rgba(239, 154, 78, 0.1) !important;
    border-color: rgba(239, 154, 78, 0.4) !important;
    color: #EF9A4E !important;
}

.admin-nav-btn:disabled {
    opacity: 0.4;
    background-color: #f8f9fa !important;
    border-color: rgba(108, 117, 125, 0.2) !important;
    color: #adb5bd !important;
}

/* Filter Section */
.filter-section {
    display: flex;
    align-items: center;
}

/* Pagination Section */
.pagination-section {
    display: flex;
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .admin-controls-wrapper {
        padding: 0.75rem;
    }
    
    .admin-filter-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .admin-filter-btn span {
        display: none;
    }
    
    .admin-filter-btn ion-icon {
        margin-right: 0 !important;
    }
    
    .admin-page-badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.6rem;
    }
    
    .admin-nav-btn {
        padding: 0.35rem 0.5rem;
    }
}

/* Admin Filter button specific styles */
.admin-filter-group input[type="radio"] {
    display: none;
}

.admin-filter-group label {
    margin-bottom: 0;
    transition: all 0.2s ease-in-out;
    position: relative;
}

.admin-filter-group label:first-of-type {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.admin-filter-group label:last-of-type {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

.admin-filter-group label:not(:first-child) {
    border-left: none;
}

.admin-filter-group label:not(:last-child) {
    border-right: 1px solid rgba(239, 154, 78, 0.3);
}

/* Special filter button with beer icon */
.btn-check:checked + label[for="filterSpecial"] {
    background-color: #EF9A4E !important;
    border-color: #EF9A4E !important;
    color: #ffffff !important;
}

label[for="filterSpecial"]:hover {
    background-color: rgba(239, 154, 78, 0.1) !important;
    border-color: rgba(239, 154, 78, 0.4) !important;
    color: #EF9A4E !important;
}

/* Admin Navigation button specific styles */
.admin-nav-group input[type="radio"] {
    display: none;
}

.admin-nav-group label,
.admin-nav-group button {
    margin-bottom: 0;
    transition: all 0.2s ease-in-out;
}

.admin-nav-group button:first-of-type {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.admin-nav-group button:last-of-type {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.admin-nav-group button:not(:first-child) {
    border-left: none;
}

.admin-nav-group button:not(:last-child) {
    border-right: 1px solid rgba(239, 154, 78, 0.3);
}

/* Admin Stats Cards */
.admin-stats-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(239, 154, 78, 0.1);
    overflow: hidden;
}

.admin-stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 154, 78, 0.15);
    border-color: rgba(239, 154, 78, 0.2);
}

.stats-badge {
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.admin-stats-card:hover .stats-badge {
    opacity: 1;
}

.stats-content {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid rgba(239, 154, 78, 0.08);
}

.stat-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0.375rem;
    padding: 0.75rem;
    border: 1px solid rgba(239, 154, 78, 0.1);
    transition: all 0.2s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(239, 154, 78, 0.2);
    transform: translateX(2px);
}

.stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(239, 154, 78, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: block;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    line-height: 1.2;
}

/* Stats content loading state */
.stats-content .spinner-border {
    border-width: 0.15rem;
}

/* Responsive stats */
@media (max-width: 991.98px) {
    .admin-stats-card .card-header {
        padding: 1rem;
    }
    
    .admin-stats-card .card-body {
        padding: 1rem !important;
    }
    
    .stats-content {
        padding: 0.75rem;
    }
    
    .stat-item {
        padding: 0.5rem;
    }
    
    .stat-icon {
        width: 2rem;
        height: 2rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
}

/* Filter icon animations */
.btn-group label ion-icon[name="beer"] {
    animation: heartbeat 1.5s ease-in-out infinite;
}

.btn-group label ion-icon[name="people"],
.btn-group label ion-icon[name="person"] {
    transition: transform 0.2s ease;
}

.btn-group label:hover ion-icon {
    transform: scale(1.1);
}

/* User Panel Card Styles */
.user-panel-card {
    margin-bottom: 0;
}

.user-panel-card .card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    transition: all 0.2s ease;
}

.user-panel-card .card:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1) !important;
}

.user-panel-card .avatar-sm {
    width: 2rem;
    height: 2rem;
}

.user-panel-card .avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #F8F9FA !important;
    border: 1px solid #E9ECEF;
}

.user-panel-card .bg-orange-light {
    background: linear-gradient(135deg, rgba(239, 154, 78, 0.12) 0%, rgba(239, 154, 78, 0.08) 100%) !important;
    border: 1px solid rgba(239, 154, 78, 0.15) !important;
}

.user-panel-card .text-orange {
    color: #EF9A4E !important;
}

.user-panel-card h6:hover {
    text-decoration: underline;
    color: #495057 !important;
}

.sidebar-footer {
    background: linear-gradient(135deg, rgba(239, 154, 78, 0.08) 0%, rgba(239, 154, 78, 0.04) 100%);
    margin: 0 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(239, 154, 78, 0.1);
}

.badge-orange {
    background: linear-gradient(135deg, #EF9A4E 0%, #E6923F 100%) !important;
    color: #FFFFFF !important;
    border: none;
    box-shadow: 0 2px 4px rgba(239, 154, 78, 0.25);
}

.text-orange {
    color: #EF9A4E !important;
    font-weight: 600;
}

.bg-orange-light {
    background: linear-gradient(135deg, rgba(239, 154, 78, 0.12) 0%, rgba(239, 154, 78, 0.08) 100%) !important;
    border: 1px solid rgba(239, 154, 78, 0.15);
}

.btn-orange {
    background: linear-gradient(135deg, #EF9A4E 0%, #E6923F 100%) !important;
    border: none !important;
    color: #FFFFFF !important;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(239, 154, 78, 0.25);
}

.btn-orange:hover {
    background: linear-gradient(135deg, #E6923F 0%, #DD8A36 100%) !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 154, 78, 0.35);
}

.btn-orange:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(239, 154, 78, 0.25) !important;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: -100%;
        z-index: 1000;
        transition: left 0.3s ease-in-out;
        width: 260px;
        background: #F8F9FA;
        box-shadow: 0.25rem 0 0.5rem rgba(0, 0, 0, 0.08);
        height: 100vh !important;
    }
    
    main {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Mobile statistics cards */
    .card-border-shadow-primary .card-body,
    .card-border-shadow-success .card-body,
    .card-border-shadow-info .card-body,
    .card-border-shadow-warning .card-body {
        padding: 0.75rem;
    }
    
    .card h4 {
        font-size: 1.1rem;
    }
    
    .card .text-heading {
        font-size: 0.75rem;
    }
    
    .card p:last-child {
        font-size: 0.7rem;
    }
    
    .avatar {
        width: 1.875rem;
        height: 1.875rem;
    }
    
    .card-border-shadow-primary .avatar,
    .card-border-shadow-success .avatar,
    .card-border-shadow-info .avatar,
    .card-border-shadow-warning .avatar {
        margin-right: 0.5rem;
    }

    
    .sidebar.show {
        left: 0;
    }
    
    .color-btn {
        width: 18px !important;
        height: 18px !important;
    }
    
    .color-btn::after {
        font-size: 0.5rem;
    }
    
    .result-card {
        font-size: 0.9rem;
    }
    
    /* Mobile responsive sorting */
    .sort-icon {
        margin-left: 0.125rem;
    }
    
    .sort-icon ion-icon {
        font-size: 12px;
    }
    
    .table-dark .sortable::after {
        height: 2px;
    }
    
    /* Responsive filter controls */
    .card-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .card-header .d-flex > div:first-child {
        margin-bottom: 0.75rem;
    }
    
    .btn-group-sm .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
    
    .btn-group label span {
        display: none;
    }
    
    .btn-group label ion-icon {
        margin-right: 0 !important;
    }
}

@media (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1rem;
        padding : 0 0 !important;
    }
}

@media (max-width: 576px) {
    .color-btn {
        width: 16px !important;
        height: 16px !important;
    }
    
    .color-btn::after {
        font-size: 0.4rem;
    }
    
    /* Enhanced responsive table */
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
    }
    
    .badge {
        font-size: 0.65rem;
    }
    
    /* Mobile navbar adjustments */
    .navbar-brand {
        font-size: 1rem;
        padding : 0 0 !important;
    }
    
    .navbar-brand img {
        height: 24px !important;
    }
    
    /* Mobile main content */
    main {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        padding-top: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .color-btn {
        width: 16px !important;
        height: 16px !important;
    }
    
    .color-btn::after {
        font-size: 0.4rem;
    }
}

/* ==========================================
   SNEAT THEME INTEGRATION STYLES
   ========================================== */

/* Orange theme card enhancements - Minimal */
.card-border-shadow-primary {
    border-left: 3px solid #FEA55D;
    box-shadow: 0 0.125rem 0.25rem rgba(254, 165, 93, 0.3);
}

.card-border-shadow-success {
    border-left: 3px solid #FEA55D;
    box-shadow: 0 0.125rem 0.25rem rgba(254, 165, 93, 0.3);
}

.card-border-shadow-info {
    border-left: 3px solid #FEA55D;
    box-shadow: 0 0.125rem 0.25rem rgba(254, 165, 93, 0.3);
}

.card-border-shadow-warning {
    border-left: 3px solid #FEA55D;
    box-shadow: 0 0.125rem 0.25rem rgba(254, 165, 93, 0.3);
}

/* Avatar styling for statistics cards */
.avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 2.875rem;
    height: 2.875rem;
}

.avatar.avatar-sm {
    width: 2rem;
    height: 2rem;
}

.avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #f5f5f9;
    color: #677788;
    font-weight: 500;
    border-radius: 0.375rem;
}

/* Text styling */
.text-heading {
    color: #566a7f !important;
    font-weight: 500;
}

/* Button label variants */
.btn-label-primary {
    background-color: rgba(105, 108, 255, 0.16);
    border-color: rgba(105, 108, 255, 0.16);
    color: #696cff;
}

.btn-label-secondary {
    background-color: rgba(133, 146, 163, 0.16);
    border-color: rgba(133, 146, 163, 0.16);
    color: #8592a3;
}

.btn-label-warning {
    background-color: rgba(251, 188, 5, 0.16);
    border-color: rgba(251, 188, 5, 0.16);
    color: #fbbc05;
}

/* Icon styling */
.tf-icons {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.bx-lg {
    font-size: 1.5rem;
}

/* Enhanced spacing using Sneat scale */
.mb-6 {
    margin-bottom: 2rem !important;
}

.mt-6 {
    margin-top: 2rem !important;
}


/* Form control large sizing */
.form-control-lg {
    min-height: calc(1.5em + 1rem + 2px);
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
    border-radius: 0.5rem;
}

/* Minimal card styling - Orange theme */
.card {
    border: none !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.08) !important;
    transition: all 0.2s ease-in-out !important;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(254, 165, 93, 0.15) !important;
}

/* Minimal main content padding */
main.px-md-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

/* Ensure no overflow on main container */
.container-fluid > .row {
    overflow: hidden;
}

/* Main content area adjustments */
main {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    flex: 1;
}

/* Statistics cards improvements */
.avatar {
    width: 2.25rem;
    height: 2.25rem;
}

/* Statistics cards specific styling */
.card-border-shadow-primary .card-body,
.card-border-shadow-success .card-body,
.card-border-shadow-info .card-body,
.card-border-shadow-warning .card-body {
    padding: 1rem;
}

/* Regular cards */
.card-body {
    padding: 1.25rem;
}

/* Compact design for statistics */
.card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.2;
}

.card .text-heading {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.card p:last-child {
    margin-bottom: 0;
    font-size: 0.75rem;
    line-height: 1.3;
}

/* Statistics cards container */
.card-border-shadow-primary,
.card-border-shadow-success,
.card-border-shadow-info,
.card-border-shadow-warning {
    min-height: auto;
}

.card-border-shadow-primary .d-flex,
.card-border-shadow-success .d-flex,
.card-border-shadow-info .d-flex,
.card-border-shadow-warning .d-flex {
    align-items: center;
    margin-bottom: 0.5rem;
}

/* Avatar spacing for statistics cards */
.card-border-shadow-primary .avatar,
.card-border-shadow-success .avatar,
.card-border-shadow-info .avatar,
.card-border-shadow-warning .avatar {
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* ==========================================
   AUTHENTICATION PAGES STYLES (LOGIN/REGISTER)
   ========================================== */

/* Authentication Page Layout - Orange to White Gradient */
body.auth-body {
    background: linear-gradient(135deg, #FEA55D 0%, #FFFFFF 100%) !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    font-family: 'Public Sans', 'Inter', '-apple-system', BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    padding: 0 !important;
    margin: 0 !important;
}

.auth-body .main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Authentication Footer - Minimal Design */
.footer-auth {
    background: rgba(255, 255, 255, 0.08) !important;
    padding: 1rem !important;
    text-align: center !important;
    backdrop-filter: blur(15px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.footer-auth p {
    margin: 0 !important;
    font-size: 0.875rem !important;
    color: #8E481C !important;
    font-weight: 400 !important;
}

.footer-auth .badge {
    font-size: 0.75rem !important;
    padding: 0.25em 0.5em !important;
    background: rgba(255, 255, 255, 0.2) !important;
    color: #8E481C !important;
    border-radius: 0.25rem !important;
}

.footer-auth ion-icon {
    color: #8E481C !important;
}

/* Authentication Containers - Minimal Design */
.login-container,
.register-container {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
    padding: 1.5rem !important;
    width: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.125) !important;
}

.login-container {
    max-width: 360px !important;
}

.register-container {
    max-width: 380px !important;
}

.login-container::before,
.register-container::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #FEA55D 0%, #FFFFFF 100%) !important;
}

/* Authentication Brand Logo - Minimal Design */
.auth-body .brand-logo {
    text-align: center !important;
    margin-bottom: 1.5rem !important;
}

.auth-body .brand-logo img {
    filter: drop-shadow(0 0.125rem 0.25rem rgba(0, 0, 0, 0.1)) !important;
    margin-bottom: 0.5rem !important;
    height: 64px !important;
}

.auth-body .brand-title {
    font-size: 1.25rem !important;
    font-weight: 500 !important;
    color: #566a7f !important;
    margin: 0 !important;
    margin-bottom: 0.25rem !important;
}

.auth-body .brand-subtitle {
    font-size: 0.875rem !important;
    color: #a8b1bb !important;
    margin-top: 0 !important;
    font-weight: 400 !important;
}

/* Authentication Form Styles - Minimal Design */
.auth-body .form-group {
    margin-bottom: 0.75rem !important;
}

.auth-body .form-label {
    font-weight: 400 !important;
    color: #566a7f !important;
    margin-bottom: 0.25rem !important;
    font-size: 0.875rem !important;
}

.auth-body .form-control {
    border: 1px solid #d9dee3 !important;
    border-radius: 0.25rem !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.875rem !important;
    transition: all 0.15s ease-in-out !important;
    background: rgba(255, 255, 255, 0.8) !important;
    color: #566a7f !important;
    font-weight: 400 !important;
}

.auth-body .form-control:focus {
    border-color: #696cff !important;
    box-shadow: 0 0 0 0.2rem rgba(105, 108, 255, 0.25) !important;
    outline: none !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

.auth-body .form-control:hover:not(:focus) {
    border-color: #b8c2cc !important;
    background: rgba(255, 255, 255, 0.9) !important;
}

.auth-body .form-control.is-valid {
    border-color: #71dd37 !important;
    box-shadow: 0 0 0 0.2rem rgba(113, 221, 55, 0.25) !important;
}

.auth-body .form-control.is-invalid {
    border-color: #ff3e1d !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 62, 29, 0.25) !important;
}

/* Authentication Buttons - Orange Theme */
.auth-body .btn-primary {
    background: linear-gradient(270deg, #F88A01 0%, #FF6B35 100%) !important;
    border: none !important;
    border-radius: 0.25rem !important;
    padding: 0.5rem 1rem !important;
    font-weight: 400 !important;
    font-size: 0.875rem !important;
    transition: all 0.15s ease-in-out !important;
    width: 100% !important;
    color: #fff !important;
    box-shadow: 0 0.125rem 0.25rem rgba(248, 138, 1, 0.3) !important;
}

.auth-body .btn-primary:hover {
    transform: translateY(-0.125rem) !important;
    box-shadow: 0 0.25rem 0.5rem rgba(248, 138, 1, 0.5) !important;
    background: linear-gradient(270deg, #E67E01 0%, #E85A2B 100%) !important;
}

.auth-body .btn-primary:active {
    transform: translateY(0) !important;
    box-shadow: 0 0.125rem 0.25rem rgba(248, 138, 1, 0.4) !important;
}

.auth-body .btn-primary:disabled {
    opacity: 0.65 !important;
    transform: none !important;
    box-shadow: 0 0.125rem 0.25rem rgba(248, 138, 1, 0.4) !important;
    background: linear-gradient(270deg, #F88A01 0%, #FF6B35 100%) !important;
}

/* Authentication Links - Minimal Design */
.register-link,
.login-link {
    text-align: center;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.register-link a,
.login-link a {
    color: #F88A01;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.8125rem;
}

.register-link a:hover,
.login-link a:hover {
    text-decoration: underline;
}

/* Authentication Alerts - Minimal Design */
.auth-body .alert {
    border-radius: 0.25rem !important;
    font-size: 0.8125rem !important;
    margin-bottom: 1rem !important;
    border: none !important;
    padding: 0.5rem 0.75rem !important;
    font-weight: 400 !important;
}

.auth-body .alert-danger {
    background-color: rgba(255, 62, 29, 0.12) !important;
    color: #ff3e1d !important;
    border-left: 3px solid #ff3e1d !important;
}

.auth-body .alert-success {
    background-color: rgba(113, 221, 55, 0.12) !important;
    color: #71dd37 !important;
    border-left: 3px solid #71dd37 !important;
}

/* Authentication Loading States */
.auth-body .spinner-border-sm {
    width: 1rem !important;
    height: 1rem !important;
}

.auth-body .loading-text {
    margin-left: 0.5rem;
}

/* Registration Specific Styles - Minimal Design */
.password-requirements {
    font-size: 0.75rem !important;
    color: #a8b1bb !important;
    margin-top: 0.25rem !important;
    font-weight: 400 !important;
}

.invite-code-info {
    background-color: rgba(248, 138, 1, 0.06) !important;
    border-radius: 0.25rem !important;
    padding: 0.5rem !important;
    margin-top: 0.25rem !important;
    font-size: 0.75rem !important;
    color: #F88A01 !important;
    border: 1px solid rgba(248, 138, 1, 0.15) !important;
}

.invite-code-info ion-icon {
    color: #F88A01 !important;
    margin-right: 0.25rem !important;
    font-size: 0.875rem !important;
}

.auth-body .form-text {
    font-size: 0.75rem !important;
    color: #a8b1bb !important;
    margin-top: 0.25rem !important;
    font-weight: 400 !important;
}

.auth-body .form-text.text-success {
    color: #71dd37 !important;
}

.auth-body .form-text.text-danger {
    color: #ff3e1d !important;
}