/* =============================================
   فونت و تنظیمات پایه
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

:root {
    /* رنگ‌های اصلی */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --orange-500: #FF6B35;
    --orange-600: #E55A2B;
    --orange-700: #C4471F;
    --green-500: #2ECC71;
    --green-600: #27AE60;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    overflow-x: hidden;
}

/* =============================================
   استایل صفحه لاگین (index.html)
   ============================================= */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 40px 35px;
    width: 380px;
    max-width: 100%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
    transition: all 0.3s ease;
}

.login-card:hover {
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
}

.login-card h2 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-card .subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    margin-bottom: 30px;
}

.login-card input[type="text"],
.login-card input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 18px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.login-card input::placeholder {
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
}

.login-card input:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: #6c63ff;
    box-shadow: 0 0 25px rgba(108, 99, 255, 0.3);
}

.login-card button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6c63ff, #a855f7);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3);
}

.login-card button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(108, 99, 255, 0.5);
}

.login-card button:active {
    transform: scale(0.96);
}

.login-card .message {
    margin-top: 20px;
    color: #ff6b6b;
    font-size: 14px;
    min-height: 24px;
}

.login-card .message.success {
    color: #51cf66;
}

/* =============================================
   استایل پنل ادمین (admin panel)
   ============================================= */
.admin-panel {
    display: flex;
    min-height: 100vh;
}

/* ===== سایدبار ===== */
.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.12);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    background: var(--primary-gradient);
    padding: 35px 25px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.sidebar-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sidebar-header h2 {
    font-size: 1.5em;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.sidebar-header h2 i {
    font-size: 1.3em;
}

.sidebar .menu {
    list-style: none;
    padding: 25px 18px;
}

.sidebar .menu li {
    padding: 18px 22px;
    margin: 10px 0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 16px;
    color: #555;
    font-weight: 600;
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

.sidebar .menu li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
    z-index: -1;
    border-radius: 16px;
}

.sidebar .menu li:hover::before,
.sidebar .menu li.active::before {
    width: 100%;
}

.sidebar .menu li:hover,
.sidebar .menu li.active {
    color: white;
    transform: translateX(-6px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.sidebar .menu li i {
    font-size: 20px;
    width: 26px;
    text-align: center;
    transition: transform 0.3s ease;
}

.sidebar .menu li:hover i {
    transform: scale(1.15) rotate(5deg);
}

.sidebar .menu li.logout {
    background: #fff5f5;
    color: #dc3545;
    margin-top: 50px;
}

.sidebar .menu li.logout::before {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.sidebar .menu li.logout:hover {
    color: white;
}

/* ===== محتوای اصلی ===== */
.content {
    flex: 1;
    padding: 40px;
    margin-right: 280px;
    min-height: 100vh;
    transition: margin-right 0.4s ease;
}

/* ===== صفحات ===== */
.page {
    display: none;
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.page.active {
    display: block;
}

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

.page h1 {
    color: white;
    font-size: 2.2em;
    margin-bottom: 12px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 800;
}

.page h1 i {
    font-size: 1.1em;
}

.page > p {
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 35px;
    font-size: 16px;
    font-weight: 400;
}

/* ===== کارت‌های اصلی ===== */
.card {
    background: white;
    border-radius: 24px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.18);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 20px;
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
}

.card h3 {
    color: #2d3436;
    font-size: 1.5em;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 3px solid #f0f0f0;
    font-weight: 700;
}

.card h3 i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3em;
}

/* ===== گرید کارت‌های آمار ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.cards .card {
    background: white;
    border-radius: 24px;
    padding: 40px 35px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.cards .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--primary-gradient);
    transition: height 0.3s ease;
}

.cards .card:hover::before {
    height: 12px;
}

.cards .card:nth-child(2)::before {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.cards .card:nth-child(3)::before {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.cards .card h3 {
    justify-content: center;
    margin-bottom: 18px;
    border-bottom: none;
    padding-bottom: 0;
    font-size: 1.4em;
}

.cards .card p {
    color: #888;
    font-size: 14px;
    line-height: 2;
    font-weight: 400;
}

/* =============================================
   استایل فرم‌ها (مشترک)
   ============================================= */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 25px;
}

/* ===== اینپوت‌ها ===== */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 14px;
    color: #333;
    background: #f8fafc;
    outline: none;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #ffffff;
}

/* =============================================
   استایل اختصاصی کارت افزودن دوره (نارنجی-سبز)
   ============================================= */
.admin-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.06), 0 20px 60px rgba(255, 107, 53, 0.04);
    border: 1px solid rgba(255, 107, 53, 0.06);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.admin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--orange-500), var(--green-500), var(--orange-500));
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.admin-card:hover {
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.1), 0 30px 80px rgba(255, 107, 53, 0.06);
    transform: translateY(-4px);
}

