* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    min-height: 100vh;
    padding: 20px;
}

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

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

header h1 {
    font-size: 2rem;
    background: linear-gradient(45deg, #00d9ff, #ff00ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logout-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Login Box */
.login-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    margin: 100px auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-box h1 {
    margin-bottom: 10px;
    font-size: 2rem;
}

.subtitle {
    color: #aaa;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

/* Form Elements */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #aaa;
    font-size: 0.9rem;
    text-align: left;
}

.input-group input[type="text"],
.input-group input[type="password"] {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #00d9ff;
    background: rgba(255, 255, 255, 0.15);
}

/* File Input */
.file-input-wrapper {
    margin-bottom: 20px;
}

.file-input-wrapper input[type="file"] {
    display: none;
}

.file-label {
    display: block;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.file-label:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00d9ff;
}

.file-label #fileName {
    color: #aaa;
    font-size: 0.95rem;
}

/* Buttons */
.login-btn,
.upload-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, #00d9ff, #0099ff);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-btn:hover,
.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.3);
}

.upload-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Progress Bar */
.progress-bar {
    margin-top: 20px;
    width: 100%;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #00d9ff, #0099ff);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Status Messages */
.status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.status.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
    color: #4CAF50;
}

.status.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #ff6b6b;
}

.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #ff6b6b;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Upload Section */
.upload-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-section h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Recent Videos */
.recent-videos {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.recent-videos h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.video-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.video-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.video-item-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.video-item-meta {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 10px;
}

.video-item-url {
    font-family: monospace;
    font-size: 0.8rem;
    color: #00d9ff;
    word-break: break-all;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.video-item-url:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Loading state */
.loading {
    text-align: center;
    padding: 20px;
    color: #aaa;
}

/* Video actions (delete button, etc) */
.video-item-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.delete-btn {
    padding: 6px 12px;
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #ff6b6b;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: rgba(244, 67, 54, 0.4);
    transform: translateY(-1px);
}

.delete-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.video-item-expiry {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

.video-item-expiry.expiring-soon {
    color: #ff9800;
}

.video-item-expiry.expired {
    color: #f44336;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .login-box {
        padding: 30px 20px;
        margin: 50px auto;
    }
    
    .upload-section,
    .recent-videos {
        padding: 20px;
    }
}
