/**
 * YesAllofUs Admin Styles
 * Combined CSS for admin pages
 */

/* ==========================================================================
   ADMIN DASHBOARD STYLES
   ========================================================================== */

.dltpays-admin {
    max-width: 1200px;
}

/* Welcome Card - Best in Class */
.dltpays-welcome-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #3b82f6 100%);
    border-radius: 16px;
    margin: 20px 0;
    padding: 48px 24px;
    position: relative;
    overflow: hidden;
}
.dltpays-welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    pointer-events: none;
}
.welcome-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}
.welcome-icon {
    margin-bottom: 20px;
}
.welcome-icon img {
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}
.dltpays-welcome-card h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}
.welcome-tagline {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    margin: 0 0 28px 0;
}
.welcome-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.15);
}
.feature-icon {
    font-size: 16px;
}
.feature-text {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}
.welcome-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
    transition: all 0.2s ease;
    white-space: nowrap;
}
.welcome-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(34, 197, 94, 0.5);
    color: #fff !important;
}
.welcome-cta svg {
    transition: transform 0.2s ease;
}
.welcome-cta:hover svg {
    transform: translateX(4px);
}
.welcome-subtext {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    margin: 20px 0 0 0;
}

@media (max-width: 600px) {
    .dltpays-welcome-card {
        padding: 32px 16px;
        margin: 10px 0;
    }
    .dltpays-welcome-card h2 {
        font-size: 24px;
    }
    .welcome-tagline {
        font-size: 14px;
    }
    .welcome-features {
        gap: 12px;
    }
    .feature {
        padding: 8px 12px;
    }
    .feature-text {
        font-size: 12px;
    }
    .welcome-cta {
        width: auto;
        justify-content: center;
        padding: 14px 24px;
        font-size: 14px;
    }
}

/* Connection Bar */
.dltpays-connection-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
}
.dltpays-connection-bar.loading {
    background: #f0f0f0;
    color: #666;
}
.dltpays-connection-bar.connected {
    background: #d4edda;
    color: #155724;
}
.dltpays-connection-bar.error {
    background: #f8d7da;
    color: #721c24;
}
.dltpays-connection-bar.warning {
    background: #fff3cd;
    color: #856404;
}
.dltpays-connection-bar .status-icon {
    font-size: 18px;
}

/* Stats Grid */
.dltpays-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.stat-box {
    background: #fff;
    padding: 30px 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.stat-box.highlight {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: white;
}
.stat-box.highlight .stat-label {
    color: rgba(255,255,255,0.8);
}
.stat-icon {
    display: block;
    font-size: 28px;
    margin-bottom: 15px;
}
.stat-number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #1e3a5f;
    margin-bottom: 8px;
}
.stat-box.highlight .stat-number {
    color: white;
}
.stat-label {
    color: #666;
    font-size: 14px;
}

@media (max-width: 600px) {
    .dltpays-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .stat-box {
        padding: 20px 16px;
    }
    .stat-icon {
        font-size: 24px;
        margin-bottom: 10px;
    }
    .stat-number {
        font-size: 24px;
    }
    .stat-label {
        font-size: 12px;
    }
}

/* Two Column Layout */
.dltpays-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}
@media (max-width: 900px) {
    .dltpays-two-column {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.dltpays-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.dltpays-card h2 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #1e3a5f;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 30px;
    color: #666;
}
.empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
    opacity: 0.5;
}
.empty-state .hint {
    font-size: 13px;
    color: #999;
}

/* Status Badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}
.status-paid { background: #d4edda; color: #155724; }
.status-pending { background: #fff3cd; color: #856404; }
.status-queued { background: #e7f3ff; color: #0066cc; }
.status-failed { background: #f8d7da; color: #721c24; }
.status-expired { background: #e9ecef; color: #495057; }
.status-active { background: #d4edda; color: #155724; }
.status-inactive { background: #e2e3e5; color: #383d41; }
.status-suspended { background: #f8d7da; color: #721c24; }

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 30px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #1e3a5f;
    transition: background 0.2s;
}
.action-button:hover {
    background: #e9ecef;
}
.action-icon {
    font-size: 24px;
    margin-bottom: 8px;
}
.action-label {
    font-weight: 500;
    font-size: 14px;
}

@media (max-width: 600px) {
    .quick-actions {
        gap: 10px;
    }
    .action-button {
        padding: 16px 20px;
        flex: 1;
        min-width: calc(50% - 10px);
    }
    .action-icon {
        font-size: 20px;
    }
    .action-label {
        font-size: 12px;
    }
}

/* Title Count */
.title-count {
    font-weight: normal;
    color: #666;
}

/* ==========================================================================
   ADMIN SETTINGS - CONDITIONAL STYLES
   ========================================================================== */

/* Hide step 3 for Xaman wallets */
.dltpays-admin.wallet-xaman #onboard-step-3,
.dltpays-admin.wallet-xaman #step-ind-3 {
    display: none !important;
}