/* هدر کارت */
.admin-card .card-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px dashed #FFE0C2;
    background: none;
}

.admin-card .card-header .header-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #FFF7F0, #EAFAF1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    position: relative;
}

.admin-card .card-header .header-icon i {
    font-size: 32px;
    background: linear-gradient(135deg, var(--orange-500), var(--green-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-card .card-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--orange-700);
    margin: 10px 0 8px;
    border-bottom: none;
}

.admin-card .card-header p {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* ===== فایل آپلود اختصاصی ===== */
.file-group {
    grid-column: 1 / -1;
}

.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #FFF7F0;
    border: 2px dashed #FFD4A8;
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.file-upload-wrapper:hover {
    border-color: var(--orange-400);
}

.file-label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.file-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.file-label i {
    font-size: 18px;
}

.file-name {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.file-name i {
    color: var(--green-500);
}

/* نمایش فایل */
.file-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 2px solid #FFE0C2;
    border-radius: 10px;
    padding: 6px 10px;
    flex: 1;
    animation: fadeIn 0.3s ease;
}

.preview-image {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #FFD4A8;
    flex-shrink: 0;
}

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

.file-info-name {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 5px;
}

.file-info-name i {
    color: #FF6B35;
}

.file-info-size {
    font-size: 11px;
    color: #999;
}

.file-remove-btn {
    background: none;
    border: none;
    color: #ccc;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
    flex-shrink: 0;
}

.file-remove-btn:hover {
    color: #E74C3C;
    background: #FEE;
    transform: scale(1.1);
}

.file-empty {
    font-size: 13px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 6px;
}

.file-empty i {
    color: #FFB882;
}

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

input[type="file"] {
    display: none;
}

/* ===== دکمه ثبت کارت نارنجی ===== */
.admin-card .card-footer {
    text-align: center;
    padding-top: 5px;
}

.btn-submit {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    color: white;
    border: none;
    padding: 16px 50px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, var(--orange-600), var(--orange-700));
}

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

.btn-submit i {
    font-size: 20px;
}

/* =============================================
   استایل نمونه کار (چک‌باکس و ...)
   ============================================= */
.tech-checkboxes {
    background: #f8fafc;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tech-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    color: #4a5568;
    user-select: none;
}

.tech-label:hover {
    border-color: #667eea;
    background: #ebf4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.tech-label:has(input[type="checkbox"]:checked) {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.tech-label input[type="checkbox"] {
    display: none;
}

#customTech {
    margin-top: 0 !important;
    margin-right: 8px;
    width: auto;
    min-width: 150px;
    border-radius: 25px;
    padding: 6px 16px;
    font-size: 0.85rem;
    border: 2px dashed #cbd5e0;
    background: transparent;
}

#customTech:focus {
    border-style: solid;
    border-color: #667eea;
}

/* ===== چک‌باکس پروژه برتر ===== */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, #fefcbf 0%, #f6e05e 100%);
    border-radius: 12px;
    border: 2px solid #ecc94b;
    margin-bottom: 1.5rem;
}

.form-check-input {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #d69e2e;
}

