/*--------------------------------------------------------------
# Dashboard Pages - Edit Video & My Videos
# Matches existing video-grid theme colors and styles
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Upload/Edit Video Page
--------------------------------------------------------------*/
/* Container & Main Layout */
/* Main Page Background */
.upload-video-page {
    background: #0a0a0a;
    min-height: 100vh;
    color: #fff;
    padding: 40px 20px;
}

.upload-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Header Styling */
.upload-header {
    text-align: center;
    margin-bottom: 40px;
}

.upload-header h1 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 8px;
}

.upload-header p {
    color: #999;
}

/* Form Sections (Cards) */
.form-section {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e50914; /* Brand Red */
}

/* Input Fields */
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #e50914;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: #999;
    font-size: 12px;
}

/* Multi-select styling */
select[multiple] {
    height: auto;
    background: #2a2a2a;
}

select[multiple] option {
    padding: 8px;
    border-radius: 4px;
}

select[multiple] option:checked {
    background: #e50914 linear-gradient(0deg, #e50914 0%, #e50914 100%);
    color: white;
}

/* Buttons */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
    border: none;
}

.btn-primary {
    background: #e50914;
    color: #fff;
}

.btn-primary:hover {
    background: #f40612;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #333;
    color: #fff;
}

.btn-secondary:hover {
    background: #444;
}

/* Previews */
#thumbnail-preview img, 
#trailer-preview video {
    border: 1px solid #444 !important;
    background: #0a0a0a;
    border-radius: 8px;
}

/* Success/Error Messages */
p.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #4caf50;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.error-state {
    text-align: center;
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid #e50914;
    padding: 30px;
    border-radius: 12px;
}

.error {
    color: #ff4444;
}