/* Custom styles beyond Tailwind */
.prompt-card:hover .prompt-actions {
    opacity: 1;
}

.tag:hover {
    transform: translateY(-2px);
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.fade-out {
    animation: fadeOut 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(10px); }
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Dark mode styles */
.dark body {
    background-color: #1a202c;
    color: #e2e8f0;
}

.dark .bg-white {
    background-color: #2d3748;
}

.dark .text-gray-800 {
    color: #e2e8f0;
}

.dark .text-gray-600 {
    color: #cbd5e0;
}

.dark .text-gray-500 {
    color: #a0aec0;
}

.dark .border-gray-300 {
    border-color: #4a5568;
}

.dark .bg-gray-50 {
    background-color: #1a202c;
}

.dark .bg-gray-100 {
    background-color: #2d3748;
}

.dark .text-gray-700 {
    color: #e2e8f0;
}

.dark input,
.dark textarea,
.dark select { /* Added select for dark mode styling */
    color: #e2e8f0; /* Light text color */
    background-color: #2d3748; /* Dark background color */
    border-color: #4a5568; /* Dark border color */
}

.dark .hover\:bg-gray-100:hover {
    background-color: #4a5568;
}

.dark .hover\:bg-gray-200:hover {
    background-color: #4a5568;
}

/* Prompt detail page styles */
.prompt-detail-content {
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.dark .prompt-detail-content {
    background-color: #2d3748;
    border-color: #4a5568;
}

/* Settings page styles */
.settings-section {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.dark .settings-section {
    border-color: #4a5568;
}

.settings-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #4f46e5;
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* About page styles */
.feature-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.dark .feature-card {
    border-color: #4a5568;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .prompt-card {
        margin-bottom: 1rem;
    }
    
    .prompt-actions {
        opacity: 1;
    }
}