.form-check-label {
    font-size: 1rem !important;
    color: #744210 !important;
    font-weight: 600 !important;
}

/* =============================================
   استایل دکمه‌های عمومی
   ============================================= */
.btn {
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background: #45a049;
}

.btn-danger {
    background: #f44336;
}

.btn-danger:hover {
    background: #da190b;
}

.btn-success {
    background: #4CAF50;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary i {
    font-size: 1.1rem;
}

/* =============================================
   استایل جدول
   ============================================= */
.testimonials-table {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #ddd;
}

th {
    background: #f8f8f8;
    color: #333;
}

.status-approved {
    color: #4CAF50;
    font-weight: bold;
}

.status-pending {
    color: #ff9800;
    font-weight: bold;
}

/* =============================================
   استایل هدر سبز (قدیمی - در صورت نیاز)
   ============================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    background: #4CAF50;
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =============================================
   کلاس‌های کمکی
   ============================================= */
.hidden {
    display: none;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
}

/* =============================================
   واکنش‌گرایی
   ============================================= */
@media (max-width: 768px) {
    .sidebar {
        width: 240px;
    }
    
    .content {
        margin-right: 240px;
        padding: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .file-upload-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cards {
        grid-template-columns: 1fr;
    }
    
    .page h1 {
        font-size: 1.8em;
    }
}

@media (max-width: 600px) {
    .admin-card {
        padding: 20px;
        margin: 10px;
    }
    
    .file-label {
        justify-content: center;
    }
    
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}


/* =============================================
   فونت و تنظیمات پایه
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

:root {
    /* رنگ‌های اصلی */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --orange-500: #FF6B35;
    --orange-600: #E55A2B;
    --orange-700: #C4471F;
    --green-500: #2ECC71;
    --green-600: #27AE60;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --sidebar-width: 280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    overflow-x: hidden;
}

/* =============================================
   استایل صفحه لاگین (index.html)
   ============================================= */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 40px 35px;
    width: 400px;
    max-width: 100%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
    transition: all 0.3s ease;
}

.login-card:hover {
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
}

.login-card h2 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-card .subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    margin-bottom: 30px;
}

.login-card input[type="text"],
.login-card input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 18px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.login-card input::placeholder {
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
}

.login-card input:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: #6c63ff;
    box-shadow: 0 0 25px rgba(108, 99, 255, 0.3);
}

.login-card button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6c63ff, #a855f7);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3);
}

.login-card button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(108, 99, 255, 0.5);
}

.login-card button:active {
    transform: scale(0.96);
}

.login-card .message {
    margin-top: 20px;
    color: #ff6b6b;
    font-size: 14px;
    min-height: 24px;
}

.login-card .message.success {
    color: #51cf66;
}

/* =============================================
   استایل پنل ادمین (admin panel)
   ============================================= */
.admin-panel {
    display: flex;
    min-height: 100vh;
}

/* ===== سایدبار ===== */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.12);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
}

