/* Admin Dashboard & Login CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* ============================================
   Admin Login Page
   ============================================ */

.admin-login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
}

.admin-login-box {
    background: #fff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 450px;
}

.admin-login-box h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-control {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.3s;
    z-index: 1;
}

.password-toggle:hover {
    color: #0066cc;
}

.password-toggle:focus {
    outline: none;
    color: #0066cc;
}

.eye-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.btn-primary {
    background: #0066cc;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    max-width: 200px;
    display: block;
    margin: 0 auto;
}

.btn-primary:hover {
    background: #0052a3;
}

.btn-block {
    width: 100%;
    max-width: 200px;
    display: block;
    margin: 0 auto;
}

.error-message {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
    border-radius: 4px;
    text-align: center;
}

/* ============================================
   Admin Dashboard
   ============================================ */

.admin-container {
    min-height: 100vh;
    background: #f5f5f5;
}

/* Admin Header */
.admin-header {
    background: #fff;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h1 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-right: 1rem;
}

.admin-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.admin-info p strong {
    color: #333;
    font-weight: 600;
}

/* Admin Header Actions */
.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

/* Theme Toggle */
.admin-theme-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    border-radius: 50%;
    transition: all 0.3s;
    border: 2px solid transparent;
    background: #f5f5f5;
    position: relative;
}

.admin-theme-toggle:hover {
    background: #e8e8e8;
    color: #0066cc;
    border-color: #0066cc;
}

.admin-theme-toggle .theme-icon {
    width: 20px;
    height: 20px;
    position: absolute;
    transition: opacity 0.3s, transform 0.3s;
}

.admin-theme-toggle .moon-icon {
    display: none;
}

/* Admin User Menu (Dropdown) */
.admin-user-menu {
    position: relative;
    display: inline-block;
}

.admin-user-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    border-radius: 50%;
    transition: all 0.3s;
    border: 2px solid transparent;
    background: #f5f5f5;
}

.admin-user-icon:hover {
    background: #e8e8e8;
    color: #0066cc;
    border-color: #0066cc;
}

.admin-user-icon svg {
    width: 24px;
    height: 24px;
}

.admin-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    overflow: hidden;
    margin-top: 0;
    padding-top: 15px; /* Invisible bridge so hover doesn't break when moving from icon to dropdown */
}

.admin-user-dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 15px;
    margin-top: -15px;
}

.admin-user-menu:hover .admin-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.admin-dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
}

.admin-dropdown-item:first-child {
    border-top: none;
}

.admin-dropdown-item:last-child {
    border-bottom: none;
}

.admin-dropdown-item:hover {
    background: #f0f7ff;
    color: #0066cc;
}

.admin-dropdown-item span {
    display: block;
    letter-spacing: 0.5px;
}

.admin-dropdown-logout {
    color: #dc3545;
    border-top: 2px solid #e0e0e0;
    margin-top: 0.25rem;
    padding-top: 0.875rem;
}

.admin-dropdown-logout:hover {
    background: #fee;
    color: #c82333;
}

.btn-logout {
    background: #dc3545;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: #c82333;
}

/* Admin Content */
.admin-content {
    padding: 2rem;
    max-width: 100%;
    overflow-x: auto;
}

/* Bulk Actions Section */
.bulk-actions {
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.btn-delete-bulk {
    background: #dc3545;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 500;
    position: absolute;
    right : 3rem;
}

.btn-delete-bulk:hover:not(:disabled) {
    background: #c82333;
}

.btn-delete-bulk:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Filters Section */
.filters {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-form select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    background: #fff;
    cursor: pointer;
    min-width: 150px;
}

.recipient-email-input {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    background: #fff;
    cursor: pointer;
    min-width: 150px;
}

.filter-form select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

.btn-filter {
    background: #0066cc;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-filter:hover {
    background: #0052a3;
}

.btn-check-overdue {
    background: #ff9800;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    border: none;
    font-size: 0.95rem;
    transition: background 0.3s;
    display: inline-block;
    cursor: pointer;
    margin-left: 10px;
}

.btn-check-overdue:hover {
    background: #f57c00;
}

.btn-check-overdue:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-export {
    background: #28a745;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.3s;
    display: inline-block;
}

.btn-export:hover {
    background: #218838;
}

/* Users Table */
.users-table {
    width: 100%;
    background: #fff;
    border-collapse: collapse;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    min-width: 1400px;
}

.users-table thead {
    background: #0066cc;
    color: #fff;
}

.users-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.users-table th:hover {
    background: #0052a3;
}

.users-table th.sortable::after {
    content: '';
    position: absolute;
    right: 0.5rem;
    font-size: 0.7rem;
    opacity: 0;
}

.users-table th.sort-asc::after {
    content: '▲';
    opacity: 1;
}

.users-table th.sort-desc::after {
    content: '▼';
    opacity: 1;
}

.users-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s;
}

