/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.5rem;
    color: #ff0000;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Main Content */
.main-content {
    display: flex;
    justify-content: center;
}

.upload-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 40px;
    width: 100%;
    max-width: 600px;
    position: relative;
    overflow: hidden;
}

.upload-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff0000, #ff4444);
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-header i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 10px;
}

.card-header h2 {
    font-size: 1.8rem;
    color: #333;
    font-weight: 600;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-label i {
    color: #667eea;
    font-size: 1rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.char-count {
    text-align: right;
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.form-hint {
    color: #666;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/* File Upload */
.file-upload {
    position: relative;
    border: 2px dashed #e1e5e9;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-content i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 10px;
}

.file-upload-content p {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.file-upload-content small {
    color: #666;
}

.video-preview {
    margin-top: 15px;
    text-align: center;
}

.video-preview video {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.video-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

/* Radio Groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.radio-label:hover {
    background: rgba(102, 126, 234, 0.05);
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #667eea;
    background: #667eea;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Schedule Group */
.schedule-group {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

/* Upload Button */
.upload-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.upload-btn:active {
    transform: translateY(0);
}

.upload-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Upload Progress */
.upload-progress {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    text-align: center;
}

.progress-info h3 {
    color: #333;
    margin-bottom: 5px;
}

.progress-info p {
    color: #666;
    margin-bottom: 20px;
}

.progress-bar {
    background: #e1e5e9;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-percentage {
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
}

/* Result Messages */
.result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.result.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.result.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.result.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.result a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.result a:hover {
    text-decoration: none;
}

.auth-link {
    display: inline-block;
    background: #0c5460;
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none !important;
    margin: 10px 0;
    transition: background 0.3s ease;
}

.auth-link:hover {
    background: #0a4a54;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .upload-card {
        padding: 25px;
        margin: 10px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    .card-header i {
        font-size: 2.5rem;
    }
    
    .radio-group {
        gap: 8px;
    }
    
    .radio-label {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .upload-card {
        padding: 20px;
    }
    
    .file-upload {
        padding: 30px 15px;
    }
    
    .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .upload-btn {
        font-size: 1rem;
        padding: 14px 20px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upload-card {
    animation: fadeIn 0.6s ease-out;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Header Menu */
.header-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.menu-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.channel-info {
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
}

/* Channel Actions */
.channel-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.channel-action-btn {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
}

.channel-action-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e1e5e9;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #333;
}

.modal-body {
    padding: 25px;
}

.section {
    margin-bottom: 30px;
}

.section h3 {
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.section p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.modal-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
    justify-content: center;
}

.modal-btn.primary {
    background: #667eea;
    color: white;
}

.modal-btn.primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.modal-btn.danger {
    background: #dc3545;
    color: white;
}

.modal-btn.danger:hover {
    background: #c82333;
}

.modal-btn.secondary {
    background: #6c757d;
    color: white;
}

.modal-btn.secondary:hover {
    background: #5a6268;
}

/* Channels List */
.channels-list {
    max-height: 300px;
    overflow-y: auto;
}

.channel-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.channel-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.channel-item.default {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.channel-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.channel-details {
    flex: 1;
}

.channel-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.default-badge {
    background: #28a745;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
}

.channel-url {
    color: #666;
    font-size: 0.85rem;
}

.channel-actions-list {
    display: flex;
    gap: 8px;
}

.channel-btn {
    background: none;
    border: 1px solid #e1e5e9;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.channel-btn:hover {
    background: #f8f9fa;
}

.channel-btn.primary {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.channel-btn.primary:hover {
    background: #5a6fd8;
}

.channel-btn.danger {
    color: #dc3545;
    border-color: #dc3545;
}

.channel-btn.danger:hover {
    background: #dc3545;
    color: white;
}

.loading-placeholder {
    text-align: center;
    padding: 30px;
    color: #666;
}

.empty-placeholder {
    text-align: center;
    padding: 30px;
    color: #666;
}

.empty-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ccc;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body {
        padding: 15px;
    }
    
    .channel-item {
        flex-direction: column;
        text-align: center;
    }
    
    .channel-thumbnail {
        margin: 0 0 10px 0;
    }
    
    .channel-actions-list {
        margin-top: 10px;
        justify-content: center;
    }
    
    .header-menu {
        flex-direction: column;
        gap: 10px;
    }
} 