/**
 * Page-specific Styles
 * Consolidated from all view files to eliminate duplication
 * @version 1.0
 */

/* ============================================
   AUTH PAGES (Login, Register)
   ============================================ */
.auth-body {
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--tiktok-cyan) 0%, transparent 70%);
    opacity: 0.05;
    animation: rotate 20s linear infinite;
}

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

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

.auth-card {
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.auth-header {
    background: var(--gradient-primary);
    color: white;
    padding: 40px;
    text-align: center;
}

.auth-header h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
}

.auth-body-content {
    padding: 30px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ============================================
   MODAL LAYOUT
   ============================================ */
.modal-body-transparent { 
    background: transparent; 
    color: #ffffff;
    padding: 0;
    margin: 0;
}

.container-modal { 
    padding: 16px; 
}

/* Modal form styles */
.edit-form {
    padding: 30px;
}

.edit-form .form-label {
    color: #00f2ea;
    font-weight: 600;
    margin-bottom: 8px;
}

.edit-form .form-control, 
.edit-form .form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 12px;
    border-radius: 8px;
}

.edit-form .form-control:focus, 
.edit-form .form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #00f2ea;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(0, 242, 234, 0.25);
}

.edit-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.edit-form .form-select option {
    background: #1a1a2e;
    color: #ffffff;
}

.product-info-badge {
    background: rgba(0, 242, 234, 0.1);
    border: 1px solid rgba(0, 242, 234, 0.3);
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.product-info-badge i {
    color: #00f2ea;
}

/* OAuth Processing */
.loading-box {
    background: white;
    border-radius: 15px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 500px;
}

.progress-steps {
    margin-top: 30px;
    text-align: left;
}

.step {
    padding: 10px;
    margin: 5px 0;
    border-left: 3px solid #ddd;
    opacity: 0.5;
}

.step.active {
    border-left-color: #667eea;
    opacity: 1;
    font-weight: bold;
}

.step.done {
    border-left-color: #28a745;
    opacity: 0.7;
}

.step.done i {
    color: #28a745;
}

/* ============================================
   DASHBOARD
   ============================================ */
.stat-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    margin: 8px 0;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   ORDERS TABLE
   ============================================ */
/* Orders Grid Layout */
.orders-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.order-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--bg-tertiary);
    display: flex;
    flex-direction: row;
    cursor: pointer;
}

.order-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--tiktok-cyan);
}

/* Selected order card - light red background */
.order-card.selected {
    background: rgba(254, 44, 85, 0.15) !important;
    border-color: #FE2C55 !important;
    box-shadow: 0 0 0 2px rgba(254,44,85,0.3), var(--shadow-lg) !important;
}

/* Multi-quantity warning */
.order-card.multi-qty {
    border: 2px solid #FE2C55 !important;
    box-shadow: 0 0 0 2px rgba(254,44,85,0.25), var(--shadow-md);
    position: relative;
}

.order-card.multi-qty:before {
    content: 'MULTI';
    position: absolute;
    top: 6px;
    right: 8px;
    background: linear-gradient(135deg,#FE2C55 0%, #E91E63 100%);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 4px 6px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(254,44,85,0.4);
    z-index: 5;
}

.order-header {
    padding: 20px;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-width: 200px;
    max-width: 200px;
    gap: 8px;
}

.order-id {
    font-size: 11px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    background: rgba(255,255,255,0.2);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    width: 100%;
    text-align: center;
    border: 2px solid var(--tiktok-pink);
    box-shadow: 0 0 12px rgba(255,0,80,0.3);
}

.order-status {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.3);
}