.sidebar-header {
    background: var(--primary-gradient);
    padding: 35px 25px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.sidebar-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sidebar-header h2 {
    font-size: 1.3em;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.sidebar-header h2 i {
    font-size: 1.3em;
}

.sidebar .menu {
    list-style: none;
    padding: 25px 18px;
}

.sidebar .menu li {
    padding: 16px 20px;
    margin: 8px 0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 14px;
    color: #555;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.sidebar .menu li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
    z-index: -1;
    border-radius: 16px;
}

.sidebar .menu li:hover::before,
.sidebar .menu li.active::before {
    width: 100%;
}

.sidebar .menu li:hover,
.sidebar .menu li.active {
    color: white;
    transform: translateX(-6px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.sidebar .menu li i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.sidebar .menu li:hover i {
    transform: scale(1.15) rotate(5deg);
}

.sidebar .menu li.logout {
    background: #fff5f5;
    color: #dc3545;
    margin-top: 40px;
}

.sidebar .menu li.logout::before {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.sidebar .menu li.logout:hover {
    color: white;
}

/* ===== محتوای اصلی ===== */
.content {
    flex: 1;
    padding: 40px;
    margin-right: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-right 0.4s ease;
}

/* ===== صفحات ===== */
.page {
    display: none;
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.page.active {
    display: block;
}

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

.page h1 {
    color: white;
    font-size: 2em;
    margin-bottom: 12px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    flex-wrap: wrap;
}

.page h1 i {
    font-size: 1em;
}

.page > p {
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 30px;
    font-size: 15px;
    font-weight: 400;
}

/* ===== کارت‌های اصلی ===== */
.card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.18);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 20px;
}

.card:hover {
    transform: translateY(-5px) scale(1.005);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.card h3 {
    color: #2d3436;
    font-size: 1.3em;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f0f0f0;
    font-weight: 700;
    flex-wrap: wrap;
}

.card h3 i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2em;
}

/* ===== گرید کارت‌های آمار ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 35px;
}

.cards .card {
    background: white;
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.cards .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--primary-gradient);
    transition: height 0.3s ease;
}

.cards .card:hover::before {
    height: 10px;
}

.cards .card:nth-child(2)::before {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.cards .card:nth-child(3)::before {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.cards .card h3 {
    justify-content: center;
    margin-bottom: 15px;
    border-bottom: none;
    padding-bottom: 0;
    font-size: 1.3em;
}

.cards .card p {
    color: #888;
    font-size: 14px;
    line-height: 2;
    font-weight: 400;
}

/* =============================================
   استایل فرم‌ها (مشترک)
   ============================================= */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 20px;
}

/* ===== اینپوت‌ها ===== */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 14px;
    color: #333;
    background: #f8fafc;
    outline: none;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #ffffff;
}

/* =============================================
   استایل اختصاصی کارت افزودن دوره (نارنجی-سبز)
   ============================================= */
.admin-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.06), 0 20px 60px rgba(255, 107, 53, 0.04);
    border: 1px solid rgba(255, 107, 53, 0.06);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.admin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--orange-500), var(--green-500), var(--orange-500));
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.admin-card:hover {
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.1), 0 30px 80px rgba(255, 107, 53, 0.06);
    transform: translateY(-3px);
}

/* هدر کارت */
.admin-card .card-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px dashed #FFE0C2;
    background: none;
}

.admin-card .card-header .header-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFF7F0, #EAFAF1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    position: relative;
}

.admin-card .card-header .header-icon i {
    font-size: 28px;
    background: linear-gradient(135deg, var(--orange-500), var(--green-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-card .card-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--orange-700);
    margin: 8px 0 6px;
    border-bottom: none;
}

.admin-card .card-header p {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* ===== فایل آپلود اختصاصی ===== */
.file-group {
    grid-column: 1 / -1;
}

.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FFF7F0;
    border: 2px dashed #FFD4A8;
    border-radius: 12px;
    padding: 10px 14px;
    transition: all 0.3s ease;
    flex-wrap: wrap;
}

.file-upload-wrapper:hover {
    border-color: var(--orange-400);
}

.file-label {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.file-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.file-label i {
    font-size: 16px;
}

.file-name {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    min-width: 100px;
}

.file-name i {
    color: var(--green-500);
}

/* نمایش فایل */
.file-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 2px solid #FFE0C2;
    border-radius: 10px;
    padding: 5px 8px;
    flex: 1;
    animation: fadeIn 0.3s ease;
    min-width: 150px;
}

.preview-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #FFD4A8;
    flex-shrink: 0;
}

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

.file-info-name {
    font-size: 12px;
    font-weight: 600;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
}

.file-info-name i {
    color: #FF6B35;
}

.file-info-size {
    font-size: 10px;
    color: #999;
}

.file-remove-btn {
    background: none;
    border: none;
    color: #ccc;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
    flex-shrink: 0;
}

.file-remove-btn:hover {
    color: #E74C3C;
    background: #FEE;
    transform: scale(1.1);
}

