:root {
    --primary-red: #dc3545;
    --secondary-red: #bb2d3b;
    --sidebar-width: 250px;
    --header-height: 80px;
}

body {
    font-family: 'Vazirmatn', 'Tanha', Tahoma, sans-serif !important;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    line-height: 1.8;
    font-weight: 300;
}

* {
    font-family: inherit !important;
}

/* عناوین با وزن بالاتر */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Vazirmatn', 'Tanha', Tahoma, sans-serif !important;
    font-weight: 500;
}

/* برای عناوین بزرگ */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Vazirmatn', 'Tanha', Tahoma, sans-serif !important;
    font-weight: 700;
}


/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--primary-red) 0%, #c82333 100%);
    color: white;
    position: fixed;
    top: 0;
    right: 0;
    padding-top: var(--header-height);
    transition: all 0.3s ease;
}

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

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: all 0.3s ease;
    border-right: 3px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-right-color: white;
}

.sidebar-menu i {
    width: 25px;
    margin-left: 10px;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--primary-red) 0%, #c82333 100%);
    color: white;
    position: fixed;
    top: 0;
    right: 0;
    padding-top: var(--header-height);
    transition: all 0.3s ease;
    font-family: Vazir, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: all 0.3s ease;
    border-right: 3px solid transparent;
    font-family: Vazir, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-right-color: white;
}

/* Main Content */
.main-content {
    margin-right: var(--sidebar-width);
    padding: 20px;
    min-height: 100vh;
    font-family: Vazir, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header */
.dashboard-header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    font-family: Vazir, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-text h2 {
    color: var(--primary-red);
    margin-bottom: 5px;
    font-family: Vazir, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
}

/* Main Content */
.main-content {
    font-family: vazir;
    margin-right: var(--sidebar-width);
    padding: 20px;
    min-height: 100vh;
}

/* Header */
.dashboard-header {
    font-family: vazir;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-text h2 {
    color: var(--primary-red);
    margin-bottom: 5px;
}

.date-time {
    text-align: left;
    color: #6c757d;
}

/* Stats Cards */
.stats-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.stats-icon {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

/* Table Styles */
.reminders-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.table thead {
    background: var(--primary-red);
    color: white;
}

.table th {
    border: none;
    padding: 15px;
    font-weight: 600;
}

.table td {
    padding: 15px;
    vertical-align: middle;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-completed {
    background-color: #e2e3e5;
    color: #383d41;
}

.status-upcoming {
    background-color: #fff3cd;
    color: #856404;
}

/* Form Styles */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
}

.section-title {
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    font-weight: bold;
    padding-right: 10px;
    border-right: 3px solid var(--primary-red);
}

.btn {
    font-family: Vazir, Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
}

.btn-custom {
    background-color: var(--primary-red);
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background-color: var(--secondary-red);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    
    .sidebar span {
        display: none;
    }
    
    .sidebar i {
        margin: 0;
        font-size: 1.2rem;
    }
    
    .main-content {
        margin-right: 60px;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .date-time {
        text-align: center;
        margin-top: 10px;
    }
}

/* Login Page Styles */
.login-container {
    font-family: vazir;
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
}

.login-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Credit Page Styles */
.credit-status {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    margin-bottom: 25px;
}

.credit-amount {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.plan-card {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.plan-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
}

/* اضافه کردن این استایل‌ها به assets/css/style.css */

.support-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.section-title {
    color: var(--primary-red);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
}

.credit-status {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    margin-bottom: 25px;
}

.credit-amount {
    font-size: 3rem;
    font-weight: bold;
    color: #dc3545;
    margin-bottom: 10px;
}

.plan-card {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.plan-card:hover {
    border-color: #dc3545;
    transform: translateY(-5px);
}

/* استایل‌های مربوط به تیکت‌ها */
.ticket-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.ticket-status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-open { background-color: #d4edda; color: #155724; }
.status-pending { background-color: #fff3cd; color: #856404; }
.status-closed { background-color: #e2e3e5; color: #383d41; }
.status-answered { background-color: #cce7ff; color: #004085; }

.btn {
    font-family: Vazir, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
}

/* منوها */
.navbar-brand, .nav-link {
    font-family: Vazir, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
}

/* کارت‌ها */
.card-title {
    font-family: Vazir, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
}

/* جداول */
.table {
    font-family: Vazir, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 300;
}

.table th {
    font-weight: 500;
}

/* فرم‌ها */
.form-label {
    font-family: Vazir, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
}

.form-control, .form-select {
    font-family: Vazir, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 300;
}

/* استایل‌های مودال ویرایش */
.modal-header {
    border-bottom: 2px solid #dc3545;
}

.modal-title {
    color: #dc3545;
    font-weight: 600;
}

.btn-close {
    filter: invert(1);
}


/* استایل پنجره پاپ‌آپ */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

/* استایل فرم */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group input[type="checkbox"] {
    width: auto;
}

.save-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s;
}

.save-btn:hover {
    background-color: #45a049;
}

/* پیام موفقیت */
.success-message {
    display: none;
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    margin-top: 15px;
    border-radius: 4px;
    text-align: center;
}

/* استایل Persian Datepicker */
.pdp-default {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
}

.persian-datepicker {
    background-color: white;
    cursor: pointer;
}

.pdp-header, .pdp-footer {
    background-color: #dc3545 !important;
    color: white !important;
}

.pdp-selected {
    background-color: #dc3545 !important;
}