:root {
    --primary-dark: #00ffe1;
    --primary: #000000;
    --primary-light: #26a69a;
    --accent: #ffd54f;
    --success: #00796b;
    --warning: #ff8f00;
    --danger: #c62828;
    --light: #e0f2f1;
    --dark: #004d40;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #e0f2f1;
    --border-radius: 12px;
    --transition: all 0.3s ease;    
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 213, 79, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 213, 79, 0.6); }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: scale(1); }
    40%, 43% { transform: scale(1.1); }
    70% { transform: scale(1.05); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.header {
    background-image: url('./img/header.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 300px;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 105, 92, 0.6);
    z-index: 1;
}

.header > * {
    position: relative;
    z-index: 2;
}

body {
    background: 
        linear-gradient(135deg, var(--primary-dark), var(--primary)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%2300695c" width="1200" height="800"/><path fill="%23008575" d="M0,0 L1200,800 L0,800 Z"/></svg>') center/cover fixed;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 105, 92, 0.85) 0%, 
        rgba(0, 137, 123, 0.75) 50%, 
        rgba(38, 166, 154, 0.65) 100%);
    z-index: -1;
    pointer-events: none;
}

/* استایل سه نقطه منو */
.menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), #ffb300);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 6px 20px rgba(255, 213, 79, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 213, 79, 0.6);
}

.menu-toggle .dot {
    width: 6px;
    height: 6px;
    background: var(--dark);
    border-radius: 50%;
    margin: 2px 0;
    transition: all 0.3s ease;
}

.menu-toggle.active .dot:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle.active .dot:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .dot:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* استایل منو */
.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 105, 92, 0.98), rgba(0, 137, 123, 0.95));
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 80px 20px 20px;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 213, 79, 0.3);
    overflow-y: auto;
}

.side-menu.active {
    left: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.menu-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

.menu-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item {
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.menu-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.15));
    transform: translateX(5px);
    border-color: var(--accent);
}

.menu-item i {
    color: var(--accent);
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.menu-item.primary {
    background: linear-gradient(135deg, var(--accent), #ffb300);
    color: var(--dark);
    font-weight: 600;
}

.menu-item.primary:hover {
    background: linear-gradient(135deg, #ffb300, #ffa000);
}

.menu-item.secondary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.menu-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.menu-version {
    display: block;
    margin-top: 10px;
    color: var(--accent);
    font-weight: 500;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.container.menu-open {
    transform: translateX(140px);
    filter: brightness(0.9);
    overflow: hidden;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--glass-bg);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    animation: glow 3s ease-in-out infinite;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(255, 213, 79, 0.15) 0%, transparent 70%),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.05) 10px, rgba(255, 255, 255, 0.05) 20px);
    z-index: -1;
}

.logo {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    font-weight: 700;
    animation: float 4s ease-in-out infinite;
    flex-direction: column;
    text-align: center;
}

.logo:hover {
    transform: scale(1.05) rotate(-2deg);
}

.logo i {
    color: var(--accent);
    filter: drop-shadow(0 0 10px rgba(255, 213, 79, 0.5));
}

.logo-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 213, 79, 0.7);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #ffffff, var(--accent), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    font-weight: 700;
    text-align: center;
}

.subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.days-to-event {
    font-size: 1.4rem;
    margin-top: 0.5rem;
    color: var(--accent);
    font-weight: 600;
}

.welcome-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease;
}

.welcome-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to left, var(--accent), var(--primary-light));
}

.welcome-title {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    text-align: center;
}

.welcome-message {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    text-align: center;
}

.form-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: block;
}

.form-container.active {
    display: block;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    position: relative;
    --progress-width: 0%;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.progress-bar::-webkit-scrollbar {
    height: 4px;
}

.progress-bar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.progress-bar::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 2px;
    min-width: calc(100% - 2rem);
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: var(--progress-width, 0%);
    height: 4px;
    background: linear-gradient(to left, var(--accent), var(--primary-light));
    transform: translateY(-50%);
    transition: width 0.5s ease;
    z-index: 2;
    border-radius: 2px;
    min-width: 0;
}

