:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2c3e50;
    --background-color: #ffffff;
    --surface-color: #f8f9fa;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
}

.dark-theme {
    --primary-color: #4da8da;
    --primary-dark: #357abd;
    --secondary-color: #ecf0f1;
    --background-color: #1a1a1a;
    --surface-color: #2d2d2d;
    --text-color: #ffffff;
    --text-light: #b0b0b0;
    --border-color: #404040;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    line-height: 1.6;
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

#theme-switcher {
    background: var(--surface-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
}

.sidebar {
    width: 260px;
    background: var(--surface-color);
    padding: 30px 20px;
    height: 100vh;
    position: fixed;
    border-right: 1px solid var(--border-color);
}

.logo-container {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    border-radius: 50%;
}

.sidebar h1 {
    color: var(--primary-color);
    font-size: 24px;
}

nav ul {
    list-style: none;
}

.nav-link {
    display: block;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    margin-bottom: 8px;
    border-radius: 8px;
}

.nav-link:hover {
    background: var(--primary-color);
    color: white;
}

.nav-link.active {
    background: var(--primary-color);
    color: white;
}

.main-content {
    flex: 1;
    padding: 40px;
    margin-left: 260px;
    min-height: 100vh;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.hero {
    text-align: center;
    padding: 40px 0;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.feature {
    background: var(--surface-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.feature h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background: var(--primary-dark);
}

.cta-button {
    background: var(--primary-color);
    padding: 15px 30px;
    font-size: 1.1rem;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.tab-content > p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.controls {
    text-align: center;
    margin: 30px 0;
}

.palette-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.color-box {
    text-align: center;
}

.color-preview {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.color-code {
    font-family: 'Courier New', monospace;
    background: var(--surface-color);
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

.action-buttons {
    text-align: center;
    margin: 30px 0;
}

.single-color-container {
    text-align: center;
    margin: 40px 0;
}

.color-preview-large {
    width: 180px;
    height: 180px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.color-code-large {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    background: var(--surface-color);
    padding: 8px 16px;
    border-radius: 6px;
}

.ideas-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.idea-palette, .saved-palette {
    background: var(--surface-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.idea-palette h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.delete-btn {
    background: #e74c3c;
    padding: 8px 15px;
    font-size: 14px;
    margin-top: 10px;
}

.about-content {
    background: var(--surface-color);
    padding: 25px;
    border-radius: 8px;
}

.about-content h3 {
    color: var(--primary-color);
    margin: 15px 0 10px 0;
}

.about-content ul {
    margin-left: 20px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .color-preview {
        width: 100px;
        height: 100px;
    }
}

/* Добавьте эти стили в конец файла style.css */

.color-theory-visual,
.golden-ratio,
.color-harmony,
.color-spectrum,
.color-psychology,
.design-principles,
.color-theory-basics,
.color-inspiration {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: var(--surface-color);
    border-radius: 8px;
}

.theory-image {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.color-theory-visual img,
.golden-ratio img,
.color-harmony img,
.color-spectrum img,
.color-psychology img,
.design-principles img,
.color-theory-basics img,
.color-inspiration img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.feature-icon {
    margin-bottom: 15px;
}

.feature-icon img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-color);
    padding: 10px;
}

/* Адаптивность для изображений */
@media (max-width: 768px) {
    .color-theory-visual,
    .golden-ratio,
    .color-harmony,
    .color-spectrum,
    .color-psychology,
    .design-principles,
    .color-theory-basics,
    .color-inspiration {
        margin: 20px 0;
        padding: 15px;
    }
    
    .theory-image {
        max-width: 250px;
    }
    
    .feature-icon img {
        width: 48px;
        height: 48px;
    }

}

@media (max-width: 768px) { body { font-size: 14px; } .sidebar { width: 100%; position: relative; } .main-content { margin-left: 0; padding: 15px; } .palette-container { flex-direction: column; align-items: center; } }
