:root {
    --primary-color: #4a6bff;
    --secondary-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white: #fff;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --border-radius: 0.25rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazir', Tahoma, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: var(--border-radius);
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--white);
}

.btn:hover {
    background-color: #3a5bef;
    text-decoration: none;
}

.btn.outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn.outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
}

.alert.error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert.success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.match-card {
    position: relative;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-light);
}

.match-date {
    color: var(--gray);
    font-size: 0.9rem;
}

.match-description {
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
}

.team-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.team-option {
    flex: 1;
    padding: 1rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s;
}

.team-option:hover {
    border-color: var(--primary-color);
}

.team-option input[type="radio"] {
    display: none;
}

.team-option input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: bold;
}

.team-name {
    display: block;
    margin-bottom: 0.5rem;
}

.team-price {
    display: block;
    color: var(--success-color);
    font-weight: bold;
}

.price-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.price-row.discount {
    color: var(--danger-color);
}

.price-row.total {
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--gray);
}

.birth-date {
    display: flex;
    gap: 0.5rem;
}

.birth-date select {
    flex: 1;
}

.birth-date input {
    width: 6rem;
}

.actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.success-card {
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.ticket-details {
    text-align: right;
    margin: 2rem auto;
    max-width: 500px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed var(--gray-light);
}

.detail-row.total {
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 2px solid var(--gray-light);
    border-bottom: none;
}

/* استایل‌های پنل مدیریت */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background-color: var(--dark-color);
    color: var(--white);
    padding: 1rem 0;
}

.admin-logo {
    font-size: 1.25rem;
    font-weight: bold;
    padding: 0 1rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 1rem;
}

.admin-menu a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.2s;
}

.admin-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-menu a.active {
    background-color: var(--primary-color);
}

.admin-menu a.logout {
    margin-top: 1rem;
    background-color: var(--danger-color);
}

.admin-menu a.logout:hover {
    background-color: #c82333;
}

.admin-content {
    flex: 1;
    padding: 1.5rem;
    background-color: var(--white);
}

.admin-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-light);
}

.admin-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 1.5rem;
    text-align: center;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: right;
    border-bottom: 1px solid var(--gray-light);
}

.data-table th {
    background-color: var(--secondary-color);
    font-weight: bold;
}

.data-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.data-table .actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
}

.btn.small {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn.danger {
    background-color: var(--danger-color);
}

.btn.danger:hover {
    background-color: #c82333;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox input {
    width: auto;
}

.settings-form {
    max-width: 600px;
    margin: 0 auto;
}

/* مدال */
.modal {
    display: none;
    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: var(--white);
    margin: 5% auto;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    left: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}





@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .team-options {
        flex-direction: column;
    }
	
	
	.btn.primary {
    background-color: #4CAF50;
    border-color: #4CAF50;
	}

	.btn.primary:hover {
    background-color: #45a049;
    border-color: #45a049;
	}

/* استایل کارت خطا */
.error-card {
    text-align: center;
    padding: 2rem;
}

.error-icon {
    font-size: 4rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

/* دکمه اصلی */
.btn.primary {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.btn.primary:hover {
    background-color: #45a049;
    border-color: #45a049;
}



}



/* استایل‌های جدید برای تب‌ها */
.container {
    padding-bottom: 80px; /* فضای کافی برای تب‌های پایین */
}

/* استایل برای دکمه‌های اصلی */
.btn.primary {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.btn.primary:hover {
    background-color: #45a049;
    border-color: #45a049;
}

/* استایل کارت خطا */
.error-card {
    text-align: center;
    padding: 2rem;
}

.error-icon {
    font-size: 4rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}