/* TikTok Status Colors */
.status-UNPAID { 
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%); 
    color: #000000; 
    box-shadow: 0 2px 12px rgba(255,215,0,0.6);
}
.status-AWAITING_SHIPMENT { 
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%); 
    color: #000000;
    box-shadow: 0 2px 12px rgba(255,215,0,0.6);
}
.status-IN_TRANSIT { 
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%); 
    color: #FFFFFF;
    box-shadow: 0 2px 12px rgba(33,150,243,0.6);
}
.status-DELIVERED { 
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%); 
    color: #FFFFFF;
    box-shadow: 0 2px 12px rgba(156,39,176,0.6);
}
.status-COMPLETED { 
    background: linear-gradient(135deg, #00F2EA 0%, #00D9D1 100%); 
    color: #000000;
    box-shadow: 0 2px 12px rgba(0,242,234,0.6);
}
.status-ON_HOLD {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: #FFFFFF;
    box-shadow: 0 2px 12px rgba(255,152,0,0.6);
}
.status-CANCELLED { 
    background: linear-gradient(135deg, #FE2C55 0%, #E91E63 100%); 
    color: #FFFFFF;
    box-shadow: 0 2px 12px rgba(254,44,85,0.6);
}
.status-SHIPPED {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: #FFFFFF;
    box-shadow: 0 2px 12px rgba(33,150,243,0.6);
}
.status-READY_TO_SHIP {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    color: #FFFFFF;
    box-shadow: 0 2px 12px rgba(156,39,176,0.6);
}
.status-PICKED_UP {
    background: linear-gradient(135deg, #673AB7 0%, #512DA8 100%);
    color: #FFFFFF;
    box-shadow: 0 2px 12px rgba(103,58,183,0.6);
}
.status-OUT_FOR_DELIVERY {
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
    color: #FFFFFF;
    box-shadow: 0 2px 12px rgba(0,188,212,0.6);
}
.status-FAILED_DELIVERY {
    background: linear-gradient(135deg, #F44336 0%, #D32F2F 100%);
    color: #FFFFFF;
    box-shadow: 0 2px 12px rgba(244,67,54,0.6);
}

/* Custom Status Badges */
.status-TO_SHIP { 
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%); 
    color: #000000;
    box-shadow: 0 2px 12px rgba(255,215,0,0.6);
}
.status-AMZ_ORDER { 
    background: linear-gradient(135deg, #FF9900 0%, #FF6B00 100%); 
    color: #FFFFFF;
    box-shadow: 0 2px 12px rgba(255,153,0,0.6);
}
.status-CANCEL_REQUEST {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: #FFFFFF;
    box-shadow: 0 2px 12px rgba(255,152,0,0.6);
}
.status-HOLD {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    color: #FFFFFF;
    box-shadow: 0 2px 12px rgba(156,39,176,0.6);
}

.order-body {
    padding: 20px;
    flex: 1;
    display: grid;
    grid-template-columns: 300px 1fr 220px 220px;
    gap: 20px;
    align-items: center;
}

.order-info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.icon-cyan { background: var(--gradient-cyan); color: white; }
.icon-pink { background: var(--gradient-pink); color: white; }
.icon-purple { background: var(--gradient-purple); color: white; }
.icon-green { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); color: white; }

.info-content {
    flex: 1;
    min-width: 0;
}

.info-label {
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.info-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.4;
}

.order-amount {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.order-footer {
    padding: 20px;
    background: var(--bg-tertiary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-width: 140px;
}

.btn-view {
    width: 100%;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-base);
    background: var(--gradient-primary);
    color: white;
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-cyan);
}

/* Search & Filter */
.search-box {
    position: relative;
}

.search-box input {
    padding-left: 45px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--bg-tertiary);
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.search-box input:focus {
    border-color: var(--tiktok-cyan);
    box-shadow: 0 0 0 3px rgba(0, 242, 234, 0.1);
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
}

.filter-badge {
    padding: 10px 16px;
    border-radius: 8px;
    border: 1.5px solid transparent;
    color: white;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    letter-spacing: 0.3px;
    position: relative;
    background: rgba(30,30,50,0.6);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.filter-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.3);
}

.filter-badge.active {
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    background: rgba(30,30,50,0.8);
}

.sync-btn {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    color: white;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-base);
}

.sync-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-cyan);
}

.sync-btn i {
    transition: transform 0.6s;
}

.sync-btn.syncing i {
    animation: spin 1s linear infinite;
}

/* Responsive Orders */
@media (max-width: 1200px) {
    .order-body {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .order-card {
        flex-direction: column;
    }
    
    .order-header {
        flex-direction: row;
        justify-content: space-between;
        min-width: unset;
        max-width: unset;
        width: 100%;
    }
    
    .order-body {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .order-footer {
        flex-direction: row;
        min-width: unset;
        width: 100%;
    }
}

/* ============================================
.order-table {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.order-table th {
    background: var(--bg-tertiary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 16px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.order-table td {
    padding: 14px 16px;
    vertical-align: middle;
}

.order-table tbody tr {
    border-bottom: 1px solid var(--bg-tertiary);
    transition: background 0.2s ease;
}

.order-table tbody tr:hover {
    background: rgba(0, 242, 234, 0.03);
}

.order-id {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--tiktok-cyan);
}

.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

/* ============================================
   PRODUCT GRID
   ============================================ */
/* Product Detail Page */
.product-detail-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-images {
    position: sticky;
    top: 20px;
}

.main-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.image-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail:hover {
    border-color: #FF0050;
}

.price-section {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin: 20px 0;
}

.current-price {
    font-size: 32px;
    font-weight: 700;
    color: #B12704;
}

.info-section {
    margin: 25px 0;
    padding: 20px;
    background: #f7f8fa;
    border-radius: 8px;
}

/* Product Cards (Grid) */
.product-card {
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    border-color: var(--tiktok-cyan);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-tertiary);
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 12px 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--tiktok-cyan);
}

