:root {
    --bg-dark: #0f1115;
    --sidebar-bg: #16181d;
    --card-bg: #1c1f26;
    --card-hover: #232730;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #2e3340;
    --radius-lg: 16px;
    --radius-md: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.app-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    background-color: var(--sidebar-bg);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 380px;
    padding: 32px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.logo-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-title .dot {
    color: var(--primary);
}

.subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 32px;
}

.options-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Radio Cards */
.radio-group {
    display: flex;
    gap: 8px;
}

.radio-card {
    flex: 1;
    cursor: pointer;
}

.radio-card input {
    display: none;
}

.radio-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 8px;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.radio-card input:checked+.radio-content {
    background-color: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.radio-card:hover:not(:has(input:checked)) .radio-content {
    background-color: var(--card-hover);
}

/* Toggles */
.toggles-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: var(--card-bg);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.toggle-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.toggle-label {
    font-size: 15px;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #374151;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

/* Buttons */
.primary-btn {
    margin-top: auto;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), #818cf8);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.primary-btn:active {
    transform: translateY(0);
}

.secondary-btn {
    padding: 10px 16px;
    background-color: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.secondary-btn:hover:not(:disabled) {
    background-color: var(--card-hover);
    border-color: #4b5563;
}

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

/* Preview Area */
.preview-area {
    flex: 1;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    padding: 32px;
    position: relative;
}

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

.save-actions {
    display: flex;
    gap: 12px;
}

.preview-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-muted);
}

.canvas-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(22, 24, 29, 0.5);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.svg-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    transition: var(--transition);
}

.svg-container svg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    color: var(--text-muted);
}

.shapes-placeholder {
    display: flex;
    gap: 12px;
    opacity: 0.2;
}

.shape {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--text-muted);
    animation: pulse 2s infinite ease-in-out alternate;
}

.shape.s2 {
    animation-delay: 0.3s;
    border-radius: 50%;
}

.shape.s3 {
    animation-delay: 0.6s;
    border-radius: 0;
    transform: rotate(45deg);
}

@keyframes pulse {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-10px) scale(1.05);
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading {
    opacity: 0.5;
    pointer-events: none;
}