.users-table tbody tr.even-row {
    background: #ffffff;
}

.users-table tbody tr.odd-row {
    background: #f5f5f5;
}

.users-table tbody tr.even-row:hover {
    background: #f0f0f0;
}

.users-table tbody tr.odd-row:hover {
    background: #e8e8e8;
}

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

.users-table td {
    padding: 1rem;
    font-size: 0.9rem;
    vertical-align: middle;
}

.users-table td .admin-notes-input {
    width: 100%;
    min-width: 200px;
    max-width: 300px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.users-table td .admin-notes-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0,102,204,0.1);
}

.users-table td .btn-save-notes {
    margin-top: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s;
}

.users-table td .btn-save-notes:hover {
    background: #218838;
}

.users-table td .notes-save-status {
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.users-table td:last-child {
    text-align: center;
    width: 40px;
}

.users-table th:last-child {
    text-align: center;
    min-width: 150px;
    cursor: default;
}

.users-table th:last-child:hover {
    background: #0066cc;
}

.users-table td:nth-child(2),
.users-table td:nth-child(3) {
    text-align: center;
}

/* Checkboxes */
.user-select-checkbox,
.payment-checkbox,
.open-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #0066cc;
}

.payment-checkbox:checked {
    background: #28a745;
}

.open-checkbox:checked {
    background: #0066cc;
}

/* Table Links */
.users-table a {
    color: #0066cc;
    text-decoration: none;
    word-break: break-all;
}

.users-table a:hover {
    text-decoration: underline;
}

/* User Type Badge */
.user-type-badge-text {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    min-width: 50px;
    background: transparent;
    border: none;
}

.user-type-new {
    color: #0066cc;
}

.user-type-existing {
    color: #666;
}

.user-type-free {
    color: #ff9900;
}

/* Payment Status Badges */
.payment-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    min-width: 60px;
}

.payment-badge-credit {
    background: #28a745;
    color: #fff;
}

.payment-badge-transfer-pending {
    background: #dc3545;
    color: #fff;
}

.payment-badge-transfer-completed {
    background: #0066cc;
    color: #fff;
}

