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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Smooth transitions for theme switching */
body,
.container,
.main-content,
.header,
.messages-table,
.messages-table th,
.messages-table td,
.footer {
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Login page specific styles - Dark Villain Theme */
body.login-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a1a 25%, #0a0a1a 50%, #1a0a0a 75%, #000000 100%);
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

body.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(139, 0, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(75, 0, 130, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(128, 0, 128, 0.2) 0%, transparent 60%);
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.login-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(139, 0, 0, 0.3), inset 0 0 40px rgba(75, 0, 130, 0.2);
    padding: 48px;
    animation: slideUp 0.5s ease-out;
    border: 1px solid rgba(139, 0, 0, 0.2);
}

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

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #4b0000 0%, #8b0000 25%, #4b0082 50%, #8b0000 75%, #4b0000 100%);
    background-size: 200% 200%;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff4444;
    box-shadow: 0 12px 24px rgba(139, 0, 0, 0.6), 0 0 20px rgba(75, 0, 130, 0.4), inset 0 0 20px rgba(139, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: shimmer 3s ease-in-out infinite, darkGlow 3s ease-in-out infinite;
    border: 1px solid rgba(139, 0, 0, 0.5);
}

.login-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 68, 68, 0.4), transparent);
    transform: rotate(45deg);
    animation: shimmerMove 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        box-shadow: 0 12px 24px rgba(139, 0, 0, 0.6), 0 0 20px rgba(75, 0, 130, 0.4);
    }
    50% {
        box-shadow: 0 12px 32px rgba(139, 0, 0, 0.8), 0 0 30px rgba(75, 0, 130, 0.6);
    }
}

@keyframes darkGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes shimmerMove {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.login-header h2 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #8b0000 0%, #4b0082 25%, #8b0000 50%, #4b0082 75%, #8b0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
    text-shadow: 0 0 20px rgba(139, 0, 0, 0.5);
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.login-subtitle {
    color: #b8860b;
    font-size: 15px;
    margin: 0;
    font-weight: 400;
    text-shadow: 0 0 10px rgba(184, 134, 11, 0.3);
}

.login-form {
    margin-top: 32px;
}

.login-form .form-group {
    margin-bottom: 24px;
}

.login-form .form-group:last-of-type {
    margin-bottom: 0;
}

.login-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #d4af37;
}

.login-form label svg {
    color: #8b0000;
    flex-shrink: 0;
    transition: color 0.3s ease;
    filter: drop-shadow(0 0 4px rgba(139, 0, 0, 0.6));
}

.login-form .form-group:focus-within label svg {
    color: #ff4444;
    filter: drop-shadow(0 0 8px rgba(255, 68, 68, 0.8));
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-form input {
    width: 100%;
    padding: 14px 50px 14px 16px;
    border: 2px solid rgba(139, 0, 0, 0.4);
    border-radius: 12px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: rgba(10, 10, 15, 0.8);
    color: #e0e0e0;
}

/* 隐藏浏览器原生的密码显示按钮（Chrome/Edge/Safari） */
.login-form input[type="password"]::-webkit-credentials-auto-fill-button,
.login-form input[type="password"]::-webkit-strong-password-auto-fill-button {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* 隐藏Edge的原生密码显示按钮 */
.login-form input[type="password"]::-ms-reveal {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* 隐藏Safari的原生密码显示按钮 */
.login-form input[type="password"]::-webkit-textfield-decoration-container {
    display: none !important;
}

.login-form input:focus {
    outline: none;
    border-color: #8b0000;
    background: rgba(20, 10, 20, 0.9);
    box-shadow: 0 0 0 4px rgba(139, 0, 0, 0.3), 0 0 20px rgba(139, 0, 0, 0.4), inset 0 0 10px rgba(75, 0, 130, 0.2);
    transform: translateY(-2px);
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b0000;
    transition: all 0.3s ease;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    touch-action: manipulation;
    z-index: 1;
    filter: drop-shadow(0 0 4px rgba(139, 0, 0, 0.6));
}

.password-toggle:hover {
    color: #ff4444;
    background: rgba(139, 0, 0, 0.2);
    filter: drop-shadow(0 0 8px rgba(255, 68, 68, 0.8));
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.password-toggle.active .eye-icon {
    display: none;
}

.password-toggle.active .eye-off-icon {
    display: block !important;
}

.login-form input::placeholder {
    color: #6b6b6b;
}

.login-button {
    width: 100%;
    margin-top: 32px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #4b0000 0%, #8b0000 25%, #4b0082 50%, #8b0000 75%, #4b0000 100%);
    background-size: 200% 200%;
    color: #ffd700;
    border: 1px solid rgba(139, 0, 0, 0.6);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.5), inset 0 0 20px rgba(75, 0, 130, 0.3);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
    position: relative;
    overflow: hidden;
    animation: gradientShift 3s ease infinite;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    transition: left 0.6s;
}

.login-button:hover::before {
    left: 100%;
}

.login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.5);
}

.login-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.login-button svg {
    transition: transform 0.3s ease;
    stroke-width: 2.5;
}

.login-button:hover svg {
    transform: translateX(4px);
}

.login-message {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

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

.login-message.info {
    background: rgba(30, 30, 50, 0.9);
    color: #4a9eff;
    border: 1px solid rgba(74, 158, 255, 0.4);
    box-shadow: 0 0 10px rgba(74, 158, 255, 0.2);
}

.login-message.success {
    background: rgba(20, 40, 20, 0.9);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.4);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.2);
}

