/* Modern Ecological Theme for Logo Simulator */

body {
    font-family: 'Inter', sans-serif !important;
    background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%) !important;
    color: #064e3b !important;
    margin: 0;
}

h1 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700;
    color: #166534 !important;
    margin-left: 10px;
}

/* Panels */
.panel {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 12px;
}

#topbar {
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    border-bottom: 1px solid #bbf7d0 !important;
}

#topbar-links a {
    color: #16a34a;
    text-decoration: none;
    font-weight: 600;
    margin: 0 5px;
}

#topbar-links a:hover {
    color: #15803d;
    text-decoration: underline;
}

/* Display and Canvas */
#display {
    border: 2px solid #bbf7d0 !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(22, 163, 74, 0.15) !important;
    background-color: #ffffff !important;
    overflow: hidden;
}

#sandbox, #turtle {
    border-radius: 16px !important;
    border: none !important;
}

#display #error {
    background-color: #ef4444 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Input Panel */
#input {
    border: 2px solid #bbf7d0 !important;
    border-radius: 12px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    background-color: #ffffff !important;
}

/* Textareas and CodeMirror */
.CodeMirror, textarea {
    font-family: 'Fira Code', 'Courier New', monospace !important;
    font-size: 14px !important;
    color: #064e3b !important;
}

/* Buttons */
#run, #stop, #clear {
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    font-weight: 600 !important;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif !important;
}

#run {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    color: white !important;
}

#run:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(34, 197, 94, 0.3) !important;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
}

#stop {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
}

#stop:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(239, 68, 68, 0.3) !important;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
}

#clear {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%) !important;
    color: #4b5563 !important;
}

#clear:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1) !important;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%) !important;
}

#run .label, #clear .label, #stop .label {
    color: inherit;
}

/* Sidebar overrides */
#sidebar, #sidebar-header {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: -5px 0 20px rgba(22, 163, 74, 0.05) !important;
    border-left: 1px solid rgba(22, 163, 74, 0.1) !important;
}

#sidebar-header ul li {
    margin-bottom: 8px;
}

#sidebar-header ul li a {
    color: #16a34a;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

#sidebar-header ul li a:hover {
    color: #15803d;
    text-decoration: underline;
}

.linkdesc {
    color: #4b5563;
    font-size: 0.9em;
}

.snippet pre {
    border-radius: 8px;
    background-color: #f0fdf4 !important;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 8px;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    transition: all 0.2s ease;
}

.snippet pre:hover {
    background-color: #dcfce7 !important;
    border-color: #86efac;
}

a {
    color: #16a34a;
}
a:hover {
    color: #15803d;
}
