:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --dark-color: #2d3436;
    --light-color: #f5f6fa;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --danger-color: #d63031;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: var(--dark-color);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.controls {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.control-group {
    margin-bottom: 15px;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.mood-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mood-btn {
    padding: 8px 15px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.mood-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

input[type="range"] {
    width: 100%;
    margin-top: 5px;
}

#complexity-value {
    display: inline-block;
    margin-left: 10px;
    font-weight: 600;
}

.main-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 30px;
}

.main-btn:hover {
    background-color: #5649c0;
    transform: translateY(-2px);
}

.main-btn i {
    margin-right: 10px;
}

.prompt-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-color);
}

.prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#prompt-category {
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
}

#speak-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 18px;
    cursor: pointer;
}

#prompt-text {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.prompt-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    padding: 10px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background-color: #f5f5f5;
}

.action-btn i {
    margin-right: 5px;
}

.saved-prompts {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 8px;
}

.saved-prompts h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.saved-prompts h3 i {
    color: var(--primary-color);
    margin-right: 10px;
}

#saved-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.saved-item {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid var(--secondary-color);
    position: relative;
}

.saved-item p {
    margin-bottom: 5px;
}

.saved-item .category {
    font-size: 12px;
    color: #666;
}

.delete-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
}

@media (max-width: 600px) {
    .prompt-actions {
        flex-direction: column;
    }
    
    .mood-options {
        justify-content: center;
    }
}