RewardApp / css /style.css
Mhdeusi's picture
Create style.css
6262321 verified
:root {
--primary-color: #667eea;
--secondary-color: #764ba2;
--success-color: #48bb78;
--danger-color: #f56565;
--warning-color: #ed8936;
--info-color: #4299e1;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Iran Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
direction: rtl;
background: #f7fafc;
color: #2d3748;
line-height: 1.6;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* استایل‌های هدر */
.header {
background: white;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
position: sticky;
top: 0;
z-index: 1000;
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 0;
}
.logo {
font-size: 1.5rem;
font-weight: bold;
color: var(--primary-color);
}
/* استایل‌های دکمه */
.btn {
padding: 10px 20px;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 14px;
font-weight: 600;
transition: all 0.3s ease;
text-decoration: none;
display: inline-block;
text-align: center;
}
.btn-primary {
background: var(--primary-color);
color: white;
}
.btn-primary:hover {
background: #5a67d8;
transform: translateY(-2px);
}
.btn-secondary {
background: #e2e8f0;
color: #4a5568;
}
.btn-outline {
background: transparent;
border: 2px solid var(--primary-color);
color: var(--primary-color);
}
/* استایل‌های کارت */
.card {
background: white;
border-radius: 12px;
padding: 24px;
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
margin-bottom: 20px;
}
/* استایل‌های فرم */
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
margin-bottom: 8px;
font-weight: 600;
color: #4a5568;
}
.form-group input,
.form-group textarea,
.form-group select {
width: 100%;
padding: 12px 16px;
border: 2px solid #e2e8f0;
border-radius: 8px;
font-size: 16px;
transition: all 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
/* استایل‌های ناوبری */
.day-navigation {
display: flex;
gap: 10px;
margin: 20px 0;
flex-wrap: wrap;
}
.day-btn {
padding: 10px 20px;
border: 2px solid #e2e8f0;
background: white;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
}
.day-btn.active {
background: var(--primary-color);
color: white;
border-color: var(--primary-color);
}
.day-btn:hover:not(.active) {
border-color: var(--primary-color);
color: var(--primary-color);
}
/* استایل‌های نوتیفیکیشن */
.notification {
position: fixed;
top: 20px;
left: 20px;
right: 20px;
background: white;
border-radius: 8px;
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
z-index: 10000;
border-right: 4px solid var(--primary-color);
}
.notification.error {
border-right-color: var(--danger-color);
}
.notification.success {
border-right-color: var(--success-color);
}
.notification-content {
padding: 15px 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
/* استایل‌های وضعیت پیشرفت */
.progress-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 15px;
margin-bottom: 20px;
}
.stat-card {
background: white;
padding: 20px;
border-radius: 12px;
text-align: center;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.stat-value {
font-size: 2rem;
font-weight: bold;
color: var(--primary-color);
margin-bottom: 5px;
}
.stat-label {
color: #718096;
font-size: 14px;
}
/* استایل‌های محتوای آموزشی */
.lesson-container,
.quiz-container,
.exercise-container {
background: white;
border-radius: 12px;
padding: 24px;
margin-bottom: 20px;
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.lesson-container h2,
.quiz-container h3,
.exercise-container h3 {
color: #2d3748;
margin-bottom: 15px;
border-bottom: 2px solid #e2e8f0;
padding-bottom: 10px;
}
.quiz-option {
margin: 10px 0;
padding: 15px;
border: 2px solid #e2e8f0;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
}
.quiz-option:hover {
border-color: var(--primary-color);
background: #f7fafc;
}
.quiz-option input[type="radio"] {
margin-left: 10px;
}
/* استایل‌های واکنش‌گرا */
@media (max-width: 768px) {
.container {
padding: 0 15px;
}
.header-content {
flex-direction: column;
gap: 15px;
}
.progress-stats {
grid-template-columns: repeat(2, 1fr);
}
.day-navigation {
justify-content: center;
}
}