.progress-step-container {
    text-align: center;
    z-index: 3;
    min-width: 70px;
    flex-shrink: 0;
}

.progress-step {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto 8px;
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.progress-step.active {
    background: rgba(38, 166, 154, 0.3);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(255, 213, 79, 0.4);
    transform: scale(1.1);
}

.progress-step.completed {
    background: var(--accent);
    box-shadow: 0 0 15px rgba(255, 213, 79, 0.5);
    color: transparent;
    animation: bounce 0.6s ease;
    border-color: var(--accent);
}

.progress-step.completed::after {
    content: '✓';
    color: var(--dark);
    font-weight: bold;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.step-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 8px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.step-label.active {
    color: var(--accent);
    font-weight: 600;
}

.form-step {
    display: none;
    animation: fadeInUp 0.6s ease;
}

.form-step.active {
    display: block;
}

.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

input, select, textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 213, 79, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 1rem;
    padding-left: 2.5rem;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 250px;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    min-height: 50px;
    font-family: 'Vazirmatn', sans-serif;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: linear-gradient(to left, var(--accent), #ffb300);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(255, 213, 79, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 213, 79, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-success {
    background: linear-gradient(to left, var(--success), #00695c);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 121, 107, 0.4);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 121, 107, 0.6);
}

.btn-danger {
    background: linear-gradient(to left, var(--danger), #b71c1c);
    color: white;
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.4);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.6);
}

.btn-warning {
    background: linear-gradient(to left, var(--warning), #e65100);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 143, 0, 0.4);
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 143, 0, 0.6);
}

.btn-info {
    background: linear-gradient(to left, var(--primary-light), var(--accent));
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(38, 166, 154, 0.4);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    gap: 1.5rem;
}

.form-actions.single-button {
    justify-content: center;
}

.success-container {
    text-align: center;
    padding: 4rem 2rem;
}

.success-icon {
    font-size: 5rem;
    color: var(--accent);
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 15px rgba(255, 213, 79, 0.6));
    animation: pulse 2s infinite;
}

.success-message {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.success-details {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.2rem;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1.2rem 2rem;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transform: translateX(150%);
    transition: transform 0.4s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 90%;
    font-family: 'Vazirmatn', sans-serif;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: rgba(0, 121, 107, 0.9);
}

.notification.error {
    background: rgba(198, 40, 40, 0.9);
}

.notification.info {
    background: rgba(38, 166, 154, 0.9);
}

.admin-panel {
    display: none;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.admin-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    gap: 1.5rem;
}

.admin-title {
    font-size: 2.2rem;
    background: linear-gradient(to right, #ffffff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 213, 79, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
    color: var(--accent);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

.search-container {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.search-title {
    color: var(--accent);
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.search-box {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.search-input {
    flex: 1;
    min-width: 300px;
}

.search-results-info {
    margin-top: 1.2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-secondary);
    display: none;
}

.search-results-info.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.table-container {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    overflow-x: auto;
    transition: all 0.3s ease;
    max-height: 500px;
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1400px;
}

th, td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1rem;
    font-family: 'Vazirmatn', sans-serif;
}

th {
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.status-pending {
    background: rgba(255, 143, 0, 0.2);
    color: var(--warning);
}

.status-approved {
    background: rgba(0, 121, 107, 0.2);
    color: var(--success);
}

.status-rejected {
    background: rgba(198, 40, 40, 0.2);
    color: var(--danger);
}

.action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: 'Vazirmatn', sans-serif;
}

.btn-approve {
    background: var(--success);
    color: white;
}

.btn-approve:hover {
    background: #00695c;
    transform: scale(1.05);
}

.btn-reject {
    background: var(--danger);
    color: white;
}

.btn-reject:hover {
    background: #b71c1c;
    transform: scale(1.05);
}

.table-photo {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.table-photo:hover {
    transform: scale(1.2);
    border-color: var(--accent);
}

.photo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    text-align: center;
    animation: bounce 0.5s ease;
}

.login-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #ffffff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-btn {
    width: 100%;
    margin-top: 1.5rem;
}

.close-login {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-login:hover {
    background: rgba(255, 255, 255, 0.1);
}

.review-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.review-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.review-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.review-section h3 {
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 1.3rem;
}

.review-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding: 0.6rem 0;
}

.review-item span:first-child {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.review-item span:last-child {
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
}

.error-message {
    color: var(--danger);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.input-error {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.2) !important;
}

.codes-management {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.codes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.8rem;
    max-height: 250px;
    overflow-y: auto;
    margin-top: 1.2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.code-item {
    padding: 0.8rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-family: monospace;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.code-item.used {
    background: rgba(198, 40, 40, 0.2);
    color: var(--danger);
    text-decoration: line-through;
}

.code-item.available {
    background: rgba(0, 121, 107, 0.2);
    color: var(--success);
}

.code-item:hover {
    transform: scale(1.05);
}

.notification-section {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.notification-section h3 {
    color: var(--accent);
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.message-counter {
    background: var(--accent);
    color: var(--dark);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    font-weight: bold;
}

.recipients-list {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.2rem;
    max-height: 150px;
    overflow-y: auto;
}

.recipient-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1rem;
}

.recipient-item:last-child {
    border-bottom: none;
}

.parent-phone-type {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.phone-type-btn {
    flex: 1;
    min-width: 150px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1.1rem;
}

.phone-type-btn.active {
    background: var(--primary-light);
    border-color: var(--accent);
    color: white;
}

.phone-type-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.2);
}

.charts-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    width: 100%;
    max-width: 350px;
    height: 350px;
    transition: all 0.3s ease;
}

.chart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.chart-title {
    text-align: center;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.photo-upload {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.photo-upload:hover {
    border-color: var(--accent);
    background: rgba(255, 213, 79, 0.05);
}

.photo-upload i {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    color: var(--accent);
}

.file-size-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-align: center;
}

.file-size-warning {
    color: var(--warning);
    font-weight: 600;
}

.photo-preview {
    max-width: 250px;
    max-height: 250px;
    border-radius: 8px;
    margin: 0 auto;
    display: none;
    border: 2px solid var(--accent);
}

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
}

.questions-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.question-block {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.question-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.question-block h3 {
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 1.3rem;
}

.question-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.question-option {
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.question-option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.question-option.active {
    background: var(--primary-light);
    border-color: var(--accent);
    color: white;
    transform: translateY(-3px);
}

.question-option i {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 105, 92, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s linear infinite;
}

.design-credit {
    position: fixed;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 105, 92, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 213, 79, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.design-credit:hover {
    background: rgba(0, 137, 123, 0.9);
    color: var(--text-primary);
    transform: translateY(-2px);
    border-color: var(--accent);
}

.design-credit i {
    color: var(--accent);
}

/* استایل تقویم فارسی - بهبود یافته کامل */
.persian-date-picker {
    position: relative;
    width: 100%;
}

.date-input-display {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    color: white;
    font-size: 1.1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.date-input-display:hover {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.15));
    box-shadow: 0 6px 20px rgba(255, 213, 79, 0.3);
}

.date-input-display:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 213, 79, 0.3);
}

.calendar-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(0, 105, 92, 0.98), rgba(0, 137, 123, 0.95));
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 213, 79, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 213, 79, 0.2);
    z-index: 2000;
    padding: 1.5rem;
    animation: fadeInUp 0.3s ease;
    overflow: hidden;
    width: 95%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.calendar-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--accent), var(--primary-light));
    z-index: 1;
}

.calendar-container.show {
    display: block;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.calendar-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
    flex: 1;
}

.calendar-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.calendar-tab {
    padding: 10px 15px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    min-width: 90px;
}

.calendar-tab.active {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-color: var(--accent);
    color: white;
    font-weight: 600;
    box-shadow: 0 6px 15px rgba(255, 213, 79, 0.3);
}

.calendar-tab:hover:not(.active) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.15));
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* استایل برای اسکرول‌بار */
.year-scroll-container,
.month-scroll-container,
.day-scroll-container {
    max-height: 250px;
    overflow-y: auto;
    padding: 10px 5px;
    margin-bottom: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    width: 100%;
}

