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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 2.5rem;
}

.generator-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.controls {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.preview-container {
    flex: 2;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preview {
    height: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.css-output {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
}

.css-output h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

#cssCode {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    min-height: 150px;
    max-height: 200px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.color-controls {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.color-input {
    flex: 1;
}

.color-input label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.color-input input {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.gradient-type, .linear-controls, .radial-controls, .conic-controls {
    margin: 20px 0;
}

.gradient-type label, .linear-controls label, .radial-controls label, .conic-controls label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.gradient-type select, .radial-controls select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
}

#linearAngle, #conicAngle {
    width: 100%;
}

#angleValue, #conicAngleValue {
    display: inline-block;
    margin-left: 10px;
    font-weight: 500;
}

button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px 5px 0 0;
    transition: background 0.3s ease;
}

button:hover {
    background: #2980b9;
}

#exportCSS {
    background: #27ae60;
}

#exportCSS:hover {
    background: #219653;
}

#copyCSS {
    background: #9b59b6;
}

#copyCSS:hover {
    background: #8e44ad;
}

.hidden {
    display: none;
}

.color-stop {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.color-stop input[type="color"] {
    width: 50px;
    height: 40px;
}

.color-stop input[type="range"] {
    flex: 1;
}

.remove-color {
    background: #e74c3c;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}

.remove-color:hover {
    background: #c0392b;
}

@media (max-width: 768px) {
    .generator-container {
        flex-direction: column;
    }
    
    .color-controls {
        flex-direction: column;
        gap: 10px;
    }
}

.additional-colors {
    margin: 20px 0;
}

.color-stop {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.color-stop input[type="color"] {
    width: 50px;
    height: 40px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.color-stop input[type="range"] {
    flex: 1;
}

.remove-color {
    background: #e74c3c;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}

.remove-color:hover {
    background: #c0392b;
}