/* Portal Specific Styles */

.portal-container {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Auth Box */
.auth-box {
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin-top: 50px;
}

.auth-box h2 {
    margin-bottom: 0.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: inherit;
}

.form-group input:focus {
    border-color: var(--accent-color);
    outline: none;
}

/* ... Auth Box styles remain ... */
.btn-block {
    width: 100%;
}

/* --- Dashboard Layout --- */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    margin-top: 0;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: #0f0f13;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
}

.sidebar-header h3 {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    flex-grow: 1;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.sidebar-menu li.active a,
.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.sidebar-menu li.active a {
    color: var(--accent-color);
    background: rgba(0, 255, 136, 0.05);
}

.sidebar-footer {
    margin-top: auto;
}

/* Main Content */
.dashboard-content {
    flex-grow: 1;
    padding: 2rem;
    margin-left: 260px;
    /* Offset for fixed sidebar */
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-only {
    display: none;
}

.btn-icon {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.dashboard-header h1 {
    font-size: 1.8rem;
}

.date-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Dashboard Grid Override */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.sub-status-card {
    grid-column: span 1;
}

.quick-actions-card {
    grid-column: span 1;
}

.content-card.full-width {
    grid-column: span 3;
}

/* Skeleton Loader */
.skeleton-wrapper {
    animation: fadeIn 0.5s;
}

.skeleton-line {
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.skeleton-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 1.5s infinite;
}

.skeleton-line.title {
    height: 32px;
    width: 60%;
    margin-bottom: 15px;
}

.skeleton-line.subtitle {
    height: 16px;
    width: 40%;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Quick Actions */
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.icon-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Content List */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.video-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.duration {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sub-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.badge-blue {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.badge-green {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

/* Responsive Dashboard */
@media (max-width: 992px) {
    .mobile-only {
        display: block;
    }

    .sidebar {
        display: flex;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        width: 80%;
        max-width: 300px;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .dashboard-content {
        margin-left: 0;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .sub-status-card,
    .quick-actions-card,
    .content-card.full-width {
        grid-column: span 1;
    }
}

#cancel-sub-btn:hover {
    background: rgba(255, 68, 68, 0.1);
}

.card {
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
}

.sub-status-card {
    border-top: 3px solid var(--accent-color);
}

.status-badge {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Video List */
.video-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.video-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.video-thumbnail {
    width: 50px;
    height: 50px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--accent-color);
}

.video-info h4 {
    margin: 0;
    font-size: 1rem;
}

.badge {
    /* Reset styles.css conflict */
    position: static;
    transform: none;
    top: auto;
    left: auto;

    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}