:root {
    /* Primary Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --primary-hover: #1d4ed8;
    --primary-shadow: rgb(37 99 235 / 25%);
    
    /* Legacy Primary (for backward compatibility) */
    --primary-color: var(--primary);
    --primary-color-light: var(--primary-light);
    
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --accent: #36cfc9;
    
    /* Legacy Semantic (for backward compatibility) */
    --success-color: var(--success);
    --warning-color: var(--warning);
    --danger-color: var(--danger);
    
    /* Surface Colors */
    --surface: #ffffff;
    --surface-muted: #f4f6fb;
    --surface-elevated: #ffffff;
    --background: #f8fafc;
    
    /* Legacy Surface (for backward compatibility) */
    --surface-color: var(--surface);
    --light-bg: var(--background);
    --secondary-bg: #e2e8f0;
    
    /* Border Colors */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-dark: #cbd5e1;
    
    /* Legacy Border (for backward compatibility) */
    --border-color: var(--border);
    
    /* Text Colors */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-inverse: #ffffff;
    
    /* Legacy Text (for backward compatibility) */
    --text-primary: var(--text-main);
    --text-secondary: var(--text-muted);
    --secondary-color: #334155;
    
    /* Shadow System */
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.08);
    --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.08);
    --shadow-md: 0 4px 12px rgb(15 23 42 / 0.08);
    --shadow-lg: 0 12px 24px rgb(15 23 42 / 0.12);
    --shadow-xl: 0 20px 25px rgb(15 23 42 / 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;
    
    /* Angle Converter Variables (for educational content styling) */
    --angle-primary: #2563eb;
    --angle-primary-dark: #1d4ed8;
    --angle-accent: #0ea5e9;
    --angle-surface: #ffffff;
    --angle-border: #e2e8f0;
    --angle-text: #0f172a;
    --angle-muted: #64748b;
    --angle-success: #22c55e;
    --angle-radius-lg: 1.5rem;
    --angle-radius-md: 1rem;
    --angle-radius-sm: 0.75rem;
    --angle-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
    --angle-shadow-lg: 0 30px 60px rgba(37, 99, 235, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    color: var(--text-primary);
    
}


.generator-intro {
    margin-bottom: 3rem;
}

.generator-title {
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.generator-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin: 0 0 1rem;
    max-width: 860px;
    line-height: 1.6;
}

.generator-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
}

.meta-chip {
    background: var(--surface-color);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 0.45rem 0.95rem;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.generator-main {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid rgba(148, 163, 184, 0.25);
    margin-bottom: 30px;
}

.generator-card {
    padding: 0rem 2rem;
    height: 100%;
}

.generator-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.input-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

.label-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status-bar {
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.status-bar svg {
    flex-shrink: 0;
}

.status-info {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

.results-container {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    height: 100%;
}

.results-header {
    margin-bottom: 1.5rem;
}

.results-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.copy-buttons-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.copy-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #f1f5f9;
    border: 1px solid #dde3e7;
    border-radius: 8px;
    color: #405063;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 48px;
    justify-content: center;
}

.copy-button:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.copy-button.copied {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.generate-btn {
    flex: 1 1 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(99, 102, 241, 0.3);
}

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

.ghost-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 0.9rem;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 140px;
}

.ghost-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: stretch;
    width: 100%;
}

.mixer-card {
    background: var(--surface-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    transition: all 0.3s ease;
}

.mixer-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.color-inputs-section {
    margin-bottom: 40px;
}

.color-input-group {
    margin-bottom: 30px;
    position: relative;
}

.color-input-group label {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: block;
    font-size: 1.1rem;
}

.color-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.color-preview-small {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.color-preview-small:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.color-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.color-input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 56px;
}

.color-code-display {
    min-width: 100px;
    padding: 14px 16px;
    background: var(--surface-muted);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    
}

.color-code-display:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.color-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.color-picker-btn {
    width: 48px;
    height: 48px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #ff0000, #ff8000, #ffff00, #80ff00, #00ff00, #00ff80, #00ffff, #0080ff, #0000ff, #8000ff, #ff00ff, #ff0080);
    background-size: 300% 300%;
    animation: rainbow 3s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.color-picker-btn:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.color-picker-btn input[type="color"] {
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.color-picker-btn::before {
    content: '🎨';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.color-preview {
    width: 100%;
    height: 140px;
    border-radius: var(--radius-lg);
    border: 4px solid white;
    box-shadow: var(--shadow-lg);
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-preview:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.color-preview::after {
    content: attr(data-color);
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.mixing-controls {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 2px;
}

.color-count-selector {
    margin-bottom: 30px;
}

.color-count-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.count-btn {
    padding: 14px 28px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    min-height: 48px;
}

.count-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.count-btn.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.blend-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.blend-mode {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blend-mode::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.blend-mode:hover::before {
    left: 100%;
}

.blend-mode.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.blend-mode:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.ratio-control {
    margin-bottom: 30px;
}

.ratio-slider-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.ratio-slider-group:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.ratio-label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 70px;
    font-size: 0.95rem;
}

.ratio-slider {
    flex: 1;
    margin: 0 15px;
    height: 10px;
    background: var(--border-color);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.ratio-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.ratio-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: var(--shadow-lg);
}

.ratio-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
}

.ratio-value {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-weight: 700;
    min-width: 70px;
    text-align: center;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.ratio-value:hover {
    transform: scale(1.05);
}

.result-section {
    background: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.result-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.result-preview {
    height: 220px;
    border-radius: var(--radius-lg);
    border: 4px solid white;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-preview:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.result-preview::after {
    content: attr(data-color);
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.color-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 25px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.info-item:hover::before {
    transform: scaleX(1);
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.info-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 700;
    word-break: break-all;
}

.action-buttons-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.action-btn-compact {
    flex: 1;
    min-width: 150px;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: white;
    color: var(--text-primary);
}

.action-btn-compact.btn-secondary {
    border-color: var(--border-color);
    background: var(--surface-color);
}

.action-btn-compact.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.action-btn-compact.btn-warning {
    border-color: var(--warning-color);
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    color: white;
}

.action-btn-compact.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.actions-toolbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.action-btn {
    padding: 18px 28px;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 56px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.action-btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-info {
    background: linear-gradient(135deg, var(--accent-color) 0%, #0891b2 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.action-btn:active {
    transform: translateY(-1px);
}

.preset-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.preset-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    min-height: 44px;
}

.preset-btn:hover {
    border-color: var(--primary-color);
    background: #f0f4ff;
    transform: translateY(-2px);
}


.tooltip {
    position: relative;
    display: inline-flex;
}

.tooltip .tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.08);
    color: var(--text-primary);
    font-weight: 700;
    cursor: help;
    border: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.tooltip .tooltip-trigger:hover {
    background: rgba(15, 23, 42, 0.15);
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 220px;
    background-color: var(--text-primary);
    color: white;
    text-align: left;
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    position: absolute;
    z-index: 10;
    bottom: 135%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 0.875rem;
    line-height: 1.4;
}

.tooltip:hover .tooltiptext,
.tooltip:focus-within .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.tooltip .tooltiptext::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--text-primary);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--success-color);
    color: white;
    padding: 18px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    background: var(--error-color);
}

.toast.warning {
    background: var(--warning-color);
}

.share-container {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.share-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-x {
    background: #111827;
}

.share-x:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.2);
    color: #ffffff;
}

.share-facebook {
    background: #1877f2;
}

.share-facebook:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.2);
    color: #ffffff;
}

.share-linkedin {
    background: #0a66c2;
}

.share-linkedin:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.2);
    color: #ffffff;
}

.share-reddit {
    background: #ff4500;
}

.share-reddit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.2);
    color: #ffffff;
}

