/* Modern User Dashboard Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #e2e8f0;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Dashboard Wrapper - Flex Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1e293b, #334155);
    border-right: 3px solid #f97316;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

/* Sidebar Header */
.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid #475569;
}

.brand-logo h1 {
    color: #f97316;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 1rem;
}

.user-email {
    font-size: 0.875rem;
    color: #94a3b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
}

.nav-link:hover {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border-left-color: #f97316;
}

.nav-link.active {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
    border-left-color: #f97316;
    font-weight: 600;
}

.nav-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid #475569;
}

.btn-logout {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.btn-logout:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    max-width: calc(100vw - 280px);
    overflow-x: auto;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Content Headers */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #334155;
}

.content-header h1 {
    color: #f97316;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.content-subtitle {
    color: #94a3b8;
    font-size: 1.125rem;
    margin-top: 0.5rem;
}

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

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 2px solid #475569;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #ea580c);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    border-color: #f97316;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.2);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f97316;
    line-height: 1;
    margin-bottom: 0.5rem;
}

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

/* Section Cards */
.section-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 2px solid #475569;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.section-card:hover {
    border-color: #f97316;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.1);
}

.section-card h3 {
    color: #f97316;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.section-card p {
    color: #94a3b8;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.extension-info {
    color: #10b981;
    font-weight: 500;
}

/* Prompts Grid */
.prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.prompt-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 2px solid #475569;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.prompt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f97316, #ea580c);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prompt-card:hover {
    border-color: #f97316;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.2);
}

.prompt-card:hover::before {
    opacity: 1;
}

/* No Data State */
.no-data {
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
    grid-column: 1 / -1;
}

