:root {
    --bg-dark: #0a0a0a;
    --sidebar-bg: #121212;
    --accent: #fbbf24;
    --text-main: #ffffff;
    --text-dim: #a3a3a3;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(255, 255, 255, 0.05);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 350px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo h1 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-icon {
    font-size: 1.5rem;
}

.input-section label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-dim);
    margin-bottom: 12px;
}

textarea {
    width: 100%;
    height: 150px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    color: white;
    font-family: inherit;
    resize: none;
    transition: border-color 0.2s;
}

textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.primary-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: transform 0.2s, opacity 0.2s;
}

.primary-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.settings h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.control-group {
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 8px;
}

select {
    width: 100%;
    padding: 10px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: white;
    border-radius: 8px;
}

.color-picker {
    display: flex;
    gap: 8px;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
}

.color-swatch.active {
    border-color: white;
}

/* Workspace */
.workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #000;
    padding: 40px;
    overflow-y: auto;
}

.workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.secondary-btn {
    padding: 10px 20px;
    background: var(--glass);
    border: 1px solid var(--border);
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 32px;
}

.empty-state {
    grid-column: 1 / -1;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    border: 2px dashed var(--border);
    border-radius: 24px;
}

/* Frame Styles */
.frame {
    width: 400px;
    height: 400px;
    background: #121212;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: transform 0.3s;
    cursor: pointer;
}

.frame:hover {
    transform: scale(1.02);
}

.frame-text {
    font-family: 'Caveat', cursive;
    font-size: 48px;
    line-height: 1.2;
    color: white;
}

.frame-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 12px;
    opacity: 0.5;
}

.frame-footer {
    position: absolute;
    bottom: 20px;
    font-size: 14px;
    opacity: 0.5;
}
