@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #0a0a0a;
    --bg-sidebar: #121212;
    --bg-panel: #1a1a1a;
    --border-color: #2a2a2a;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent: #ffffff;
    --accent-hover: #e0e0e0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Utilities */
.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.5s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Top Banner */
.top-banner {
    background: #000;
    border-bottom: 1px solid var(--border-color);
    padding: 5px 0;
}

/* App Layout */
.app-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-list {
    list-style: none;
    padding: 0 10px;
    margin: 0;
    overflow-y: auto;
}

.nav-header {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
    padding: 10px 15px;
}

.nav-list li a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #b3b3b3;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 5px;
    transition: all 0.2s;
}

.nav-list li a i {
    width: 25px;
}

.nav-list li a:hover, .nav-list li.active a {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.nav-list li.active a {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-profile {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.avatar {
    width: 35px;
    height: 35px;
    background: #00a8ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-info .name { font-size: 0.9rem; font-weight: 500; }
.user-info .email { font-size: 0.75rem; color: var(--text-muted); }

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
}

.nav-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
}
.nav-actions i:hover, .nav-actions span:hover { color: var(--text-main); }

/* Workspace (Center Canvas) */
.workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.empty-state {
    text-align: center;
}
.empty-icon {
    width: 80px;
    height: 80px;
    background: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    color: #444;
}

/* Prompt Console */
.prompt-console-wrapper {
    padding: 20px 30px;
    background: linear-gradient(to top, var(--bg-main) 50%, transparent);
}

.prompt-console {
    background: #141414;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.prompt-top {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.image-slots {
    display: flex;
    gap: 10px;
}

.img-slot {
    width: 60px;
    height: 60px;
    border: 1px dashed #444;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: var(--text-muted);
    cursor: pointer;
    background: rgba(255,255,255,0.02);
    transition: background 0.3s;
}
.img-slot:hover { background: rgba(255,255,255,0.05); border-color: #666; }
.img-slot i { font-size: 1.2rem; margin-bottom: 3px; }

.prompt-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1rem;
    padding: 10px;
    outline: none;
}
.prompt-input::placeholder { color: #555; }

.btn-generate {
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 12px;
    padding: 0 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}
.btn-generate:hover { background: var(--accent-hover); transform: scale(1.02); }

.prompt-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.dropdown-group, .action-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-dropdown, .btn-action {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #ccc;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-dropdown:hover, .btn-action:hover { background: #2a2a2a; color: #fff; }
.btn-dropdown { text-align: left; line-height: 1.1; }
.icon-only { padding: 8px 12px; }

/* Loader & Spinners */
.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Toasts */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; }
.custom-toast {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    animation: slideInRight 0.3s ease forwards, fadeOut 0.3s ease 3s forwards;
}
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar { position: fixed; left: -260px; height: 100%; z-index: 1000; }
    .sidebar.active { transform: translateX(260px); }
    .prompt-top { flex-direction: column; }
    .btn-generate { padding: 15px; }
    .prompt-console-wrapper { padding: 10px; }
}