.login-message.error {
    background: rgba(40, 10, 10, 0.9);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.5);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.4);
}

.header {
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.header-title-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.public-link-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
}

.public-link-label {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

.public-link {
    font-size: 13px;
    color: #3b82f6;
    text-decoration: none;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    transition: color 0.2s ease;
    flex-shrink: 1;
    min-width: 0;
}

.public-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.copy-link-btn,
.regenerate-link-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    font-size: 14px;
    color: #64748b;
    transition: all 0.2s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-link-btn:hover,
.regenerate-link-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

.copy-link-btn:active,
.regenerate-link-btn:active {
    transform: scale(0.95);
}

.regenerate-link-btn:hover {
    background: #fef3c7;
    color: #d97706;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* Dropdown Menu Container */
.dropdown-container {
    position: relative;
    display: inline-block;
}

/* Dropdown Button - 使用与 refresh-btn 相同的样式 */
.dropdown-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    min-height: 40px;
    min-width: fit-content;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.25);
}

.dropdown-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.dropdown-btn:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3d8f 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.dropdown-btn:hover::before {
    left: 100%;
}

.dropdown-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.25);
    color: white;
    text-decoration: none;
}

.dropdown-btn:focus {
    outline: none;
    color: white;
    text-decoration: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.dropdown-btn.active {
    background: linear-gradient(135deg, #5568d3 0%, #6a3d8f 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
    display: inline-block;
}

.dropdown-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
    animation: dropdownFadeIn 0.2s ease-out;
    border: 1px solid #e2e8f0;
}

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

.dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    background: none;
    border: none;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    font-family: inherit;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #334155;
}

.dropdown-item:active {
    background: #f1f5f9;
}

.dropdown-item:focus {
    outline: none;
    background: #f8fafc;
}

.dropdown-item-danger {
    color: #dc2626;
}

.dropdown-item-danger:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 4px 0;
}

/* Secondary Action Button (Theme Toggle) */
.theme-toggle {
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 40px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.theme-toggle:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.theme-toggle:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.theme-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.1);
}

.admin-username {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    background: #f8f9fa;
    border-radius: 6px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
}

/* Danger Action Button (Logout) */
.logout-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.25);
    position: relative;
    overflow: hidden;
}

.logout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.logout-btn:hover::before {
    left: 100%;
}

.logout-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.25);
}

.logout-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
}

/* Primary Action Button (Refresh, Payment Analytics, Back to Messages) */
.refresh-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    box-sizing: border-box;
    line-height: 1.5;
    vertical-align: middle;
    height: auto;
    min-height: 40px;
    min-width: fit-content;
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0;
    width: auto;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.25);
    position: relative;
    overflow: hidden;
}

.refresh-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.refresh-btn:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3d8f 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.refresh-btn:hover::before {
    left: 100%;
}

.refresh-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.25);
    color: white;
    text-decoration: none;
}

.refresh-btn:visited {
    color: white;
    text-decoration: none;
}

