styles.css•6.83 kB
/* Reset and base styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f5f5f5;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* Navigation */
.navbar {
background: white;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
padding: 1rem 0;
}
.nav-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
.nav-title {
color: #2563eb;
font-size: 1.5rem;
font-weight: bold;
}
.nav-auth, .nav-user {
display: flex;
align-items: center;
gap: 1rem;
}
/* Buttons */
.btn {
padding: 0.5rem 1rem;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 0.9rem;
font-weight: 500;
transition: all 0.2s;
}
.btn-primary {
background: #2563eb;
color: white;
}
.btn-primary:hover {
background: #1d4ed8;
}
.btn-secondary {
background: #f3f4f6;
color: #374151;
border: 1px solid #d1d5db;
}
.btn-secondary:hover {
background: #e5e7eb;
}
.btn-large {
padding: 0.75rem 2rem;
font-size: 1.1rem;
}
/* Hero Section */
.hero {
text-align: center;
padding: 4rem 0;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
margin-top: 2rem;
border-radius: 12px;
}
.hero h2 {
font-size: 2.5rem;
margin-bottom: 1rem;
}
.hero p {
font-size: 1.2rem;
margin-bottom: 2rem;
opacity: 0.9;
}
.hero-features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin: 3rem 0;
text-align: left;
}
.feature {
background: rgba(255, 255, 255, 0.1);
padding: 1.5rem;
border-radius: 8px;
backdrop-filter: blur(10px);
}
.feature h3 {
margin-bottom: 0.5rem;
}
/* Dashboard */
.dashboard-header {
display: flex;
justify-content: space-between;
align-items: center;
margin: 2rem 0;
padding-bottom: 1rem;
border-bottom: 2px solid #e5e7eb;
}
.subscription-status {
padding: 0.5rem 1rem;
border-radius: 20px;
font-weight: 500;
}
.subscription-status.free {
background: #fef3c7;
color: #92400e;
}
.subscription-status.premium {
background: #dbeafe;
color: #1e40af;
}
.dashboard-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
gap: 2rem;
margin-top: 2rem;
}
.dashboard-card {
background: white;
padding: 1.5rem;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.dashboard-card h3 {
margin-bottom: 1rem;
color: #1f2937;
}
/* Forms */
.form-group {
margin-bottom: 1rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
}
.form-group input,
.form-group textarea,
.form-group select {
width: 100%;
padding: 0.5rem;
border: 1px solid #d1d5db;
border-radius: 4px;
font-size: 1rem;
}
.form-group textarea {
resize: vertical;
font-family: inherit;
}
.checkbox-label {
display: flex;
align-items: center;
gap: 0.5rem;
cursor: pointer;
}
/* Search bar */
.search-bar {
display: flex;
gap: 1rem;
margin-bottom: 1rem;
}
.search-bar input {
flex: 1;
padding: 0.5rem;
border: 1px solid #d1d5db;
border-radius: 4px;
}
/* Prompts list */
.prompt-item {
padding: 1rem;
border: 1px solid #e5e7eb;
border-radius: 6px;
margin-bottom: 0.5rem;
background: #f9fafb;
}
.prompt-item h4 {
margin-bottom: 0.5rem;
color: #1f2937;
}
.prompt-item .prompt-meta {
font-size: 0.8rem;
color: #6b7280;
margin-bottom: 0.5rem;
}
.prompt-item .prompt-actions {
display: flex;
gap: 0.5rem;
}
/* Slash commands */
.slash-commands {
margin-bottom: 1rem;
}
#commandSuggestions {
max-height: 200px;
overflow-y: auto;
border: 1px solid #d1d5db;
border-radius: 4px;
margin: 0.5rem 0;
}
.command-suggestion {
padding: 0.5rem;
cursor: pointer;
border-bottom: 1px solid #e5e7eb;
}
.command-suggestion:hover {
background: #f3f4f6;
}
#commandResult {
margin-top: 1rem;
padding: 1rem;
background: #f9fafb;
border-radius: 4px;
border-left: 4px solid #2563eb;
}
/* Pricing */
.pricing-plans {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1rem;
margin-top: 1rem;
}
.pricing-plan {
border: 1px solid #d1d5db;
border-radius: 8px;
padding: 1.5rem;
text-align: center;
}
.pricing-plan.premium {
border-color: #2563eb;
background: #f0f9ff;
}
.pricing-plan .price {
font-size: 2rem;
font-weight: bold;
margin: 1rem 0;
}
.pricing-plan .features {
text-align: left;
margin: 1rem 0;
}
.pricing-plan .features li {
margin-bottom: 0.5rem;
}
/* Modal */
.modal {
display: block;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.5);
}
.modal-content {
background-color: white;
margin: 5% auto;
padding: 2rem;
border-radius: 8px;
width: 90%;
max-width: 500px;
position: relative;
}
.large-modal {
max-width: 800px;
}
.close {
position: absolute;
right: 1rem;
top: 1rem;
font-size: 2rem;
cursor: pointer;
color: #6b7280;
}
.close:hover {
color: #374151;
}
/* Auth forms */
.auth-form {
max-width: 400px;
margin: 0 auto;
}
.auth-form h3 {
margin-bottom: 1.5rem;
text-align: center;
}
.auth-tabs {
display: flex;
margin-bottom: 1.5rem;
}
.auth-tab {
flex: 1;
padding: 0.5rem;
background: #f3f4f6;
border: none;
cursor: pointer;
font-weight: 500;
}
.auth-tab.active {
background: #2563eb;
color: white;
}
/* Loading and messages */
.loading {
text-align: center;
padding: 2rem;
color: #6b7280;
}
.error-message {
background: #fef2f2;
color: #dc2626;
padding: 0.5rem;
border-radius: 4px;
margin-bottom: 1rem;
border-left: 4px solid #dc2626;
}
.success-message {
background: #f0fdf4;
color: #16a34a;
padding: 0.5rem;
border-radius: 4px;
margin-bottom: 1rem;
border-left: 4px solid #16a34a;
}
/* Responsive */
@media (max-width: 768px) {
.nav-container {
flex-direction: column;
gap: 1rem;
}
.dashboard-grid {
grid-template-columns: 1fr;
}
.hero-features {
grid-template-columns: 1fr;
}
.search-bar {
flex-direction: column;
}
.dashboard-header {
flex-direction: column;
align-items: flex-start;
gap: 1rem;
}
}