:root {
    --primary: #0C7779;
    --secondary: #249E94;
    --accent: #005461;
    --bg-light: #ffffff;
    --bg-light-alt: #f5f5f5;
    --text-light: #333333;
    --text-light-muted: #666666;
    --border-light: #e0e0e0;
    --shadow-light: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-light: #1a1a1a;
    --bg-light-alt: #2d2d2d;
    --text-light: #e0e0e0;
    --text-light-muted: #b0b0b0;
    --border-light: #404040;
    --shadow-light: rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#freepromptlab-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.fpl-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary);
}

.fpl-header h1 {
    font-size: 2.5em;
    color: var(--primary);
    font-weight: 700;
    margin: 0;
}

.theme-btn {
    background: var(--secondary);
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px var(--shadow-light);
    white-space: nowrap;
}

.theme-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px var(--shadow-light);
    background: var(--primary);
}

.theme-btn:active {
    transform: scale(0.95);
}

.theme-icon {
    font-size: 20px;
    display: inline-block;
}

.theme-label {
    font-size: 14px;
    font-weight: 600;
}

[data-theme="light"] .moon-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: none;
}

.fpl-form {
    background: var(--bg-light-alt);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 16px var(--shadow-light);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1em;
}

.fpl-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 16px;
    background-color: var(--bg-light);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    height: 52px;
    line-height: normal;
}

.fpl-select:hover {
    border-color: var(--secondary);
}

.fpl-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(12, 119, 121, 0.1);
}

.fpl-textarea {
    width: 100%;
    min-height: 180px;
    padding: 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Courier New', monospace;
    resize: vertical;
    background-color: var(--bg-light);
    color: var(--text-light);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.fpl-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(12, 119, 121, 0.1);
}

.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.fpl-btn {
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 6px var(--shadow-light);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow-light);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow-light);
}

.fpl-btn:active {
    transform: translateY(0);
}

.fpl-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.notification {
    margin-top: 20px;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    background: #10b981;
    color: white;
}

.notification.error {
    background: #ef4444;
    color: white;
}

.notification.info {
    background: var(--secondary);
    color: white;
}

.fpl-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 16px;
    background-color: var(--bg-light);
    color: var(--text-light);
    transition: all 0.3s ease;
    outline: none;
    margin-top: 10px;
    line-height: 1.5;
}

.fpl-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(12, 119, 121, 0.1);
}

.fpl-textarea-small {
    width: 100%;
    min-height: 80px;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    background-color: var(--bg-light);
    color: var(--text-light);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.fpl-textarea-small:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(12, 119, 121, 0.1);
}

.fpl-textarea-medium {
    width: 100%;
    min-height: 120px;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    background-color: var(--bg-light);
    color: var(--text-light);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.fpl-textarea-medium:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(12, 119, 121, 0.1);
}

.optional-label {
    font-size: 0.85em;
    font-weight: 400;
    color: var(--text-light-muted);
    font-style: italic;
}

.hidden {
    display: none;
}

.btn-accent {
    background: var(--accent);
    color: white;
}

.btn-accent:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow-light);
}

@media (max-width: 600px) {
    #freepromptlab-container {
        padding: 15px;
        margin: 20px auto;
    }

    .fpl-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .fpl-header h1 {
        font-size: 1.8em;
    }

    .fpl-form {
        padding: 20px;
    }

    .button-group {
        grid-template-columns: 1fr;
    }

    .theme-btn {
        align-self: flex-start;
        padding: 8px 16px;
        font-size: 14px;
    }

    .theme-icon {
        font-size: 18px;
    }

    .theme-label {
        font-size: 12px;
    }
}