/* Base styles and layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Arial, sans-serif;
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.6;
}

/* Improved Header */
.dashboard-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-bottom: 1px solid #334155;
    padding: 1rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.header-title {
    font-size: 2rem;
    margin: 0;
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-icon {
    font-size: 2.25rem;
}

.header-subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 400;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #f1f5f9;
}

h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: #f1f5f9;
}

h3 {
    font-size: 1.25rem;
    margin: 1rem 0 0.5rem;
    color: #f1f5f9;
}

/* Enhanced Sections */
.prompts-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0;
    min-height: 2.5rem;
}

.section-title {
    font-size: 1.75rem;
    margin: 0;
    color: #f1f5f9;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-icon {
    font-size: 1.75rem;
}

.section-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.section-description {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.4;
}

/* Enhanced Filters */
.filters-bar {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-container {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid #334155;
    border-radius: 8px;
    background: #1e293b;
    color: #f1f5f9;
    font-size: 0.9rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-label {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.sort-select {
    padding: 0.75rem 1rem;
    border: 2px solid #334155;
    border-radius: 8px;
    background: #1e293b;
    color: #f1f5f9;
    font-size: 0.9rem;
    min-width: 180px;
    transition: border-color 0.3s;
}

.sort-select:focus {
    outline: none;
    border-color: #0ea5e9;
}

/* Loading and empty states */
.loading {
    text-align: center;
    padding: 2rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* General select styling */
select {
    background: #1e293b;
    border: 1px solid #334155;
    color: #f1f5f9;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Light mode select styling */
body.light-mode select {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #1e293b;
}

body.light-mode select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
