/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #874040 0%, #662e2e 100%);
    color: #fff;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Navigation */
nav {
    margin-top: 1rem;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 8px 20px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem;
}

h2 {
    color: #874040;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 8px;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #874040;
}

h3 {
    color: #555;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

a {
    color: #874040;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #662e2e;
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 1.5rem 0;
    text-align: center;
}

footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
}

/* Editor Toolbar Layout */
.editor-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
}

.editor-toolbar-layout {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    height: 440px;
}

/* Toolbar Styles */
.toolbar {
    width: 250px;
    background-color: #f5f5f5;
    border-right: 1px solid #ddd;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.toolbar-section {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #ddd;
}

.toolbar-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.toolbar-section h3 {
    color: #874040;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #eee;
}

.toolbar-row {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.toolbar-row label {
    min-width: 50px;
    font-weight: 500;
    font-size: 0.85rem;
}

.toolbar-row input[type="number"],
.toolbar-row input[type="text"] {
    width: 80px;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
}

.toolbar-row input[type="text"] {
    width: 150px;
}

.toolbar-row .unit {
    margin-left: 5px;
    font-size: 0.85rem;
    color: #666;
}

.toolbar-row input[type="range"] {
    width: 100px;
    margin-right: 8px;
}

.toolbar-row input[type="color"] {
    width: 30px;
    height: 25px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    margin-right: 8px;
}

.toolbar-row select {
    width: 150px;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
}

.color-row {
    display: flex;
    align-items: center;
}

.color-hex {
    font-size: 0.8rem;
    color: #666;
}

/* Preview Panel Styles */
.preview-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background-color: #fff;
}

.svg-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 1rem;
    padding: 1rem;
    overflow: auto;
}

.export-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.8rem;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.dimension-display {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.download-button {
    background-color: #874040;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 6px 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(135, 64, 64, 0.3);
    font-size: 0.85rem;
}

.download-button:hover {
    background-color: #6d3333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(135, 64, 64, 0.4);
}

/* Responsive styles */
@media (max-width: 768px) {
    .editor-toolbar-layout {
        flex-direction: column;
        height: auto;
    }
    
    .toolbar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    
    .preview-panel {
        height: 350px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    nav ul li a {
        display: block;
        width: 200px;
        margin: 0 auto;
    }
}