:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --success: #10b981;
    --danger: #ef4444;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
}

.background-animation {
    position: fixed;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15), transparent 60%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15), transparent 50%);
    z-index: -1; animation: rotate 30s linear infinite;
}

@keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.container {
    width: 100%; max-width: 900px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px; padding: 3rem;
    box-shadow: var(--shadow-soft);
    display: flex; flex-direction: column; gap: 2rem;
}

header { text-align: center; }
header h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; }
header h1 span { background: var(--accent-gradient); -webkit-background-clip: text; color: transparent; }

/* Tabs */
.tabs {
    display: flex; gap: 1rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 1rem;
}
.tab-btn {
    background: none; border: none; color: var(--text-secondary);
    font-size: 1.1rem; font-weight: 600; cursor: pointer; padding: 0.5rem 1rem;
    position: relative; transition: color 0.3s;
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--accent); }
.tab-btn.active::after {
    content: ''; position: absolute; bottom: -1rem; left: 0; width: 100%;
    height: 2px; background: var(--accent);
}

.tab-content { display: none; flex-direction: column; gap: 1.5rem; }
.tab-content.active { display: flex; animation: fadeIn 0.4s ease; }

/* Media Tools */
.media-input-group { display: flex; gap: 1rem; }
.input-url {
    flex: 1; padding: 1rem; border-radius: 12px; border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.6); color: white; font-size: 1rem;
}
.media-info {
    background: rgba(15, 23, 42, 0.4); border: 1px solid var(--glass-border);
    border-radius: 16px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem;
}
.media-header { display: flex; gap: 1.5rem; align-items: center; }
.media-header img { width: 120px; border-radius: 8px; }
.media-actions h4 { margin-bottom: 0.8rem; color: var(--text-secondary); }
.format-select {
    padding: 0.8rem; border-radius: 8px; background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--glass-border); color: white; margin-right: 1rem;
}
.status-text { margin-top: 0.5rem; font-size: 0.9rem; color: var(--success); }
.button-group { display: flex; gap: 1rem; margin-top: 1rem; }

/* Existing Components */
.btn {
    padding: 0.8rem 1.5rem; border: none; border-radius: 12px; font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.primary-btn { background: var(--accent-gradient); color: white; }
.primary-btn:hover:not(:disabled) { transform: translateY(-2px); }
.secondary-btn { background: rgba(255, 255, 255, 0.1); color: white; }

.drop-zone {
    border: 2px dashed var(--glass-border); border-radius: 12px; padding: 2rem 1rem;
    text-align: center; background: rgba(15, 23, 42, 0.4); cursor: pointer;
    transition: all 0.3s ease;
}
.drop-zone:hover, .drop-zone.dragover { border-color: var(--accent); background: rgba(59, 130, 246, 0.05); }
.upload-icon { width: 40px; height: 40px; color: var(--accent); margin-bottom: 0.5rem; }
.drop-zone-content h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.drop-zone-content p { font-size: 0.85rem; color: var(--text-secondary); }

.actions-panel { display: flex; gap: 1rem; margin-top: -0.5rem; }
.file-list { display: flex; flex-direction: column; gap: 1rem; max-height: 400px; overflow-y: auto; }
.file-item { display: flex; align-items: center; background: rgba(15, 23, 42, 0.6); padding: 1rem; border-radius: 12px; }
.file-preview { width: 60px; height: 60px; object-fit: cover; margin-right: 1rem; border-radius: 8px; }

/* Account Corner & Modal */
.account-corner { position: absolute; right: 0; top: 0; display: flex; align-items: center; gap: 0.5rem; }
.account-corner span { font-weight: 600; font-size: 0.9rem; }
.icon-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-secondary); transition: color 0.2s; }
.icon-btn:hover { color: var(--text-primary); }

.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { background: var(--bg-secondary); padding: 2rem; border-radius: 16px; width: 90%; max-width: 600px; border: 1px solid var(--glass-border); box-shadow: var(--shadow-glow); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 0.5rem; }
.settings-section { margin-bottom: 1.5rem; }
.settings-section h3 { font-size: 1.1rem; margin-bottom: 0.8rem; color: var(--accent); }
.input-row { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.input-row input { flex: 1; padding: 0.6rem; border-radius: 8px; border: 1px solid var(--glass-border); background: rgba(15, 23, 42, 0.6); color: white; }
.user-list-container { max-height: 200px; overflow-y: auto; background: rgba(15, 23, 42, 0.4); border-radius: 8px; padding: 0.5rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.5rem; border-bottom: 1px solid var(--glass-border); }
th { color: var(--text-secondary); }

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