/* فونت ایران‌سنس (Vazirmatn) - نسخه آپلود شده */
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* اعمال فونت به کل سایت */
:root {
    --font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    font-family: var(--font-family);
}

/* برای اطمینان بیشتر */
body, input, textarea, select, button, h1, h2, h3, h4, h5, h6, p, span, div, a, li, td, th {
    font-family: var(--font-family);
}

/* تنظیم وزن فونت برای عناوین */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* تنظیم وزن فونت برای دکمه‌ها */
.btn {
    font-weight: 500;
}

/* تنظیم وزن فونت برای لینک‌های ناوبری */
.nav-link {
    font-weight: 500;
}

/* تنظیم وزن فونت برای متن معمولی */
body {
    font-weight: 400;
    line-height: 1.8;
}




















* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', Tahoma, sans-serif;
    direction: rtl;
    transition: all 0.3s ease;
    overflow-x: hidden;
}

body.light {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
}

body.dark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo i {
    font-size: 4em;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.logo h2 {
    font-size: 2em;
    margin-top: 10px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 15px 50px 15px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.8);
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    transform: scale(1.02);
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.error {
    background: #ff4757;
    color: white;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* هدر و داشبورد */
.header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    padding: 15px 20px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header.dark {
    background: rgba(0,0,0,0.3);
}

.header h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5em;
}

.profile-pic {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.profile-pic:hover {
    transform: scale(1.1);
}

.sidebar {
    position: fixed;
    right: -300px;
    top: 0;
    width: 300px;
    height: 100vh;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 200;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
}

.sidebar.active {
    right: 0;
}

.sidebar.dark {
    background: rgba(0,0,0,0.9);
}

.folder-list {
    padding: 20px;
}

.folder-item {
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(102,126,234,0.1);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.folder-item:hover, .folder-item.active {
    background: rgba(102,126,234,0.2);
    transform: translateX(-5px);
}

.note-card {
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-right: 5px solid #667eea;
    animation: slideInUp 0.5s ease;
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.note-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.note-content {
    line-height: 1.6;
    white-space: pre-wrap;
    min-height: 100px;
}

.editor-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding: 15px;
    background: rgba(102,126,234,0.1);
    border-radius: 15px;
}

.editor-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 10px;
    background: rgba(102,126,234,0.2);
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.editor-btn:hover, .editor-btn.active {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.note-editor {
    min-height: 200px;
    padding: 20px;
    border: 2px dashed #e1e5e9;
    border-radius: 15px;
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.5);
}

.note-editor:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102,126,234,0.3);
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary { background: linear-gradient(45deg, #667eea, #764ba2); color: white; }
.btn-success { background: linear-gradient(45deg, #00b894, #00cec9); color: white; }
.btn-danger { background: linear-gradient(45deg, #ff4757, #ff6b7a); color: white; }

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.fab {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(102,126,234,0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(102,126,234,0.7); }
    70% { box-shadow: 0 0 0 20px rgba(102,126,234,0); }
    100% { box-shadow: 0 0 0 0 rgba(102,126,234,0); }
}

.fab:hover {
    transform: scale(1.1);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .sidebar { width: 100%; }
    .header { padding: 15px; }
    .note-card { margin: 10px; padding: 20px; }
}

















































.notes-list { padding: 20px; max-width: 700px; margin: 0 auto; }
.note-list-item {
    background: rgba(255,255,255,0.8);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 4px solid #667eea;
}
.note-list-item:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.btn-sm { padding: 8px 12px; font-size: 14px; margin-left: 5px; }

.empty-state { text-align: center; padding: 80px 20px; color: #999; }
.modal { border: none; border-radius: 20px; max-width: 90vw; max-height: 90vh; }
.modal-content { padding: 0; max-height: 90vh; }
.modal-header {
    padding: 25px 30px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}
.view-content {
    padding: 30px;
    min-height: 200px;
    font-size: 18px;
    line-height: 1.7;
    white-space: pre-wrap;
}
.note-editor { width: 100%; font-family: inherit; border-radius: 12px; border: 2px solid #ddd; }
.select-folder { width: 150px; padding: 12px; border-radius: 8px; margin-bottom: 20px; }
.toast {
    position: fixed; top: 20px; left: 20px; background: #28a745; 
    color: white; padding: 15px 25px; border-radius: 25px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.2); z-index: 9999;
    animation: toastIn 0.3s ease;
}
@keyframes toastIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@media (max-width: 768px) {
    .sidebar { right: -100%; width: 100%; }
    .sidebar.active { right: 0; }
    .note-list-item { padding: 15px; }
}