.year-scroll-container::-webkit-scrollbar,
.month-scroll-container::-webkit-scrollbar,
.day-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.year-scroll-container::-webkit-scrollbar-track,
.month-scroll-container::-webkit-scrollbar-track,
.day-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.year-scroll-container::-webkit-scrollbar-thumb,
.month-scroll-container::-webkit-scrollbar-thumb,
.day-scroll-container::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.calendar-grid.days-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-grid.days-grid .calendar-item {
    min-height: 45px;
}

.calendar-item {
    padding: 12px 5px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: var(--text-primary);
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-family: 'Vazirmatn', sans-serif;
    direction: ltr;
    unicode-bidi: plaintext;
}

.calendar-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.15));
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 213, 79, 0.3);
    border-color: var(--accent);
}

.calendar-item.selected {
    background: linear-gradient(135deg, var(--accent), #ffb300);
    border-color: var(--accent);
    color: var(--dark);
    font-weight: 700;
    box-shadow: 0 0 15px rgba(255, 213, 79, 0.5);
}

.calendar-item.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
}

.calendar-item.disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* استایل خاص برای سال‌ها */
.calendar-item.year-item {
    direction: ltr;
    text-align: center;
    font-family: 'Vazirmatn', sans-serif;
    unicode-bidi: plaintext;
    letter-spacing: 0;
}

