/*
Theme Name: Artlybot
Theme URI: https://example.com/artlybot
Author: Antigravity
Author URI: https://example.com
Description: A custom theme for Artlybot. Light mode, modern dashboard interface.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: artlybot
*/

:root {
    /* Colors */
    --primary: #1447E6;
    --bg-main: #FFFFFF;
    --bg-sidebar: #FFFFFF;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --border: #E5E7EB;
    --hover-bg: #F3F4F6;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing & Radius */
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    height: 100vh;
    display: flex;
    overflow: hidden;
}

/* Typography Utilities */
.text-primary {
    color: var(--primary);
}

.text-gray {
    color: var(--text-secondary);
}

.font-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

/* Layout */
.app-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.new-project-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    transition: opacity 0.2s;
}

.new-project-btn:hover {
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background-color 0.2s;
    font-weight: 500;
}

.nav-item:hover {
    background-color: var(--hover-bg);
    color: var(--text-primary);
}

.gradient-upgrade {
    margin-top: auto;
    padding: 1rem;
    background: linear-gradient(135deg, #EEF2FF 0%, #FFFFFF 100%);
    border: 1px solid #E0E7FF;
    border-radius: var(--radius-lg);
    color: var(--primary);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
}

.top-bar {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 2rem;
    align-items: center;
    gap: 1rem;
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.credits-badge {
    background-color: #EEF2FF;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dashboard-view {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-text {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-subtext {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* Input Area */
.input-container {
    width: 100%;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Slight shadow */
    margin-bottom: 3rem;
    position: relative;
}

.input-box {
    width: 100%;
    border: none;
    font-size: 1rem;
    padding: 0.5rem;
    resize: none;
    outline: none;
    font-family: inherit;
    min-height: 60px;
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.model-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: var(--hover-bg);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
}

.send-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    width: 100%;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    cursor: pointer;
}

.icon-circle {
    width: 50px;
    height: 50px;
    background-color: #F9FAFB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: transform 0.2s, background-color 0.2s;
}

.feature-item:hover .icon-circle {
    transform: translateY(-2px);
    background-color: #EEF2FF;
    /* Light blue tint */
    color: var(--primary);
}

.feature-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Section Tabs */
.section-tabs {
    width: 100%;
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid transparent;
}

.tab {
    font-weight: 600;
    color: var(--text-secondary);
    padding-bottom: 0.5rem;
    cursor: pointer;
}

.tab.active {
    color: #000;
    border-bottom: 2px solid var(--primary);
}

/* Cards Row */
.cards-row {
    width: 100%;
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.content-card {
    min-width: 250px;
    height: 140px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: #F3F4F6;
    /* Placeholder gray */
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 4px 8px;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
}

/* Icons */
.material-icons-outlined {
    font-family: 'Material Icons Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;
    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;
    /* Support for IE. */
    font-feature-settings: 'liga';
}