/* ==========================================================================
   SKYFALL V3 - DASHBOARD STYLES
   Main dashboard, billing, settings, reports, support, subscription
   ========================================================================== */

/* Dashboard Wrapper */
.dashboard-wrapper {
    background-color: var(--sf-black);
    min-height: 100vh;
}

/* Fix header logo size on dashboard pages */
body.skyfall-dashboard #mainHeader img,
body:has(.dashboard-wrapper) #mainHeader img {
    height: 2.5rem !important;
    width: auto !important;
    max-height: 2.5rem !important;
    object-fit: contain !important;
}

@media (min-width: 768px) {
    body.skyfall-dashboard #mainHeader img,
    body:has(.dashboard-wrapper) #mainHeader img {
        height: 2.5rem !important;
        max-height: 2.5rem !important;
    }
}

/* HUD Cards */
.dash-card {
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding: 1.5rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
}

.dash-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    pointer-events: none;
    z-index: 10;
    background:
        linear-gradient(to right, var(--sf-primary) 2px, transparent 2px) 0 0,
        linear-gradient(to bottom, var(--sf-primary) 2px, transparent 2px) 0 0,
        linear-gradient(to left, var(--sf-primary) 2px, transparent 2px) 100% 100%,
        linear-gradient(to top, var(--sf-primary) 2px, transparent 2px) 100% 100%;
    background-size: 15px 15px;
    background-repeat: no-repeat;
    opacity: 0.5;
}

.dash-card.highlight {
    border-color: rgba(234, 88, 12, 0.3);
    box-shadow: 0 0 30px rgba(234, 88, 12, 0.1);
}

.dash-card.highlight::after {
    opacity: 1;
}

/* Stat Box */
.stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(234, 88, 12, 0.05);
    border-color: var(--sf-primary);
}

/* List Items */
.alert-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.alert-item:last-child {
    border-bottom: none;
}

.alert-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.alert-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.alert-item.danger .alert-icon {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.alert-item.success .alert-icon {
    border-color: #22c55e;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.alert-item.warning .alert-icon {
    border-color: var(--sf-primary);
    color: var(--sf-primary);
    background: rgba(249, 115, 22, 0.1);
}

/* Actions Menu */
.action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    text-decoration: none;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--sf-primary);
    color: white;
}

.action-btn:last-child {
    margin-bottom: 0;
}

/* Dashboard Header */
.dash-header-title {
    font-size: var(--sf-text-3xl);
    font-weight: 700;
    color: var(--sf-white);
}

@media (min-width: 768px) {
    .dash-header-title {
        font-size: var(--sf-text-5xl);
    }
}

.dash-header-subtitle {
    color: rgba(255, 255, 255, 0.5);
}

/* Dashboard Back Button */
.dash-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
    margin-bottom: 2rem;
}

.dash-back-btn:hover {
    color: var(--sf-primary);
}

.dash-back-btn:hover i,
.dash-back-btn:hover svg {
    transform: translateX(-4px);
}

.dash-back-btn i,
.dash-back-btn svg {
    transition: transform 0.3s ease;
}

/* Status Badge */
.dash-status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    font-size: var(--sf-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dash-status-badge.active {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.dash-status-badge.inactive {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.dash-status-badge.warning {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: var(--sf-primary);
}

.dash-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: dashPulse 2s ease-in-out infinite;
}

.dash-status-badge.active .dash-status-dot {
    background: #22c55e;
}

.dash-status-badge.inactive .dash-status-dot {
    background: #ef4444;
}

.dash-status-badge.warning .dash-status-dot {
    background: var(--sf-primary);
}

@keyframes dashPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Placeholder Content */
.dash-placeholder {
    height: 24rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.1);
    background: transparent;
}

.dash-placeholder-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.dash-placeholder-icon i,
.dash-placeholder-icon svg {
    width: 2rem;
    height: 2rem;
    color: rgba(249, 115, 22, 0.5);
}

.dash-placeholder-title {
    font-size: var(--sf-text-xl);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
}

.dash-placeholder-text {
    font-size: var(--sf-text-sm);
    color: rgba(255, 255, 255, 0.3);
    margin-top: 0.5rem;
}

/* Primary Action Button (Support) */
.dash-btn-primary {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    background: var(--sf-primary);
    color: white;
    font-size: var(--sf-text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.3);
    text-decoration: none;
}

.dash-btn-primary:hover {
    background: var(--sf-primary-light);
}

/* Secondary Action Button */
.dash-btn-secondary {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: var(--sf-text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    text-decoration: none;
}

.dash-btn-secondary:hover {
    background: white;
    color: black;
}

/* Subscription Info */
.dash-subscription-plan {
    font-size: var(--sf-text-2xl);
    font-weight: 700;
    color: white;
    margin-top: 0.25rem;
}

.dash-subscription-date {
    font-size: var(--sf-text-sm);
    color: white;
    font-family: var(--sf-font);
    margin-top: 0.25rem;
}

.dash-subscription-price {
    font-size: var(--sf-text-xs);
    color: var(--sf-primary);
    margin-top: 0.25rem;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .dash-card {
        padding: 1rem;
    }
}
