/* Email Management - Minimal & Modern Design */

/* Balance Alert Styles (giống VPS) */
.balance-alert-compact {
    height: 100%;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.balance-alert-content {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.balance-alert-content i {
    font-size: 1.5rem;
    color: #ffc107;
}

.balance-alert-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.balance-alert-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #856404;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.balance-alert-amount {
    font-size: 0.9rem;
    color: #856404;
}

.balance-alert-amount strong {
    color: #d32f2f;
    font-weight: 700;
    font-size: 1rem;
}

:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --border-radius: 0.5rem;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    background-color: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Email Card Styles - Premium Design */

.mail-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
    position: relative;
}

.mail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #20c997 0%, #17a2b8 50%, #20c997 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.mail-card:hover {
    box-shadow: 0 8px 24px rgba(32, 201, 151, 0.2);
    transform: translateY(-4px);
    border-color: #20c997;
}

.mail-card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mail-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.mail-card-header h5 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.mail-card-header .badge {
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mail-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.mail-config-info {
    /* background: linear-gradient(135deg, #f0fdfa 0%, #e6fffa 100%);
    border: 1px solid #b2f5ea;
    border-left: 4px solid #20c997;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(32, 201, 151, 0.1); */
    margin-bottom: 1.5rem;
}

.mail-config-info h6 {
    color: #0d9488;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mail-config-info h6 i {
    color: #20c997;
    font-size: 1.2rem;
}

.mail-config-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mail-config-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    color: #495057;
    border-bottom: 1px solid #e0f2fe;
    transition: all 0.2s ease;
}

.mail-config-list li:hover {
    background: rgba(32, 201, 151, 0.05);
    padding-left: 0.5rem;
    border-radius: 6px;
}

.mail-config-list li:last-child {
    border-bottom: none;
}

.mail-config-list li i {
    color: #20c997;
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.mail-config-list li strong {
    color: #0d9488;
    font-weight: 700;
    margin-left: auto;
    font-size: 1rem;
}

.mail-pricing {
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
    border-radius: 10px;
    border: 1px solid #b2f5ea;
}

.mail-price-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.price-value {
    font-size: 2rem;
    font-weight: 800;
    color: #20c997;
    line-height: 1;
}

.price-cycle {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

.mail-pricing-table {
    margin-top: 1rem;
}

.mail-cycle-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
    margin: 0;
}

.mail-cycle-table thead {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    color: white;
    border-radius: 8px 8px 0 0;
}

.mail-cycle-table th {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.mail-cycle-table th:first-child {
    text-align: left;
    padding-left: 1rem;
}

.mail-cycle-table th:last-child {
    text-align: center;
}

.mail-cycle-table tbody tr {
    background: white;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.mail-cycle-table tbody tr:hover {
    background: #f0fdfa;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(32, 201, 151, 0.15);
}

.mail-cycle-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.95rem;
}

.cycle-label {
    text-align: left;
    color: #475569;
    font-weight: 500;
    font-size: 0.9rem;
}

.cycle-price {
    text-align: right;
    font-weight: 700;
    color: #20c997;
    font-size: 1rem;
}

.cycle-discount-cell {
    text-align: center;
    padding: 0.5rem 0.25rem;
}

.cycle-discount {
    display: inline-block;
    font-size: 0.875rem;
    padding: 4px 12px;
    border-radius: 14px;
    background: #20c997 !important;
    color: #fff !important;
    font-weight: 600;
    min-width: 56px;
    box-shadow: 0 2px 6px rgba(32, 201, 151, 0.3);
    text-align: center;
    letter-spacing: 0.3px;
}

.mail-card-footer {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
}

.mail-card-footer .btn {
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(32, 201, 151, 0.3);
    position: relative;
    overflow: hidden;
}

.mail-card-footer .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.mail-card-footer .btn:hover::before {
    left: 100%;
}

.mail-card-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 201, 151, 0.4);
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.mail-card-footer .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(32, 201, 151, 0.3);
}

.mail-card-footer .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #94a3b8;
    box-shadow: none;
}

.mail-card-footer .btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.mail-card-footer .btn i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Badge styles in header */
.mail-card-header .badge.bg-success {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white !important;
}

.mail-card-header .badge.bg-danger {
    background: rgba(220, 53, 69, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white !important;
}

/* Billing Selection Cards - Mail Style */
.mail-billing-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.mail-billing-card {
    flex: 1;
    min-width: 140px;
    padding: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: white;
    position: relative;
}

.mail-billing-card:hover {
    border-color: #20c997;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 201, 151, 0.2);
}

.mail-billing-card.selected {
    border-color: #20c997;
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.1) 0%, rgba(23, 162, 184, 0.1) 100%);
    box-shadow: 0 4px 16px rgba(32, 201, 151, 0.3);
}

.mail-billing-card .mail-billing-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.mail-billing-card .mail-billing-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #20c997;
    margin-bottom: 0.25rem;
}

.mail-billing-card .mail-billing-price-per-month {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.mail-billing-card .mail-discount-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #20c997;
    color: white;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 0.5rem;
    box-shadow: 0 2px 4px rgba(32, 201, 151, 0.3);
}