.payment-badge-unused {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.payment-badge-clickable:hover {
    opacity: 0.8;
    transform: scale(1.05);
    transition: all 0.2s;
}

/* Dark theme payment badges */
.dark-theme .payment-badge-unused {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* Action Buttons */
.btn-action {
    background: #0066cc;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.btn-action:hover {
    background: #0052a3;
}

/* Modal/Popup Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.3rem;
}

.modal-content p {
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
}

.modal-btn-yes {
    background: #28a745;
    color: #fff;
}

.modal-btn-yes:hover {
    background: #218838;
}

.modal-btn-no {
    background: #6c757d;
    color: #fff;
}

.modal-btn-no:hover {
    background: #5a6268;
}

/* Restore Greetings Modal Styles */
.restore-greetings-modal {
    max-width: 480px;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header-restore {
    padding: 1.5rem 2rem 1rem;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border-radius: 8px 8px 0 0;
    margin: -2rem -2rem 0 -2rem;
}

.modal-header-restore h3 {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
}

.modal-body-restore {
    padding: 1.5rem 2rem;
    text-align: center;
}

.modal-message-main {
    font-size: 1.1rem;
    color: #333;
    margin: 0 0 1rem 0;
    font-weight: 500;
    line-height: 1.6;
}

.modal-message-sub {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.restore-greetings-modal .modal-buttons {
    padding: 1rem 2rem 1.5rem;
    gap: 1rem;
    justify-content: center;
}

.restore-greetings-modal .modal-btn {
    min-width: 120px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.restore-greetings-modal .modal-btn-yes {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: #fff;
    border: none;
}

.restore-greetings-modal .modal-btn-yes:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.restore-greetings-modal .modal-btn-yes:active {
    transform: translateY(0);
}

.restore-greetings-modal .modal-btn-no {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #fff;
    border: none;
}

.restore-greetings-modal .modal-btn-no:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.restore-greetings-modal .modal-btn-no:active {
    transform: translateY(0);
}

/* Mobile Responsive for Restore Modal */
@media (max-width: 768px) {
    .restore-greetings-modal {
        max-width: 90%;
        margin: 1rem;
    }
    
    .modal-header-restore {
        padding: 1.25rem 1.5rem 0.75rem;
        margin: -1rem -1rem 0 -1rem;
    }
    
    .modal-header-restore h3 {
        font-size: 1.1rem;
    }
    
    .modal-body-restore {
        padding: 1.25rem 1.5rem;
    }
    
    .modal-message-main {
        font-size: 1rem;
    }
    
    .modal-message-sub {
        font-size: 0.85rem;
    }
    
    .restore-greetings-modal .modal-buttons {
        padding: 1rem 1.5rem 1.25rem;
        flex-direction: column;
    }
    
    .restore-greetings-modal .modal-btn {
        width: 100%;
        min-width: auto;
    }
}

/* Responsive Design (PC Optimized - minimal mobile support) */
@media (max-width: 1200px) {
    .admin-content {
        padding: 1rem;
    }
    
    .users-table {
        font-size: 0.85rem;
    }
    
    .users-table th,
    .users-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-header-actions {
        width: 100%;
        justify-content: space-between;
        margin-top: 1rem;
    }
    
    .admin-info {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-form select,
    .btn-filter,
    .btn-export {
        width: 100%;
    }
    
    .users-table {
        font-size: 0.8rem;
        min-width: 1000px;
    }
    
    .admin-content {
        overflow-x: scroll;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Status Indicators */
.status-paid {
    color: #28a745;
    font-weight: 600;
}

.status-unpaid {
    color: #dc3545;
    font-weight: 600;
}

.status-open {
    color: #0066cc;
    font-weight: 600;
}

.status-closed {
    color: #6c757d;
    font-weight: 600;
}

/* ============================================
   Dark Theme Styles
   ============================================ */

.dark-theme {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border-color: #404040;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

.dark-theme body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.dark-theme .admin-container {
    background: var(--bg-primary);
}

.dark-theme .admin-header {
    background: var(--bg-secondary);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.dark-theme .admin-header h1 {
    color: var(--text-primary);
}

.dark-theme .admin-info p {
    color: var(--text-secondary);
}

.dark-theme .admin-info p strong {
    color: var(--text-primary);
}

.dark-theme .admin-theme-toggle {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.dark-theme .admin-theme-toggle:hover {
    background: #4a4a4a;
    color: #0066cc;
    border-color: #0066cc;
}

.dark-theme .admin-user-icon {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.dark-theme .admin-user-icon:hover {
    background: #4a4a4a;
    color: #0066cc;
    border-color: #0066cc;
}

.dark-theme .admin-user-dropdown {
    background: var(--bg-secondary);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.dark-theme .admin-dropdown-item {
    color: var(--text-primary);
    border-bottom-color: var(--border-color);
}

.dark-theme .admin-dropdown-item:hover {
    background: var(--bg-tertiary);
    color: #0066cc;
}

.dark-theme .admin-dropdown-logout {
    border-top-color: var(--border-color);
}

.dark-theme .admin-dropdown-logout:hover {
    background: #4a1a1a;
    color: #ff6b6b;
}

.dark-theme .admin-content {
    background: var(--bg-primary);
}

.dark-theme .filters {
    background: var(--bg-secondary);
}

.dark-theme .filter-form select,
.dark-theme .filter-form input {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.dark-theme .bulk-actions {
    background: var(--bg-secondary);
}

.dark-theme .users-table {
    background: var(--bg-secondary);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.dark-theme .users-table thead {
    background: #004080;
}

.dark-theme .users-table tbody tr.even-row {
    background: var(--bg-secondary);
}

.dark-theme .users-table tbody tr.odd-row {
    background: var(--bg-tertiary);
}

.dark-theme .users-table tbody tr.even-row:hover {
    background: #3a3a3a;
}

.dark-theme .users-table tbody tr.odd-row:hover {
    background: #454545;
}

.dark-theme .users-table td {
    color: var(--text-primary);
    border-bottom-color: var(--border-color);
}

.dark-theme .users-table th {
    color: #fff;
}

.dark-theme .user-type-badge-text {
    color: var(--text-primary);
}

.dark-theme .user-type-new {
    color: #72acf8;
}

.dark-theme .user-type-existing {
    color: #ccc;
}

.dark-theme .user-type-free {
    color: #ffb84d;
}

.dark-theme .btn-export {
    background: #28a745;
}

.dark-theme .btn-export:hover {
    background: #218838;
}

.dark-theme .users-table td .admin-notes-input {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.dark-theme .users-table td .admin-notes-input:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0,102,204,0.2);
}

.dark-theme .user-type-badge-text {
    color: var(--text-primary);
}

.dark-theme .user-type-new {
    color: #72acf8;
}

.dark-theme .user-type-existing {
    color: #ccc;
}

.dark-theme .user-type-free {
    color: #ffb84d;
}

.dark-theme .payment-badge-unused {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* Email link hover styling */
.users-table td a[href^="mailto:"]:hover {
    text-decoration: underline;
}

.dark-theme .users-table td a[href^="mailto:"] {
    color: #72acf8;
}

.dark-theme .users-table td a[href^="mailto:"]:hover {
    text-decoration: underline;
}

