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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
}

.navbar {
    background: white;
    padding: 20px 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #555;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #4CAF50;
}

.container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.left-panel {
    flex: 0 0 400px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

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

.intro-section h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.intro-section p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.right-panel {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #555;
}

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

#items-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.item-input:focus {
    outline: none;
    border-color: #4CAF50;
}

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

.color-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.color-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-control label {
    flex: 0 0 120px;
    font-size: 14px;
    color: #555;
}

.color-control input[type="color"] {
    width: 60px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
    font-size: 13px;
    flex: 0 0 auto !important;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

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

.spacing-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spacing-control label {
    flex: 0 0 120px;
    font-size: 14px;
    color: #555;
}

.spacing-control input[type="range"] {
    flex: 1;
    cursor: pointer;
}

.spacing-control span {
    flex: 0 0 40px;
    font-size: 14px;
    color: #555;
    text-align: right;
}

.export-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.export-btn {
    padding: 15px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.export-btn:hover {
    background: #45a049;
}

.export-btn:active {
    transform: scale(0.98);
}

.preview-container {
    background: #e0e0e0;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 100%;
}

#preview-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    background: white;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    .left-panel {
        flex: 1;
        max-height: none;
    }

    .right-panel {
        position: static;
    }
}
