/* NoppieTV - Custom Modern Styles */

:root {
    --primary-color: #322E53;
    --accent-color: #007bff;
    --bg-dark: #121212;
    --bg-card: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-dark);
    color: #e0e0e0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

/* Sidebar Styling */
.sidebar {
    height: calc(100vh - 72px);
    overflow-y: auto;
    background-color: #1a1a1a;
    border-right: 1px solid var(--glass-border);
    scrollbar-width: thin;
    scrollbar-color: #444 #1a1a1a;
}

#channelList {
    display: flex;
    flex-direction: column;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 10px;
}

/* Channel List Styling */
.list-group {
    display: flex;
    flex-direction: column;
}

.list-group-item {
    background-color: transparent !important;
    color: #bbb !important;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    flex-direction: row;
}

.list-group-item:hover {
    background-color: var(--glass-bg) !important;
    color: #fff !important;
    transform: translateX(5px);
}

.list-group-item.active {
    background-color: var(--accent-color) !important;
    color: #fff !important;
    font-weight: 600;
}

/* Player Styling */
.video-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    aspect-ratio: 16 / 9;
}

#video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Control Panel */
.control-panel {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

/* Recording Controls */
.recording-controls .btn {
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Grid for Mobile */
@media (max-width: 768px) {
    .sidebar {
        height: auto;
        max-height: 400px;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }
    
    #channelList {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.5rem;
        padding: 0.5rem !important;
    }
    
    .list-group-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem !important;
        border: 1px solid var(--glass-border) !important;
        border-radius: 8px !important;
    }
    
    .list-group-item img {
        margin: 0 0 0.5rem 0 !important;
        width: 60px !important;
        height: 60px !important;
    }

    .video-container {
        border-radius: 0;
    }
    
    .main-content {
        padding: 0 !important;
    }
    
    .control-panel {
        border-radius: 0;
        margin-top: 0;
    }
}

/* Custom Inputs */
.form-control, .form-select {
    background-color: rgba(255,255,255,0.05) !important;
    border: 1px solid var(--glass-border) !important;
    color: #fff !important;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(255,255,255,0.1) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25) !important;
}

.form-control::placeholder {
    color: #777 !important;
}

/* Badge Beta */
.badge.bg-info {
    background-color: #007bff !important;
    font-size: 0.65rem;
    vertical-align: middle;
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}
