/* Admin Page Styles */
.admin-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.admin-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .admin-content {
        grid-template-columns: 1fr;
    }
}

.admin-form-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.admin-form-container h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.submit-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.submit-button:hover {
    background-color: #45a049;
}

.message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    display: none;
}

.message.success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
    display: block;
}

.message.error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
    display: block;
}

/* Navigation */
.nav-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav-link:hover {
    background-color: rgba(76, 175, 80, 0.1);
}

/* Responsive adjustments */
/* Prompts List Styles */
.prompts-list-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.search-container {
    margin-bottom: 1.5rem;
}

.search-container input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.prompt-item {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.prompt-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.prompt-item h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.prompt-content {
    color: #555;
    margin-bottom: 1rem;
    white-space: pre-wrap;
    background: #f9f9f9;
    padding: 0.75rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
    max-height: 150px;
    overflow-y: auto;
}

.prompt-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.edit-button,
.delete-button,
.cancel-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
}

.edit-button {
    background-color: #2196F3;
    color: white;
}

.edit-button:hover {
    background-color: #0b7dda;
}

.delete-button {
    background-color: #f44336;
    color: white;
}

.delete-button:hover {
    background-color: #d32f2f;
}

.cancel-button {
    background-color: #9e9e9e;
    color: white;
}

.cancel-button:hover {
    background-color: #757575;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .admin-form-container {
        position: static;
    }
}

@media (max-width: 600px) {
    .admin-form-container,
    .prompts-list-container {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .submit-button,
    .cancel-button {
        width: 100%;
        padding: 0.75rem;
    }
    
    .prompt-actions {
        flex-direction: column;
    }
    
    .edit-button,
    .delete-button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}