.product-stock {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ============================================
   SETTINGS PAGES
   ============================================ */
.config-form-wrapper {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h2 {
    color: #333;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
}

.form-control {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-suffix {
    font-weight: 600;
    color: #666;
}

.help-text {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.help-text a {
    color: #0066cc;
    text-decoration: none;
}

.help-text a:hover {
    text-decoration: underline;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #0066cc;
    color: white;
}

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

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.config-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

.config-info h3 {
    margin-top: 0;
    color: #333;
}

.config-info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.config-info li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.config-info pre {
    background: #2d2d2d;
    color: #f8f8f8;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    margin-top: 10px;
}

.config-info code {
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.settings-section {
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.settings-header {
    border-bottom: 2px solid var(--bg-tertiary);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.settings-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.form-group-settings {
    margin-bottom: 20px;
}

.form-group-settings label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

/* ============================================
   CRON JOBS / LOGS
   ============================================ */
/* Scrollbar styles */
.bg-darker {
    background-color: #0d1117 !important;
}

.list-group-item-action:hover {
    background-color: #1c2128 !important;
}

.list-group-item-action.active {
    background-color: #238636 !important;
    border-color: #238636 !important;
}

#logContent::-webkit-scrollbar,
#realtimeLogContent::-webkit-scrollbar {
    width: 10px;
}

#logContent::-webkit-scrollbar-track,
#realtimeLogContent::-webkit-scrollbar-track {
    background: #0d1117;
}

#logContent::-webkit-scrollbar-thumb,
#realtimeLogContent::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 5px;
}

#logContent::-webkit-scrollbar-thumb:hover,
#realtimeLogContent::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

.cron-sidebar {
    width: 300px;
    overflow-y: auto;
    background: #1e1e1e;
    border-right: 1px solid #333;
    height: calc(100vh - 200px);
}

.cron-job-item {
    padding: 12px 16px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: background 0.2s;
}

.cron-job-item:hover {
    background: #2a2a2a;
}

.cron-job-item.active {
    background: #0d6efd;
    color: white;
}

.log-viewer {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    min-height: 400px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    background: #0d1117;
    color: #c9d1d9;
    padding: 16px;
    border-radius: 8px;
}

.log-line {
    padding: 2px 0;
    line-height: 1.6;
}

.log-line-error {
    color: #ff6b6b;
    font-weight: 600;
}

.log-line-warning {
    color: #ffd93d;
}

.log-line-success {
    color: #6bcf7f;
}

.log-line-info {
    color: #4facfe;
}

/* ============================================
   WEBHOOKS
   ============================================ */
.webhook-log {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: var(--bg-secondary);
    border-left: 4px solid;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.webhook-log:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,242,234,0.2);
}

.webhook-log.success {
    border-left-color: #00f2ea;
}

.webhook-log.error, 
.webhook-log.failed {
    border-left-color: #ff5252;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.log-time {
    color: var(--text-muted);
    font-size: 13px;
    white-space: nowrap;
}

.log-payload {
    background: #1a1a2e;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    max-height: 300px;
    overflow-y: auto;
    color: #00f2ea;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 5px;
}

.webhook-card {
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.webhook-card:hover {
    border-color: var(--tiktok-cyan);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.webhook-status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.webhook-status-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.webhook-status-error {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
}

.webhook-payload {
    background: #1e1e1e;
    color: #c9d1d9;
    padding: 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    max-height: 300px;
    overflow-y: auto;
}

/* ============================================
   USER MANAGEMENT
   ============================================ */
.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.user-info {
    flex: 1;
    margin-left: 12px;
}

.user-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.user-email {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.permission-badge {
    padding: 4px 10px;
    margin: 2px;
    border-radius: 12px;
    font-size: 11px;
    display: inline-block;
}

/* ============================================
   FILTERS & SEARCH
   ============================================ */
.filter-bar {
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 20px;
}

.search-input {
    background: var(--bg-tertiary);
    border: 1px solid var(--bg-tertiary);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.search-input:focus {
    background: var(--bg-secondary);
    border-color: var(--tiktok-cyan);
    box-shadow: 0 0 0 3px rgba(0, 242, 234, 0.1);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid var(--bg-tertiary);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--tiktok-cyan);
}

.pagination-btn.active {
    background: var(--tiktok-cyan);
    border-color: var(--tiktok-cyan);
    color: #000;
    font-weight: 700;
}

/* ============================================
   LOADING STATES
   ============================================ */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 242, 234, 0.3);
    border-radius: 50%;
    border-top-color: var(--tiktok-cyan);
    animation: spin 0.8s linear infinite;
}

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

.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   EMPTY STATES
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 64px;
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-state-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .auth-container {
        padding: 20px;
    }
    
    .stat-card {
        margin-bottom: 16px;
    }
    
    .cron-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #333;
    }
    
    .product-card {
        margin-bottom: 16px;
    }
    
    .order-table {
        font-size: 12px;
    }
    
    .filter-bar {
        padding: 12px;
    }
}