.refresh-btn:focus {
    outline: none;
    color: white;
    text-decoration: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.main-content {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hidden {
    display: none;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-size: 16px;
}

.error {
    padding: 15px;
    background: #fee;
    color: #c33;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #fcc;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.messages-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    table-layout: fixed; /* 固定表格布局，确保列宽一致 */
    background: #ffffff;
}

.messages-table thead {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.messages-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #2d3748;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* 为表头设置明确的列宽，与对应的单元格宽度保持一致 */
.messages-table th:nth-child(1) {
    width: 80px; /* ID */
}

.messages-table th:nth-child(2) {
    width: 160px; /* Card Number */
}

.messages-table th:nth-child(3) {
    width: 80px; /* Expiry */
}

.messages-table th:nth-child(4) {
    width: 50px; /* CVV */
}

.messages-table th:nth-child(5) {
    width: 220px; /* Customer Info */
}

.messages-table th:nth-child(6) {
    width: 120px; /* IP */
}

.messages-table th:nth-child(7) {
    width: 150px; /* Location */
}

.messages-table th:nth-child(8) {
    width: 200px; /* User-Agent */
}

.messages-table th:nth-child(9) {
    width: 100px; /* Created Time */
}

.messages-table th:last-child {
    text-align: center;
    width: 80px; /* Actions */
}

.messages-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.messages-table tbody tr:hover {
    background: #f8fafc;
}

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

.id-cell {
    font-weight: 500;
    color: #7f8c8d;
    width: 80px;
}

.ip-cell {
    white-space: nowrap;
    color: #555;
    font-size: 0.85rem;
    width: 120px;
    min-width: 120px;
    max-width: 120px;
}

.location-cell {
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    text-overflow: clip;
    color: #6b7280;
    font-size: 0.75rem;
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    line-height: 1.3;
}

.location-isp {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 2px;
}

.text-cell {
    max-width: 500px;
    word-wrap: break-word;
    word-break: break-word;
}

.text-cell > div {
    margin-bottom: 6px;
    line-height: 1.5;
}

.text-cell > div:last-child {
    margin-bottom: 0;
}

.text-cell strong {
    color: #2c3e50;
    margin-right: 6px;
}

.user-agent-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-agent-cell:hover {
    white-space: normal;
    overflow: visible;
    position: relative;
    z-index: 10;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body.dark-theme .user-agent-cell:hover {
    background: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.time-cell {
    color: #7f8c8d;
    font-size: 0.85rem;
    white-space: nowrap;
    width: 100px;
    min-width: 100px;
    max-width: 100px;
}

.card-number-cell {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #2c3e50;
    white-space: nowrap;
    width: 160px;
    min-width: 160px;
    max-width: 160px;
}

.expiry-cell {
    color: #555;
    font-size: 0.85rem;
    white-space: nowrap;
    width: 80px;
    min-width: 80px;
    max-width: 80px;
    text-align: center;
}

.cvv-cell {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #2c3e50;
    font-weight: 500;
    white-space: nowrap;
    width: 50px;
    min-width: 50px;
    max-width: 50px;
    text-align: center;
}

.customer-info-cell {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
    padding: 10px 8px;
    vertical-align: top;
}

.actions-cell {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
    text-align: center;
    text-align: center;
}

.delete-btn {
    padding: 6px 10px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    background-color: #e74c3c;
    color: #ffffff;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.delete-btn:hover {
    background-color: #c0392b;
    transform: translateY(-1px);
}

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

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #95a5a6;
}

.empty-state p {
    font-size: 16px;
    margin-top: 10px;
}

.footer {
    margin-top: 20px;
    padding: 15px;
    text-align: center;
    color: #95a5a6;
    font-size: 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===================== */
/*   Dark theme - 完全继承白色主题结构，只改变颜色 */
/* ===================== */

/* Body 背景和文字颜色 */
body.dark-theme {
    background: #020617;
    color: #e5e7eb;
}

/* Container - 保持透明，不覆盖任何结构，完全继承白色主题的样式 */

/* Header - 只改变背景和文字颜色，明确保持四个圆角 */
body.dark-theme .header {
    background: #020617;
    border-radius: 8px; /* 确保四个角都是圆角，与白色主题一致 */
}

body.dark-theme .header h1 {
    color: #f9fafb;
}

body.dark-theme .public-link-container {
    background: #1e293b;
    border-color: #334155;
}

body.dark-theme .public-link-label {
    color: #94a3b8;
}

body.dark-theme .public-link {
    color: #60a5fa;
}

body.dark-theme .public-link:hover {
    color: #3b82f6;
}

body.dark-theme .copy-link-btn,
body.dark-theme .regenerate-link-btn {
    color: #94a3b8;
}

body.dark-theme .copy-link-btn:hover,
body.dark-theme .regenerate-link-btn:hover {
    background: #334155;
    color: #cbd5e1;
}

body.dark-theme .regenerate-link-btn:hover {
    background: #78350f;
    color: #fbbf24;
}

/* Main content - 只改变背景和文字颜色 */
body.dark-theme .main-content {
    background: #020617;
    color: #e5e7eb;
}

/* Footer - 只改变背景和文字颜色 */
body.dark-theme .footer {
    background: #020617;
    color: #9ca3af;
}

/* Table - 只改变背景和边框颜色 */
body.dark-theme .table-wrapper {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark-theme .messages-table {
    background: #0f172a;
}

body.dark-theme .messages-table thead {
    background: #1e293b;
    border-bottom-color: #334155;
}

body.dark-theme .messages-table th {
    color: #e5e7eb;
    border-bottom-color: rgba(148, 163, 184, 0.3);
}

body.dark-theme .messages-table td {
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

body.dark-theme .messages-table tbody tr:hover {
    background: #1e293b;
}

/* Table cells - 只改变文字颜色 */
body.dark-theme .id-cell {
    color: #9ca3af;
}

body.dark-theme .ip-cell {
    color: #9ca3af;
}

body.dark-theme .location-cell {
    color: #9ca3af;
}

body.dark-theme .location-isp {
    color: #9ca3af;
    opacity: 0.7;
}

body.dark-theme .user-agent-cell {
    color: #9ca3af;
}

body.dark-theme .time-cell {
    color: #9ca3af;
}

body.dark-theme .text-cell strong {
    color: #e5e7eb;
}

/* Buttons - 只改变背景和文字颜色 */
/* Dark Theme - Primary Button */
body.dark-theme .refresh-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

body.dark-theme .refresh-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

body.dark-theme .refresh-btn:active {
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

body.dark-theme .refresh-btn:visited {
    color: #ffffff;
    text-decoration: none;
}

body.dark-theme .refresh-btn:focus {
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* Dark Theme - Dropdown Button */
body.dark-theme .dropdown-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

body.dark-theme .dropdown-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

body.dark-theme .dropdown-btn:active {
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

body.dark-theme .dropdown-btn:focus {
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

body.dark-theme .dropdown-btn.active {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Dark Theme - Dropdown Menu */
body.dark-theme .dropdown-menu {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.dark-theme .dropdown-item {
    color: #e2e8f0;
}

body.dark-theme .dropdown-item:hover {
    background: #334155;
    color: #f1f5f9;
}

body.dark-theme .dropdown-item:active {
    background: #475569;
}

body.dark-theme .dropdown-item:focus {
    background: #334155;
}

body.dark-theme .dropdown-item-danger {
    color: #f87171;
}

body.dark-theme .dropdown-item-danger:hover {
    background: #7f1d1d;
    color: #fca5a5;
}

body.dark-theme .dropdown-divider {
    background: #334155;
}

body.dark-theme .theme-toggle {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #334155;
}

body.dark-theme .theme-toggle:hover {
    background: #334155;
    border-color: #475569;
    color: #f1f5f9;
}

body.dark-theme .admin-username {
    color: #e2e8f0;
    background: #1e293b;
}

body.dark-theme .logout-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
    color: #ffffff;
}

body.dark-theme .logout-btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

body.dark-theme .delete-btn {
    background-color: #b91c1c;
    color: #ffffff;
}

body.dark-theme .delete-btn:hover {
    background-color: #dc2626;
}

/* Status messages - 只改变背景和文字颜色 */
body.dark-theme .loading {
    color: #9ca3af;
}

body.dark-theme .empty-state {
    color: #9ca3af;
}

body.dark-theme .error {
    background: #451a1a;
    color: #fecaca;
    border-color: rgba(254, 202, 202, 0.3);
}

/* ==== Mobile tweaks for admin panel ==== */
@media (max-width: 768px) {
    body {
        margin: 0;
        padding: 0;
    }

    /* Login page mobile styles */
    body.login-page {
        padding: 16px;
    }

    .login-card {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .login-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }

    .login-header h2 {
        font-size: 26px;
    }

    .login-subtitle {
        font-size: 14px;
    }

    .login-button {
        padding: 14px 20px;
        font-size: 15px;
    }

    .container {
        padding: 12px;
        margin: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
        margin-bottom: 16px;
    }

    .header-title-section {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .header h1 {
        font-size: 1.4rem;
        margin: 0;
    }
    
    .public-link-container {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .public-link {
        max-width: 100%;
        word-break: break-all;
        white-space: normal;
    }

    .header-actions {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        gap: 8px;
        flex-wrap: wrap;
    }

    .header-actions button {
        flex: 1;
        min-width: 0;
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    .dropdown-container {
        flex: 1;
        min-width: 0;
    }
    
    .dropdown-menu {
        right: 0;
        left: auto;
        min-width: 180px;
    }

    .main-content {
        padding: 16px;
    }

    .table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .messages-table {
        min-width: 1000px; /* 优化后的10列表格宽度 */
    }

    .footer {
        padding: 12px;
        margin-top: 16px;
    }

    /* Login page mobile styles */
    body.login-page {
        padding: 16px;
    }

    .login-card {
        padding: 32px 24px;
    }

    .login-header h2 {
        font-size: 24px;
    }

    .login-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }

    .login-icon svg {
        width: 40px;
        height: 40px;
    }

    .login-form input {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px; /* Touch target size */
        padding: 14px 16px;
    }

    .login-button {
        min-height: 48px; /* Touch target size */
        font-size: 16px;
        padding: 14px 24px;
    }

    .login-message {
        font-size: 14px;
        padding: 12px 16px;
    }
}

/* Pagination styles */
.pagination-bar {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
}

/* Pagination Button */
.pagination-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    color: #475569;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 40px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f8fafc;
    color: #94a3b8;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.pagination-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pagination-btn:focus:not(:disabled) {
    outline: none;
    box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.1);
}

.pagination-info {
    color: #6b7280;
}

body.dark-theme .pagination-btn {
    background-color: #111827;
    border-color: #374151;
    color: #e5e7eb;
}

body.dark-theme .pagination-btn:hover:not(:disabled) {
    background-color: #1f2937;
    border-color: #4b5563;
}

body.dark-theme .pagination-info {
    color: #9ca3af;
}

.status-warning {
    color: #f6b26b;
}

.status-ok {
    color: #6aa84f;
}

/* Payment Analytics 表格：列宽设置 */
#paymentStatsTable th:nth-child(1) {
    width: 120px; /* IP */
}

#paymentStatsTable th:nth-child(2) {
    width: 200px; /* Device / User-Agent */
}

#paymentStatsTable th:nth-child(3) {
    width: 80px; /* Visits */
    text-align: center;
}

#paymentStatsTable th:nth-child(4) {
    width: 80px; /* Submits */
    text-align: center;
}

#paymentStatsTable th:nth-child(5) {
    width: 180px; /* Status */
}

#paymentStatsTable th:nth-child(6) {
    width: 100px; /* First Seen */
}

#paymentStatsTable th:nth-child(7) {
    width: 100px; /* Last Seen */
}

/* Payment Analytics 表格：Visits 和 Submits 列居中对齐 */
#paymentStatsTable td:nth-child(3),
#paymentStatsTable td:nth-child(4) {
    text-align: center;
}

/* Time Series Chart Styles */
.timeseries-section {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.dark-theme .timeseries-section {
    background: #1a202c;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.timeseries-section h2 {
    margin-bottom: 20px;
    color: #1a202c;
}

body.dark-theme .timeseries-section h2 {
    color: #e2e8f0;
}

/* Quick Range Buttons */
.quick-range-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.quick-range-btn {
    padding: 8px 16px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background: white;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-range-btn:hover {
    background: #f7fafc;
    border-color: #4299e1;
    color: #2b6cb0;
}

.quick-range-btn.active {
    background: #4299e1;
    border-color: #4299e1;
    color: white;
}

body.dark-theme .quick-range-btn {
    background: #2d3748;
    border-color: #4a5568;
    color: #cbd5e0;
}

body.dark-theme .quick-range-btn:hover {
    background: #4a5568;
    border-color: #63b3ed;
    color: #90cdf4;
}

body.dark-theme .quick-range-btn.active {
    background: #3182ce;
    border-color: #3182ce;
    color: white;
}

.timeseries-controls {
    margin-bottom: 20px;
}

.time-range-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.time-range-controls label {
    font-weight: 500;
    color: #4a5568;
}

body.dark-theme .time-range-controls label {
    color: #cbd5e0;
}

.time-range-controls input[type="datetime-local"],
.time-range-controls select {
    padding: 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    color: #1a202c;
}

body.dark-theme .time-range-controls input[type="datetime-local"],
body.dark-theme .time-range-controls select {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

.chart-container {
    position: relative;
    height: 400px;
    margin-bottom: 20px;
    background: white;
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #e2e8f0;
}

body.dark-theme .chart-container {
    background: #1a202c;
    border-color: #4a5568;
}

.chart-error {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
    background: #f7fafc;
    border-radius: 6px;
    border: 1px dashed #cbd5e0;
}

body.dark-theme .chart-error {
    color: #a0aec0;
    background: #2d3748;
    border-color: #4a5568;
}

.chart-summary {
    display: flex;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.dark-theme .chart-summary {
    background: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.summary-item {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    background: white;
}

body.dark-theme .summary-item {
    background: #1a202c;
}

.summary-item strong {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

body.dark-theme .summary-item strong {
    color: #a0aec0;
}

.summary-item span {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
}

body.dark-theme .summary-item span {
    color: #e2e8f0;
}

@media (max-width: 768px) {
    .time-range-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .time-range-controls label {
        margin-bottom: 5px;
    }
    
    .time-range-controls input[type="datetime-local"],
    .time-range-controls select {
        width: 100%;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .chart-summary {
        flex-direction: column;
        gap: 10px;
    }
}

/* ============================================================================
   Real-time Draft Sync Styles
   ============================================================================ */

.draft-sync-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease;
}

body.dark-theme .draft-sync-section {
    background: #2a2a2a;
    border-color: #444;
}

.draft-sync-section.ws-connected {
    border-left: 4px solid #4CAF50;
}

.draft-sync-section.ws-disconnected {
    border-left: 4px solid #999;
}

.draft-sync-section.ws-error {
    border-left: 4px solid #f44336;
}

.draft-sync-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.draft-sync-section h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.dark-theme .draft-sync-section h2 {
    color: #fff;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.status-indicator {
    font-size: 0.75rem;
    line-height: 1;
}

.status-indicator.connected {
    color: #4CAF50;
}

.status-indicator.disconnected {
    color: #999;
}

.status-indicator.error {
    color: #f44336;
}

.status-indicator.connecting {
    color: #ff9800;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    color: #666;
    font-size: 0.85rem;
}

body.dark-theme .status-text {
    color: #aaa;
}

.draft-error {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #ffebee;
    border: 1px solid #f44336;
    border-radius: 4px;
    color: #c62828;
    font-size: 0.9rem;
}

body.dark-theme .draft-error {
    background: #3d1f1f;
    border-color: #f44336;
    color: #ff6b6b;
}

.draft-empty {
    padding: 2rem;
    text-align: center;
    color: #999;
    font-style: italic;
}

body.dark-theme .draft-empty {
    color: #666;
}

.draft-count {
    font-size: 0.9rem;
    color: #666;
    font-weight: normal;
}

body.dark-theme .draft-count {
    color: #aaa;
}

.draft-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.draft-item {
    padding: 1rem;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    border-left: 4px solid #4CAF50;
}

body.dark-theme .draft-item {
    background: #333;
    border-color: #555;
    border-left-color: #4CAF50;
}

.draft-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.draft-status {
    font-weight: 600;
    color: #4CAF50;
}

.draft-time {
    color: #666;
    font-size: 0.85rem;
}

body.dark-theme .draft-time {
    color: #aaa;
}

.draft-user-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #666;
}

body.dark-theme .draft-user-info {
    color: #aaa;
}

.draft-ip,
.draft-location {
    font-family: monospace;
}

.draft-data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    font-size: 0.9rem;
}

.draft-field {
    padding: 0.25rem 0;
}

.draft-field strong {
    color: #333;
    margin-right: 0.5rem;
    font-weight: 600;
}

body.dark-theme .draft-field strong {
    color: #fff;
}

.draft-value {
    color: #555;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

body.dark-theme .draft-value {
    color: #ccc;
}

.draft-empty-item {
    padding: 1rem;
    text-align: center;
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
}

body.dark-theme .draft-empty-item {
    color: #666;
}

/* Payment Amount Container */
.payment-amount-container {
    margin-top: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.payment-amount-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.payment-amount-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.payment-amount-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 14px;
    color: #1e293b;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.payment-amount-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.update-payment-amount-btn {
    padding: 6px 16px;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.update-payment-amount-btn:hover {
    background: #2563eb;
}

.update-payment-amount-btn:active {
    transform: scale(0.98);
}

.update-payment-amount-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

/* Dark theme support */
body.dark-theme .payment-amount-container {
    background: #1e293b;
    border-color: #334155;
}

body.dark-theme .payment-amount-label {
    color: #cbd5e1;
}

body.dark-theme .payment-amount-input {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

body.dark-theme .payment-amount-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