.no-data-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-data h3 {
    color: #e2e8f0;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.no-data p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Settings Styles */
.settings-container {
    display: grid;
    gap: 2rem;
    max-width: 800px;
}

.settings-section {
    margin-bottom: 2rem;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 1rem;
}

.form-input {
    padding: 0.875rem 1rem;
    background: rgba(15, 23, 42, 0.5);
    border: 2px solid #475569;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-input[readonly] {
    background: rgba(15, 23, 42, 0.3);
    color: #94a3b8;
    cursor: not-allowed;
}

.form-help {
    color: #94a3b8;
    font-size: 0.875rem;
    font-style: italic;
}

/* Subscription Styles */
.subscription-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.current-plan {
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    border: 1px solid #475569;
}

.plan-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.plan-free {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.plan-benefits h4 {
    color: #f97316;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.benefits-list li {
    padding: 0.5rem 0;
    color: #94a3b8;
    font-size: 1rem;
}

.btn-upgrade {
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    padding: 1rem 2rem !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ea580c, #dc2626);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #94a3b8;
    border: 2px solid #475569;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: #f97316;
    color: #f97316;
    background: rgba(249, 115, 22, 0.1);
}

/* Filter and Search Styles */
.filter-select, .search-input {
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.5);
    border: 2px solid #475569;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 1rem;
    transition: all 0.3s ease;
	appearance: none;
	background-color: #0f172a;
}

.filter-select:focus, .search-input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.filter-select option {
	background-color: #0b1220;
	color: #e2e8f0;
}

/* Support the alternate reusable category component if used */
.category-select {
	padding: 0.5rem 1rem;
	background: #0f172a;
	border: 1px solid #334155;
	border-radius: 8px;
	color: #e2e8f0;
}
.category-select option {
	background: #0b1220;
	color: #e2e8f0;
}
.search-input {
    min-width: 250px;
}

/* Loading Skeleton Styles */
.loading-skeleton {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.skeleton-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 2px solid #475569;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.skeleton-icon {
    width: 80px;
    height: 80px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skeleton-number {
    height: 2.5rem;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 4px;
    width: 60%;
}

.skeleton-label {
    height: 1rem;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 4px;
    width: 80%;
}

.skeleton-prompt-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 2px solid #475569;
    border-radius: 16px;
    padding: 1.5rem;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.skeleton-prompt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(148, 163, 184, 0.1),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Loading State Management */
body.loading .loading-skeleton {
    display: block;
}

body:not(.loading) .loading-skeleton {
    display: none;
}

/* Progress bars for stat cards */
.stat-progress {
    width: 100%;
    height: 6px;
    background: rgba(71, 85, 105, 0.3);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.progress-bar.warning {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.progress-bar.danger {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* Empty state styles */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #e2e8f0;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Context info styles - Fixed layout issues */
.context-info {
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow: hidden;
}

.context-name {
    font-weight: 600;
    color: #60a5fa;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.context-type {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-top: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subscription-status {
    font-size: 0.875rem;
    color: #10b981;
    margin-top: 0.5rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Filters section styles */
.filters-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.filters-section .filter-select,
.filters-section .search-input {
    min-width: 200px;
}

/* Error and loading states */
.error-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #ef4444;
    grid-column: 1 / -1;
}

.error-state h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.main-content-area {
    width: 100%;
    overflow: hidden;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

/* Ensure modal content is centered even with scrolling */
.modal::before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 2px solid #475569;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #475569;
}

.modal-header h2 {
    color: #f97316;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.modal-body {
    padding: 2rem;
}

/* Fix for change plan modal positioning */
#change-plan-modal {
    align-items: center !important;
    justify-content: center !important;
}

#change-plan-modal .modal-content {
    margin: auto;
    position: relative;
    top: auto;
    transform: none;
}

.guide-step {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #475569;
}

.guide-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.guide-step h3 {
    color: #f97316;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.guide-step p {
    color: #94a3b8;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.guide-step a {
    color: #f97316;
    text-decoration: none;
}

.guide-step a:hover {
    text-decoration: underline;
}

/* Notification Styles */
.notification-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease-out;
    max-width: 400px;
}

.notification-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.notification-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notification-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .prompts-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 3px solid #f97316;
    }
    
    .main-content {
        margin-left: 0;
        max-width: 100%;
        padding: 1rem;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .content-header h1 {
        font-size: 2rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .prompts-grid {
        grid-template-columns: 1fr;
    }
    
    .search-input {
        min-width: 200px;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-link {
        justify-content: flex-start;
        text-align: left;
        padding: 0.75rem 1rem;
    }
    
    .nav-text {
        display: inline;
        font-size: 0.9rem;
    }
    
    .sidebar {
        width: 220px;
    }
    
    .main-content {
        margin-left: 220px;
        max-width: calc(100vw - 220px);
    }
}

@media (max-width: 480px) {
    .sidebar-header {
        padding: 1rem;
    }
    
    .main-content {
        padding: 0.5rem;
    }
    
    .section-card {
        padding: 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
}

/* Prompt card improvements */
.prompt-title-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.prompt-id {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    background: rgba(100, 116, 139, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    align-self: flex-start;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

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

.btn-icon {
    background: none;
    border: 1px solid #475569;
    color: #94a3b8;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn-icon:hover {
    background: rgba(249, 115, 22, 0.1);
    border-color: #f97316;
    color: #f97316;
}

.prompt-visibility {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.visibility-private {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.visibility-public {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.visibility-boss_verified {
    background: rgba(168, 85, 247, 0.1);
    color: #7c3aed;
}

.prompt-teaser {
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.prompt-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.prompt-owner {
    color: #94a3b8;
}

.prompt-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

/* Account Settings Styles */
.settings-section {
    background: rgba(71, 85, 105, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.settings-section h2 {
    color: #f1f5f9;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #f1f5f9;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #475569;
    border-radius: 6px;
    background: #334155;
    color: #f1f5f9;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-group input[readonly] {
    background: rgba(71, 85, 105, 0.5);
    color: #94a3b8;
    cursor: not-allowed;
}

.form-note {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #475569;
}

.subscription-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.plan-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.plan-header h3 {
    color: #f1f5f9;
    margin: 0;
    font-size: 1.125rem;
}

.plan-badge.free {
    background: rgba(71, 85, 105, 0.3);
    color: #94a3b8;
}

.plan-badge.pro {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.plan-badge.unlimited {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
}

.plan-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.plan-feature {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feature-label {
    color: #94a3b8;
    font-size: 0.875rem;
}

.feature-value {
    color: #f1f5f9;
    font-weight: 500;
    font-size: 0.875rem;
}

.plan-actions {
    display: flex;
    gap: 1rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.btn-secondary.danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
}

.btn-secondary.danger:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    border-color: #991b1b;
}

/* Prompt card action buttons */
.prompt-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1rem;
}

.btn-action {
    padding: 0.5rem 1rem;
    border: 1px solid #475569;
    background: transparent;
    color: #94a3b8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-action:hover {
    border-color: #f97316;
    color: #f97316;
    background: rgba(249, 115, 22, 0.1);
}

.btn-action.edit {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-color: #60a5fa;
}

.btn-action.edit:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.btn-action.favorite {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border-color: #f97316;
}

.btn-action.favorite:hover {
    background: rgba(249, 115, 22, 0.2);
}

.btn-action.favorite.active {
    background: rgba(249, 115, 22, 0.2);
    color: #ea580c;
    border-color: #ea580c;
}

/* Empty states */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
}

.empty-state h3 {
    color: #94a3b8;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.empty-state p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* Filter sections */
.filters-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.filters-section .filter-select,
.filters-section .search-input {
    min-width: 200px;
}

/* Loading states */
.loading-skeleton {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #94a3b8;
    font-size: 1.125rem;
}

/* Team Management Styles */
.teams-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
}

.teams-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-description {
    color: #94a3b8;
    font-size: 0.875rem;
    margin: 0;
}

.teams-list {
    display: grid;
    gap: 1rem;
}

.team-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.team-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(249, 115, 22, 0.3);
    transform: translateY(-1px);
}

.team-info {
    flex: 1;
}

.team-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.team-name {
    color: #f1f5f9;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.team-role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.team-role-badge.owner {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.team-role-badge.admin {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.team-role-badge.member {
    background: rgba(100, 116, 139, 0.3);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.5);
}

.team-stats {
    display: flex;
    gap: 1.5rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

.team-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-secondary.small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-width: auto;
}

.empty-teams-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}

.empty-teams-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-teams-state h3 {
    color: #f1f5f9;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.empty-teams-state p {
    color: #94a3b8;
    font-size: 0.875rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Context Switcher Improvements */
.context-selector-compact {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #f1f5f9;
    padding: 0.75rem;
    width: 100%;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.context-selector-compact:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(249, 115, 22, 0.3);
}

.context-selector-compact:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.context-selector-compact option {
    background: #1e293b;
    color: #f1f5f9;
    padding: 0.5rem;
}

/* Team Context Indicators */
.context-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.context-indicator.personal {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.context-indicator.team {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

/* Prompt Owner Indicators */
.prompt-owner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.prompt-owner.personal {
    background: rgba(100, 116, 139, 0.1);
    border-color: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
}

.prompt-owner.team {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.2);
    color: #f97316;
}

/* Responsive Design for Teams */
@media (max-width: 768px) {
    .teams-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .team-card {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .team-actions {
        justify-content: center;
    }
    
    .team-stats {
        justify-content: center;
    }
}

/* Enhanced Modern Prompt Card Styles */
.modern-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 2px solid #475569;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #ea580c);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-card:hover {
    border-color: #f97316;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.2);
}

.modern-card:hover::before {
    opacity: 1;
}

/* Universal Prompt Card Styling - Apply to all prompt cards */
.prompt-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 2px solid #475569;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.prompt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #ea580c);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prompt-card:hover {
    border-color: #f97316;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.2);
}

.prompt-card:hover::before {
    opacity: 1;
}

/* Enhanced prompt header with better layout */
.prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.prompt-title {
    color: #e2e8f0;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Prompt actions with improved styling */
.prompt-actions {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-wrap: wrap;
    align-items: flex-start;
}

.prompt-card:hover .prompt-actions {
    opacity: 1;
}

/* Better action buttons */
.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    position: relative;
}

.btn-icon:hover {
    background: rgba(249, 115, 22, 0.2);
    transform: scale(1.1);
}

.btn-icon.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.btn-icon.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.btn-icon.btn-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.btn-icon.btn-success:hover {
    background: rgba(34, 197, 94, 0.2);
}

.btn-icon.btn-favorite {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.btn-icon.btn-favorite:hover {
    background: rgba(251, 191, 36, 0.2);
}

.btn-icon.btn-favorite.favorited {
    background: rgba(251, 191, 36, 0.2);
    color: #f59e0b;
}

/* Enhanced prompt content */
.prompt-teaser {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.prompt-description {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Enhanced prompt meta information */
.prompt-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #475569;
    gap: 1rem;
    flex-wrap: wrap;
}

.prompt-owner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.prompt-owner.personal {
    background: rgba(100, 116, 139, 0.1);
    border-color: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
}

.prompt-owner.team {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.2);
    color: #f97316;
}

.prompt-owner.public {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

/* Enhanced visibility badges */
.prompt-visibility {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.visibility-private, .prompt-visibility.private {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.visibility-public, .prompt-visibility.public {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.visibility-team, .prompt-visibility.team {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Enhanced prompt statistics */
.prompt-stats {
    display: flex;
    gap: 1rem;
    color: #64748b;
    font-size: 0.75rem;
    align-items: center;
}

.prompt-stats > span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Role-based card accents */
.prompt-card[data-role="team_owner"]::before {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.prompt-card[data-role="team_admin"]::before {
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

.prompt-card[data-role="creator"]::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.prompt-card[data-role="team_member"]::before {
    background: linear-gradient(90deg, #6366f1, #4f46e5);
}

.prompt-card[data-role="owner"]::before {
    background: linear-gradient(90deg, #f97316, #ea580c);
}

/* Enhanced team prompt cards */
.team-prompt-card {
    border-left: 4px solid #a855f7;
}

.team-prompt-card .prompt-owner {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.2);
    color: #c084fc;
}

/* Read-only indicator for team members */
.read-only-badge {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6rem;
    margin-left: 0.5rem;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

/* Enhanced author display */
.prompt-author {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Enhanced category display */
.prompt-category {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Enhanced prompt ID display */
.prompt-id {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.7;
}

/* Enhanced action buttons in footer */
.btn-action {
    padding: 0.5rem 1rem;
    border: 1px solid #475569;
    background: transparent;
    color: #94a3b8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-action:hover {
    border-color: #f97316;
    color: #f97316;
    background: rgba(249, 115, 22, 0.1);
    transform: translateY(-1px);
}

.btn-action.use {
    background: rgba(249, 115, 22, 0.1);
    border-color: #f97316;
    color: #f97316;
}

.btn-action.use:hover {
    background: rgba(249, 115, 22, 0.2);
    transform: translateY(-1px) scale(1.05);
}

/* FontAwesome icons styling */
.fas, .fa {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome", sans-serif;
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fallback icons if FontAwesome is not loaded */
.btn-icon i.fas.fa-star::before,
.btn-icon i.fa-star::before {
    content: "⭐";
    font-family: inherit;
    font-weight: normal;
}

.btn-icon i.fas.fa-edit::before,
.btn-icon i.fa-edit::before {
    content: "✏️";
    font-family: inherit;
    font-weight: normal;
}

.btn-icon i.fas.fa-trash::before,
.btn-icon i.fa-trash::before {
    content: "🗑️";
    font-family: inherit;
    font-weight: normal;
}

.btn-icon i.fas.fa-play::before,
.btn-icon i.fa-play::before {
    content: "▶️";
    font-family: inherit;
    font-weight: normal;
}

.prompt-stats i.fas.fa-user::before,
.prompt-stats i.fa-user::before {
    content: "👤";
    font-family: inherit;
    font-weight: normal;
}

.prompt-stats i.fas.fa-calendar::before,
.prompt-stats i.fa-calendar::before {
    content: "📅";
    font-family: inherit;
    font-weight: normal;
}

.prompt-stats i.fas.fa-eye::before,
.prompt-stats i.fa-eye::before {
    content: "👁️";
    font-family: inherit;
    font-weight: normal;
}

.prompt-stats i.fas.fa-folder::before,
.prompt-stats i.fa-folder::before {
    content: "📁";
    font-family: inherit;
    font-weight: normal;
}

.prompt-visibility i.fas.fa-users::before,
.prompt-visibility i.fa-users::before {
    content: "👥";
    font-family: inherit;
    font-weight: normal;
}

.prompt-visibility i.fas.fa-globe::before,
.prompt-visibility i.fa-globe::before {
    content: "🌐";
    font-family: inherit;
    font-weight: normal;
}

.prompt-visibility i.fas.fa-lock::before,
.prompt-visibility i.fa-lock::before {
    content: "🔒";
    font-family: inherit;
    font-weight: normal;
}

/* Animation for new cards */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.prompt-card.new-card {
    animation: slideInUp 0.4s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .prompt-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .prompt-actions {
        opacity: 1;
        justify-self: flex-end;
    }
    
    .prompt-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Most Used Prompts Styles */
.most-used-prompts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.most-used-prompt-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #475569;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.most-used-prompt-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: #10b981;
}

.prompt-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.prompt-details {
    flex: 1;
    min-width: 0;
}

.prompt-title {
    color: #f1f5f9;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.prompt-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.prompt-category {
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.prompt-separator {
    color: #64748b;
    font-size: 0.75rem;
}

.prompt-author,
.prompt-uses {
    color: #94a3b8;
    font-size: 0.75rem;
}

.prompt-description {
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prompt-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.rating-stars {
    color: #fbbf24;
    font-size: 0.875rem;
    line-height: 1;
}

.rating-score {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Empty state for most used prompts */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-message {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

.empty-submessage {
    font-size: 0.875rem;
    color: #64748b;
}

/* Responsive design for most used prompts */
@media (max-width: 768px) {
    .most-used-prompt-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .prompt-rating {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }
    
    .most-used-prompt-item .prompt-meta {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
}

/* ===== ENHANCED UI STYLES FOR BETTER DESIGN ===== */

/* Enhanced Section Styles */
/* Full Width Grid for Most Used Prompts - same as other pages */
.full-width-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    padding: 0;
    margin: 0;
}

/* Simple Grid for Most Used Prompts */
.simple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.simple-card {
    background: linear-gradient(135deg, #2a2a2a, #1e1e1e);
    border: 1px solid var(--border-color, #374151);
    border-radius: 12px;
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.simple-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Remove blinking animation from all cards */
.prompt-card,
.simple-card,
.enhanced-card {
    animation: none !important;
}

.content-section {
    background: var(--card-background, #1e293b);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color, #374151);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.content-section:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1px solid var(--border-color, #374151);
    padding-bottom: 16px;
}

.section-header h3 {
    color: var(--text-color, #e2e8f0);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-secondary, #94a3b8);
    font-size: 0.9rem;
    margin-left: 8px;
    font-weight: normal;
}

.section-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* Enhanced Input Styles */
.enhanced-select, .enhanced-input {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border: 1px solid var(--border-color, #374151);
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--text-color, #e2e8f0);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.enhanced-select:focus, .enhanced-input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    right: 12px;
    color: var(--text-secondary, #94a3b8);
    pointer-events: none;
    font-size: 0.9rem;
}

.enhanced-input {
    padding-right: 40px;
    min-width: 200px;
}

/* Enhanced Grid Styles */
.enhanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Enhanced Card Styles */
.enhanced-card {
    background: linear-gradient(135deg, #2a2a2a, #1e1e1e);
    border: 1px solid var(--border-color, #374151);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.enhanced-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f97316, #ea580c);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.enhanced-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    border-color: #f97316;
}

.enhanced-card:hover::before {
    transform: scaleX(1);
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.card-header .prompt-title {
    color: #f1f5f9;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
}

.card-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Action Buttons */
.favorite-btn, .menu-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.favorite-btn:hover, .menu-btn:hover {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    transform: scale(1.1);
}

.favorite-btn.favorited {
    color: #fbbf24;
}

/* Card Tags */
.card-tags {
    margin-bottom: 12px;
    min-height: 24px;
}

.prompt-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid;
}

.featured-tag {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
}

.public-tag {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.private-tag {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.verified-tag {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.mine-tag {
    color: #f97316;
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
}

/* Card Content */
.card-content {
    margin-bottom: 16px;
}

.card-content .prompt-description {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Card Metadata */
.card-metadata {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.metadata-left {
    display: flex;
    gap: 16px;
    align-items: center;
}

.uses-count, .rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #94a3b8;
    font-size: 0.85rem;
}

.rating .stars {
    color: #fbbf24;
    font-size: 0.8rem;
}

.rating-score {
    color: #e2e8f0;
    font-weight: 500;
}

.category-tag {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Card Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color, #374151);
    gap: 12px;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.author-name {
    color: #94a3b8;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.created-date {
    color: #64748b;
    font-size: 0.75rem;
}

.primary-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.primary-btn:hover {
    background: linear-gradient(135deg, #ea580c, #dc2626);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
}

.primary-btn:active {
    transform: translateY(0);
}

/* Enhanced Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #94a3b8;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-message {
    font-size: 1.1rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.empty-submessage {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Responsive Design for Enhanced UI */
@media (max-width: 768px) {
    .enhanced-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .section-controls {
        justify-content: stretch;
        flex-direction: column;
    }
    
    .enhanced-input {
        min-width: 100%;
    }
    
    .card-metadata {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .author-info {
        text-align: center;
    }
}

/* Additional hover effects and animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.enhanced-card {
    animation: fadeInUp 0.3s ease;
}

.enhanced-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.enhanced-card:nth-child(even) {
    animation-delay: 0.2s;
}