* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f2f5;
}

.container {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
}

.gradient-box {
    width: 100%;
    height: 200px;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.color-inputs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.color-input {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

input[type="color"] {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 0.3rem;
    cursor: pointer;
}

.buttons {
    display: flex;
    gap: 1rem;
}

button {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 0.3rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.generate-btn {
    letter-spacing: 0.3px;
    background-color: #38a83e;
    color: white;
}

.generate-btn:hover {
    background-color: #4ed153;
}

.copy-btn {
    letter-spacing: 0.3px;
    background-color: #2196F3;
    color: white;
}

.copy-btn:hover {
    background-color: #0d6fd1;
}

.css-code {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.3rem;
    font-family: monospace;
    word-break: break-all;
}