/* General Styles */
:root {
    --primary-color: #4e73df;
    --secondary-color: #2c3e50;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fc;
    color: #333;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.navbar-brand {
    font-weight: 800;
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--light-color);
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    padding: 2rem;
}

.auth-logo {
    height: 60px;
}

.auth-header h2 {
    font-weight: 700;
    color: var(--secondary-color);
}

/* Dashboard */
.dashboard-container {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.sidebar {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    padding: 1.5rem;
    height: 100%;
}

.user-profile .avatar {
    width: 80px;
    height: 80px;
    background-color: #f8f9fc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--primary-color);
}

.sidebar .nav-link {
    color: var(--dark-color);
    padding: 0.75rem 1rem;
    border-radius: 0.35rem;
    margin-bottom: 0.5rem;
}

.sidebar .nav-link:hover {
    background-color: rgba(78, 115, 223, 0.1);
    color: var(--primary-color);
}

.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
}

.dashboard-content {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    padding: 1.5rem;
    margin-left: 1rem;
}

.stat-card {
    border-left: 0.25rem solid var(--primary-color);
    border-radius: 0.35rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-icon.bg-primary {
    background-color: var(--primary-color);
}

.stat-icon.bg-success {
    background-color: var(--success-color);
}

.stat-icon.bg-warning {
    background-color: var(--warning-color);
}

.stat-icon.bg-danger {
    background-color: var(--danger-color);
}

/* Wallet */
.wallet-balance {
    background-color: #f8f9fc;
    padding: 0.5rem 1rem;
    border-radius: 0.35rem;
}

/* Player */
.player-container {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.video-container {
    background-color: #000;
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.channel-list-container {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    height: 100%;
}

.channel-list-body {
    height: calc(100vh - 200px);
    overflow-y: auto;
}

.channel-item {
    cursor: pointer;
    transition: background-color 0.2s;
}

.channel-item:hover {
    background-color: rgba(78, 115, 223, 0.1);
}

.channel-item.active {
    background-color: var(--primary-color);
    color: white;
}

.channel-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.channel-logo-placeholder {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fc;
    border-radius: 50%;
    color: var(--primary-color);
}

/* Subscription Cards */
.subscription-card {
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.subscription-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem 0 rgba(58, 59, 69, 0.2);
}

.subscription-card .card-header {
    border-radius: 0.35rem 0.35rem 0 0 !important;
}

/* Payment Success */
.payment-success {
    max-width: 800px;
    margin: 0 auto;
}

.success-icon {
    font-size: 5rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .dashboard-content {
        margin-left: 0;
        margin-top: 1.5rem;
    }
    
    .channel-list-body {
        height: auto;
        max-height: 300px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.auth-header {
    margin-bottom: 2rem;
    text-align: center;
    width: 100%;
}

.auth-logo {
    height: 60px;
    width: auto;
    display: block;
    margin: 0 auto 1rem;
    object-fit: contain;
}

.auth-header h2 {
    margin: 0;
    line-height: 1.3;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.auth-header p {
    margin: 0.5rem 0 0;
    color: #6c757d;
    font-size: 0.9rem;
}