/* Modal improvements */
.modal-header {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

.modal-header .modal-title {
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header .modal-title i {
    font-size: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

.form-control-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.form-control-lg:focus {
    border-color: #20c997;
    box-shadow: 0 0 0 0.2rem rgba(32, 201, 151, 0.25);
}

.alert-info {
    background: linear-gradient(135deg, #e6fffa 0%, #f0fdfa 100%);
    border-left: 4px solid #20c997;
    border-radius: 8px;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
}

/* Password input group */
.input-group .btn {
    border-left: none;
    transition: all 0.3s ease;
}

.input-group .btn:hover {
    background: #f8f9fa;
    border-color: #20c997;
    color: #20c997;
}

.input-group .btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(32, 201, 151, 0.25);
    border-color: #20c997;
}

.input-group .form-control:focus {
    border-color: #20c997;
    box-shadow: 0 0 0 0.2rem rgba(32, 201, 151, 0.25);
}

.input-group .form-control:focus + .btn {
    border-color: #20c997;
}

#btn-generate-password {
    border-left: 1px solid #dee2e6;
}

#btn-generate-password:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    color: white;
    border-color: #20c997;
}

#btn-toggle-password:hover {
    background: #f8f9fa;
    color: #20c997;
}

/* Loading Animation */

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Loading Overlay - Modern Design */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.loading-content {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    min-width: 280px;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.loading-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.loading-spinner-modern {
    width: 80px;
    height: 80px;
    border: 4px solid #e9ecef;
    border-top: 4px solid var(--info-color);
    border-right: 4px solid var(--info-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
    top: 0;
    left: 0;
}

.loading-pulse {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(23, 162, 184, 0.1);
    position: absolute;
    top: 0;
    left: 0;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text-modern h5 {
    color: #212529;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.loading-text-modern p {
    font-size: 0.9rem;
    color: #6c757d;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%,
    20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%,
    100% {
        content: '...';
    }
}

/* Skeleton Loading - Modern Design */

.skeleton-plan-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease;
}

.skeleton-plan-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.skeleton {
    background: linear-gradient(90deg, #f8f9fa 25%, #e9ecef 50%, #f8f9fa 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-text.long {
    height: 24px;
    width: 80%;
}

.skeleton-text.medium {
    height: 18px;
    width: 60%;
}

.skeleton-text.short {
    height: 16px;
    width: 40%;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes skeleton-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Modal Enhancements */

.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background: linear-gradient(135deg, var(--info-color), #138496);
    color: white;
    border-bottom: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 1.5rem;
}

/* Email Tabs Styles - Premium Design */

.mail-tabs-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.95) 100%);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    border: 1px solid rgba(23, 162, 184, 0.1);
    position: relative;
    overflow: hidden;
}

.mail-tabs-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #17a2b8 0%, #138496 50%, #17a2b8 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.mail-tabs {
    border-bottom: none;
    margin-bottom: 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mail-tabs .nav-link {
    color: #6b7280;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    background: transparent;
    overflow: hidden;
}

.mail-tabs .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(19, 132, 150, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.mail-tabs .nav-link:hover::before {
    opacity: 1;
}

.mail-tabs .nav-link i {
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.mail-tabs .nav-link span {
    position: relative;
    z-index: 1;
}

.mail-tabs .nav-link:hover {
    color: #17a2b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.15);
}

.mail-tabs .nav-link:hover i {
    transform: scale(1.1) rotate(5deg);
    color: #17a2b8;
}

.mail-tabs .nav-link.active {
    color: white;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(23, 162, 184, 0.4);
    transform: translateY(-2px);
}

.mail-tabs .nav-link.active::before {
    opacity: 0;
}

.mail-tabs .nav-link.active i {
    color: white;
    transform: scale(1.1);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%,
    100% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.15);
    }
}

.mail-tabs .nav-link.active:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.5);
}

/* Tab Description - Premium */

.tab-description-container {
    padding: 1rem 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(23, 162, 184, 0.1);
}

.tab-description {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #6b7280;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-description::before {
    content: 'ℹ️';
    font-size: 1.1rem;
    opacity: 0.7;
}

.mail-tabs-container button {
    border-radius: 12px;
}

/* Responsive Design */

@media (max-width: 768px) {
    .mail-tabs-container {
        padding: 0.75rem 1rem;
        border-radius: 12px;
    }
    
    .mail-tabs-container::before {
        height: 2px;
    }
    
    .mail-tabs {
        display: flex;
        flex-wrap: nowrap;
        min-width: max-content;
        gap: 0.25rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .mail-tabs::-webkit-scrollbar {
        height: 4px;
    }
    
    .mail-tabs::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .mail-tabs::-webkit-scrollbar-thumb {
        background: rgba(23, 162, 184, 0.3);
        border-radius: 2px;
    }
    
    .mail-tabs .nav-link {
        white-space: nowrap;
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
        border-radius: 10px;
    }
    
    .mail-tabs .nav-link i {
        font-size: 1rem;
    }
    
    .tab-description-container {
        padding: 0.75rem 0 0.5rem 0;
        flex-wrap: wrap;
    }
    
    .tab-description {
        font-size: 0.875rem;
    }
    
    .mail-card {
        margin-bottom: 1rem;
    }
    
    .mail-card-header h5 {
        font-size: 1.25rem;
    }
    
    .mail-config-info {
        padding: 1rem;
    }
    
    .mail-config-list li {
        font-size: 0.875rem;
        padding: 0.625rem 0;
    }
    
    .price-value {
        font-size: 1.75rem;
    }
    
    .mail-card-footer .btn {
        font-size: 0.95rem;
        padding: 0.625rem 1.25rem;
    }
    
    .mail-cycle-table th,
    .mail-cycle-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.85rem;
    }
}

/* Custom Scrollbar */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}

/* Smooth Transitions */

.mail-card,
.btn,
.modal-content {
    transition: var(--transition);
}

/* Button processing effect */

.btn-processing {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
    transform: scale(0.98);
    transition: all 0.2s ease;
}

.btn-processing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: inherit;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Empty State */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

