:root {
    --primary-color: #FF4D4D;
    --secondary-color: #333333;
    --background-color: #f5f5f5;
    --gradient-bg: linear-gradient(135deg, #FF4D4D 0%, #FF6B6B 100%);
    --font-primary: 'Nunito', sans-serif;
    --font-secondary: 'DM Sans', sans-serif;
    --font-tertiary: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-tertiary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #FEC800;
    color: var(--secondary-color);
}

.layout {
    display: flex;
    flex-direction: row;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.container {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 50px;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); */
}

.sidebar {
    width: 250px;
    background: white;
    padding: 20px 40px 30px 40px;
    border-radius: 50px;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); */
    align-self: flex-start;
    position: sticky;
    top: 20px;
}

h1 {
    font-family: var(--font-tertiary);
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-align: center;
    color: var(--secondary-color);
}

@media only screen and (max-width: 768px) {
    h1 {
        text-align: left;
    }
}

h2 {
    font-family: var(--font-tertiary);
    text-transform: uppercase;
}

.setting-group {
    margin-bottom: 20px;
}


label {
    font-family: var(--font-tertiary);
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #444;
}

select, input, textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 15px;
    font-family: var(--font-tertiary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

select:focus, input:focus, textarea:focus {
    border-color: black !important;
    box-shadow: none !important;
}

select:focus, input:focus, textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.1);
}

.multi-select {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 15px;
    border: none;
}

.multi-select label {
    font-weight: normal;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

button {
    background: black;
    color: white;
    border: none;
    padding: 16px 26px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-tertiary);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.3);
}

.saved-prompts-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.saved-prompts-list::-webkit-scrollbar {
    width: 8px;
}

.saved-prompts-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.saved-prompts-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.saved-prompts-list::-webkit-scrollbar-thumb:hover {
    background: #ff3333;
}

.prompt-actions button {
    padding: 6px 12px;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .layout {
        flex-direction: column-reverse;
    }
    
    .sidebar {
        width: auto;
        position: relative;
        top: 0;
        margin-top: 20px;
    }
}

.prompt-settings {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.prompt-text {
    font-size: 0.8rem;
    margin-bottom: 4px;
    line-height: 1.3;
}

.prompt-timestamp {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 6px;
}

.prompt-actions {
    display: flex;
    gap: 6px;
    padding-bottom: 10px;
}

.use-prompt {
    background: black;
}

.delete-prompt {
    background: #666;
}

.use-prompt:hover, .delete-prompt:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.requirements-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    padding: 10px;
    background: #f4f4f4;
    border-radius: 15px;
    border: none;
}

.requirements-checkboxes label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    font-size: 1rem;
    cursor: pointer;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

#context {
    min-height: 80px;
}

.output-section {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 15px;
    margin-top: 30px;
    border: none;
}

.output-section h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.prompt-output-wrapper {
    position: relative;
    width: 100%;
}

#promptOutput {
    width: calc(100% - 40px);
    min-height: 200px;
    font-size: 1rem;
    line-height: 1.5;
    padding: 15px;
    background: white;
    border: 2px solid #eee;
    border-radius: 8px;
    resize: vertical;
    font-family: var(--font-tertiary);
}

#promptOutput:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.1);
}

.copy-button {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px;
    background: white;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.copy-button:hover {
    background: #f5f5f5;
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.copy-button svg {
    width: 14px;
    height: 14px;
    stroke: #666;
}

.copy-button.copied {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.copy-button.copied svg {
    stroke: white;
}

#promptLength {
    margin: 10px 0;
    font-size: 0.9rem;
    color: #666;
}

#length, #exclude, #context, #subject {
    width: 97%
}

@media only screen and (max-width: 768px) {
    #length, #exclude, #context, #subject {
        width: 90%
    }
}

.button-group {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--gradient-bg);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
} 

::placeholder {
    color: #333;
}