.selected-date-info {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
    border: 1px solid rgba(255, 213, 79, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.calendar-confirm-buttons {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
}

.calendar-confirm-buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.calendar-confirm-btn {
    background: linear-gradient(to left, var(--accent), #ffb300);
    color: var(--dark);
    box-shadow: 0 4px 12px rgba(255, 213, 79, 0.3);
}

.calendar-confirm-btn:hover {
    background: linear-gradient(to left, #ffb300, #ffa000);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 213, 79, 0.5);
}

.calendar-cancel-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.calendar-cancel-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.2));
    transform: translateY(-2px);
    border-color: var(--accent);
}

/* استایل‌های مدیریت ظرفیت */
.capacity-management {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    margin-bottom: 2rem;
}

.capacity-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.grade-label {
    min-width: 100px;
    font-weight: bold;
    color: var(--accent);
}

.capacity-input {
    flex: 1;
    max-width: 150px;
}

.capacity-status {
    min-width: 120px;
    text-align: center;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.status-open {
    background: rgba(0, 121, 107, 0.3);
    color: var(--success);
}

.status-full {
    background: rgba(198, 40, 40, 0.3);
    color: var(--danger);
}

.status-disabled {
    background: rgba(255, 143, 0, 0.3);
    color: var(--warning);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--success);
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .logo {
        font-size: 2.2rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo-image {
        width: 120px !important;
        height: 120px !important;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .welcome-container,
    .form-container {
        padding: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .progress-bar {
        margin-bottom: 2rem;
        gap: 0.5rem;
    }
    
    .progress-step {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .progress-step.completed::after {
        font-size: 1.2rem;
    }
    
    .progress-step-container {
        min-width: 60px;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        min-width: 100%;
    }
    
    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .question-options-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .question-option {
        min-height: 100px;
        padding: 1rem;
    }
    
    .question-option i {
        font-size: 1.6rem;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        padding: 1.2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-input {
        min-width: 100%;
    }
    
    .table-container {
        padding: 1rem;
        max-height: 500px;
    }
    
    table {
        min-width: 1200px;
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.8rem;
    }
    
    .charts-container {
        flex-direction: column;
        align-items: center;
    }
    
    .chart-card {
        width: 100% !important;
        max-width: 300px;
        height: 300px;
    }
    
    .parent-phone-type {
        flex-direction: column;
    }
    
    .phone-type-btn {
        min-width: 100%;
    }
    
    .success-container {
        padding: 3rem 1rem;
    }
    
    .success-icon {
        font-size: 4rem;
    }
    
    .success-message {
        font-size: 1.8rem;
    }
    
    .notification {
        top: 15px;
        right: 15px;
        left: 15px;
        transform: translateY(-150%);
        max-width: none;
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .login-container {
        padding: 2rem;
    }
    
    .design-credit {
        position: relative;
        bottom: auto;
        left: auto;
        margin: 1.5rem auto;
        display: block;
        width: fit-content;
    }
    
    /* استایل‌های موبایل برای تقویم - بهبود یافته */
    .calendar-container {
        width: 95%;
        max-width: 95%;
        max-height: 80vh;
    }
    
    .calendar-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        gap: 4px;
    }
    
    .calendar-tab {
        min-width: 70px;
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }
    
    .calendar-grid.days-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 3px;
    }
    
    .calendar-item {
        padding: 8px 3px;
        font-size: 0.8rem;
        min-height: 40px;
    }
    
    .year-scroll-container,
    .month-scroll-container,
    .day-scroll-container {
        max-height: 200px;
        padding: 8px 4px;
    }
    
    .selected-date-info {
        font-size: 0.9rem;
        padding: 0.8rem;
        margin-top: 0.8rem;
    }
    
    .calendar-confirm-buttons {
        flex-direction: column;
        gap: 8px;
        margin-top: 1rem;
    }
    
    .calendar-confirm-buttons button {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    /* استایل‌های موبایل برای منو */
    .menu-toggle {
        top: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
    }
    
    .side-menu {
        width: 250px;
    }
    
    .container.menu-open {
        transform: translateX(125px);
    }
    
    /* استایل‌های موبایل برای ظرفیت */
    .capacity-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .capacity-input {
        max-width: 100%;
        width: 100%;
    }
    
    /* استایل‌های موبایل برای هدر */
    .header {
        min-height: 250px;
    }
    
    .header::before {
        background: rgba(0, 105, 92, 0.7);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.8rem;
    }
    
    header {
        padding: 1.2rem;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .logo-image {
        width: 100px !important;
        height: 100px !important;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .welcome-container,
    .form-container {
        padding: 1.2rem;
    }
    
    .progress-step {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .progress-step.completed::after {
        font-size: 1rem;
    }
    
    .progress-step-container {
        min-width: 50px;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .codes-list {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .code-item {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    /* استایل‌های موبایل کوچک برای تقویم */
    .calendar-container {
        width: 98%;
        max-width: 98%;
        padding: 0.8rem;
        max-height: 85vh;
    }
    
    .calendar-tab {
        min-width: 65px;
        padding: 6px 8px;
        font-size: 0.75rem;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
    
    .calendar-grid.days-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 2px;
    }
    
    .calendar-item {
        padding: 6px 2px;
        font-size: 0.75rem;
        min-height: 35px;
    }
    
    .year-scroll-container,
    .month-scroll-container,
    .day-scroll-container {
        max-height: 180px;
    }
    
    .selected-date-info {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
    
    /* استایل‌های موبایل کوچک برای منو */
    .menu-toggle {
        top: 10px;
        left: 10px;
        width: 40px;
        height: 40px;
    }
    
    .side-menu {
        width: 220px;
        padding: 70px 15px 15px;
    }
    
    .container.menu-open {
        transform: translateX(110px);
    }
    
    /* استایل‌های موبایل کوچک برای هدر */
    .header {
        min-height: 200px;
    }
    
    .header::before {
        background: rgba(0, 105, 92, 0.8);
    }
}
/* استایل لودر صفحه */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.page-loader .loader {
    width: 80px;
    height: 80px;
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 8px solid var(--accent);
    animation: loader-spin 1s linear infinite;
}

@keyframes loader-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* لودر برای گوشی */
@media (max-width: 768px) {
    .page-loader .loader {
        width: 60px;
        height: 60px;
        border-width: 6px;
    }
}