.file-empty {
    font-size: 12px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 5px;
}

.file-empty i {
    color: #FFB882;
}

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

input[type="file"] {
    display: none;
}

/* ===== دکمه ثبت کارت نارنجی ===== */
.admin-card .card-footer {
    text-align: center;
    padding-top: 5px;
}

.btn-submit {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, var(--orange-600), var(--orange-700));
}

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

.btn-submit i {
    font-size: 18px;
}

/* =============================================
   استایل نمونه کار (چک‌باکس و ...)
   ============================================= */
.tech-checkboxes {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tech-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    color: #4a5568;
    user-select: none;
}

.tech-label:hover {
    border-color: #667eea;
    background: #ebf4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.tech-label:has(input[type="checkbox"]:checked) {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.tech-label input[type="checkbox"] {
    display: none;
}

#customTech {
    margin-top: 0 !important;
    margin-right: 8px;
    width: auto;
    min-width: 120px;
    border-radius: 25px;
    padding: 5px 14px;
    font-size: 0.8rem;
    border: 2px dashed #cbd5e0;
    background: transparent;
}

#customTech:focus {
    border-style: solid;
    border-color: #667eea;
}

/* ===== چک‌باکس پروژه برتر ===== */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, #fefcbf 0%, #f6e05e 100%);
    border-radius: 12px;
    border: 2px solid #ecc94b;
    margin-bottom: 1.2rem;
}

.form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #d69e2e;
}

.form-check-label {
    font-size: 0.9rem !important;
    color: #744210 !important;
    font-weight: 600 !important;
}

/* =============================================
   استایل دکمه‌های عمومی
   ============================================= */
.btn {
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background: #45a049;
}

.btn-danger {
    background: #f44336;
}

.btn-danger:hover {
    background: #da190b;
}

.btn-success {
    background: #4CAF50;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary i {
    font-size: 1rem;
}

/* =============================================
   استایل جدول
   ============================================= */
.testimonials-table {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th, td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

th {
    background: #f8f8f8;
    color: #333;
}

.status-approved {
    color: #4CAF50;
    font-weight: bold;
}

.status-pending {
    color: #ff9800;
    font-weight: bold;
}

/* =============================================
   استایل هدر سبز (قدیمی - در صورت نیاز)
   ============================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header {
    background: #4CAF50;
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.actions button {
    padding: 5px 10px;
    font-size: 12px;
}

/* =============================================
   کلاس‌های کمکی
   ============================================= */
.hidden {
    display: none;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
}

/* =============================================
   ==========  بخش ریسپانسیو  ==========
   ============================================= */

/* تبلت‌های بزرگ (1024px و پایین‌تر) */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 240px;
    }

    .content {
        padding: 30px;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* تبلت (768px و پایین‌تر) */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 220px;
    }

    .sidebar {
        width: var(--sidebar-width);
    }

    .sidebar-header {
        padding: 25px 15px;
    }

    .sidebar-header h2 {
        font-size: 1.1em;
    }

    .sidebar .menu {
        padding: 15px 12px;
    }

    .sidebar .menu li {
        padding: 14px 16px;
        font-size: 13px;
        gap: 12px;
    }

    .sidebar .menu li i {
        font-size: 16px;
        width: 20px;
    }

    .content {
        margin-right: var(--sidebar-width);
        padding: 20px;
    }

    .page h1 {
        font-size: 1.6em;
    }

    .card {
        padding: 25px;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .admin-card {
        padding: 25px;
    }

    .admin-card .card-header h3 {
        font-size: 20px;
    }

    table {
        font-size: 13px;
    }

    th, td {
        padding: 10px;
    }
}