.share-telegram {
    background: #229ed9;
}

.share-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.2);
    color: #ffffff;
}

.share-whatsapp {
    background: #25d366;
    color: #0f172a;
}

.share-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.2);
    color: #0f172a;
}
.educational-content {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 40px;
    border-radius: var(--radius-xl);
    margin-top: 40px;
    border: 1px solid var(--border-color);
}

.content-section {
    margin-bottom: 30px;
}

.content-section h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-section h3::before {
    content: '🎨';
    font-size: 1.8rem;
}

.content-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.content-section ul {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.1rem;
    padding-left: 20px;
    margin-bottom: 15px;
}

.content-section li {
    margin-bottom: 8px;
}

.content-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.content-section a:hover {
    text-decoration: underline;
}

.infographic-timeline {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    margin: 30px 0;
    box-shadow: var(--shadow-md);
}

.infographic-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 30px;
}

.timeline-container {
    position: relative;
}

.timeline-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.timeline-item {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.timeline-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    color: var(--primary-color);
}

.timeline-era {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.timeline-years {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .mixer-card {
        padding: 20px;
        margin: 10px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .color-input-row {
        flex-direction: column;
        gap: 10px;
    }

    .color-preview-small {
        width: 100%;
        height: 56px;
    }

    .color-input-wrapper {
        width: 100%;
    }

    .color-picker-btn {
        width: 48px;
        height: 48px;
    }

    .color-input {
        padding: 14px 16px;
        font-size: 16px;
    }

    .color-code-display {
        width: 100%;
        min-width: auto;
    }

    .ratio-slider-group {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .ratio-label {
        min-width: auto;
        text-align: center;
    }

    .ratio-slider {
        margin: 0;
    }
    
    .blend-modes {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .blend-mode {
        padding: 8px 6px;
        font-size: 11px;
        min-height: 36px;
    }

    .action-buttons-row {
        flex-direction: column;
    }

    .action-btn-compact {
        width: 100%;
    }
    
    .actions-toolbar {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .color-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .result-preview {
        height: 180px;
    }

    .educational-content {
        padding: 20px;
        margin: 20px 10px;
    }

    .toast {
        right: 10px;
        left: 10px;
        transform: translateY(100px);
        max-width: none;
    }

    .toast.show {
        transform: translateY(0);
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }

    .timeline-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blend-modes {
        grid-template-columns: 1fr;
    }

    .action-btn {
        padding: 16px 24px;
        font-size: 14px;
    }

    .section-title {
        font-size: 1.25rem;
    }
}

.angle-seo-section {
    margin-top: clamp(3rem, 5vw, 4rem);
}

.angle-card {
    margin-top: clamp(2.5rem, 4vw, 3.5rem);
    background: var(--angle-surface);
    border-radius: var(--angle-radius-lg);
    padding: clamp(2rem, 4vw, 2.75rem);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: var(--angle-shadow-sm);
}

.angle-education-card h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--angle-text);
    margin-bottom: 1.5rem;
}

.angle-education-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--angle-text);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.angle-education-card .h4 {
    font-size: 1.15rem;
}

.angle-education-card p {
    font-size: 1rem;
    color: var(--angle-muted);
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.angle-education-card a {
    color: var(--angle-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.angle-education-card a:hover {
    color: var(--angle-primary-dark);
}