/* موبایل (480px و پایین‌تر) */
@media (max-width: 480px) {
    :root {
        --sidebar-width: 200px;
    }

    /* سایدبار کوچک‌تر */
    .sidebar {
        width: var(--sidebar-width);
    }

    .sidebar-header {
        padding: 20px 12px;
    }

    .sidebar-header h2 {
        font-size: 1em;
    }

    .sidebar .menu {
        padding: 12px 10px;
    }

    .sidebar .menu li {
        padding: 12px 14px;
        font-size: 12px;
        gap: 10px;
        margin: 6px 0;
    }

    .sidebar .menu li i {
        font-size: 14px;
        width: 18px;
    }

    .sidebar .menu li.logout {
        margin-top: 30px;
    }

    /* محتوا */
    .content {
        margin-right: var(--sidebar-width);
        padding: 15px;
    }

    .page h1 {
        font-size: 1.3em;
        gap: 8px;
    }

    .page > p {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .card {
        padding: 18px;
        border-radius: 16px;
        margin-bottom: 18px;
    }

    .card h3 {
        font-size: 1.1em;
        margin-bottom: 18px;
        gap: 10px;
    }

    .cards {
        gap: 15px;
        margin-top: 25px;
    }

    .cards .card {
        padding: 25px 20px;
    }

    .cards .card h3 {
        font-size: 1.1em;
    }

    .cards .card p {
        font-size: 13px;
    }

    /* فرم‌ها */
    .form-grid {
        gap: 12px;
    }

    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    select,
    textarea {
        padding: 11px 14px;
        font-size: 13px;
    }

    /* کارت نارنجی */
    .admin-card {
        padding: 18px;
    }

    .admin-card .card-header {
        margin-bottom: 18px;
        padding-bottom: 15px;
    }

    .admin-card .card-header .header-icon {
        width: 50px;
        height: 50px;
    }

    .admin-card .card-header .header-icon i {
        font-size: 24px;
    }

    .admin-card .card-header h3 {
        font-size: 18px;
    }

    .file-upload-wrapper {
        padding: 8px 12px;
        gap: 10px;
        flex-direction: column;
        align-items: stretch;
    }

    .file-label {
        justify-content: center;
        padding: 10px 20px;
    }

    .file-preview {
        min-width: auto;
        width: 100%;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
        padding: 12px 30px;
        font-size: 14px;
    }

    /* چک‌باکس تکنولوژی */
    .tech-checkboxes {
        padding: 0.8rem;
        gap: 6px;
    }

    .tech-label {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    #customTech {
        min-width: 100px;
        font-size: 0.75rem;
    }

    .form-check {
        padding: 0.6rem 0.8rem;
    }

    .form-check-label {
        font-size: 0.8rem !important;
    }

    /* جدول */
    .testimonials-table {
        padding: 15px;
    }

    table {
        min-width: 500px;
        font-size: 12px;
    }

    th, td {
        padding: 8px;
    }

    /* دکمه‌ها */
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .btn-primary {
        padding: 10px 22px;
        font-size: 0.8rem;
    }

    .actions {
        gap: 4px;
    }

    .actions button {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* موبایل‌های خیلی کوچک (360px و پایین‌تر) */
@media (max-width: 360px) {
    :root {
        --sidebar-width: 180px;
    }

    .sidebar .menu li {
        font-size: 11px;
        padding: 10px 12px;
    }

    .content {
        margin-right: var(--sidebar-width);
        padding: 10px;
    }

    .page h1 {
        font-size: 1.1em;
    }

    .card {
        padding: 15px;
    }

    .cards .card {
        padding: 20px 15px;
    }
}

/* =============================================
   سایدبار مخفی در موبایل (اختیاری)
   ============================================= */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .content {
        margin-right: 0;
    }

    .content.shifted {
        margin-right: var(--sidebar-width);
    }
}


/* دوره ها */
/* استایل برای فیلدهای تمام عرض */
.form-group.full-width {
    grid-column: 1 / -1;
}

/* استایل برای hint متن */
.form-hint {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

/* استایل برای فیلدهای الزامی */
.required {
    color: #ff3718;
    font-size: 14px;
}

/* استایل برای دکمه ویرایش */
.btn-warning {
    background: #ffc107;
    color: #333;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-warning:hover {
    background: #e0a800;
}

