

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body{
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: black;
}

a {
    outline: none !important;
}

/* برای مرورگرهای کروم، اج، سافاری و اوپرا */
::-webkit-scrollbar {
    width: 12px; /* عرض نوار اسکرول */
}

/* پس‌زمینه نوار اسکرول */
::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 10px;
}

/* دکمه متحرک داخل نوار اسکرول */
::-webkit-scrollbar-thumb {
    background: #888; 
    border-radius: 10px;
}

/* تغییر رنگ دکمه هنگامی که موس روی آن می‌رود */
::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

/* برای مرورگر فایرفاکس */
* {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.error-message {
    color: red;
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: bold;
}

.button-1 {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  outline: none;
  appearance: none;
  transition: all 0.2s ease-in-out;
}
.button-1:hover {
  border-color: #333333;
  background-color: #f9f9f9;
  transform: translateY(-1px);
}
.button-1:active {
  transform: translateY(0);
  background-color: #f0f0f0;
}

.button-2 {
    background-color: red; /* رنگ سبز */
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}
.button-2:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

.button-3 {
    width: 100%;
    background: black;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    font-family: 'Vazirmatn';
    transition: all 0.8s ease;
    height: 50px;
}
.button-3:hover {
    border-radius: 20px;
    background: #3e3e3e;
    font-size: 1.2rem;
}
.button-3:active {
}

.bottom-bar-button{
    line-height: 0;
 border:none; padding:8px; border-radius:10px;
}

.bottom-bar-button-icon {width:34px; height:34px; fill:#fff;}

.bottom-bar-button-icon-2{width:34px; height:34px; stroke:#fff; stroke-width:3; fill:none;}

.bottom-bar-empty{
    background:transparent;
}

.bottom-bar-filled{
    background:#333;
}
/* --- هدر اصلی --- */
.sticky-bar {
    box-sizing: border-box;
    height: 60px;
    position: fixed;
    width: 100%;
    z-index: 1000;
    align-items: left;
}

.header{top: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.bottom-bar{bottom: 0; position: fixed; height: 70px; background: black;}

.bar-content {
    max-width: 1280px;
    width: 100%;
    display: flex;
    align-items: center;
    height: 60px;
    margin-right: auto;
    margin-left: auto;
    width: 87%;
}

.header-content {
    position: relative;
}
.bottom-bar-content{

    max-width: 10000px;
    justify-content: space-between;
    height: 70px;

}

.logo {color:#fff; font-family:'Orbitron',sans-serif; font-size:28px; font-weight:700; line-height:1; margin-left: 20px;}
.triangle-icon {width:24px; height:28px; stroke:#fff; stroke-width:3; fill:none;}
.temprory-message{color: red; position: absolute; right: 0;}

.container {
    max-width: 700px;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
    width: 90%;
    animation: fadeIn 0.5s ease-in-out;
}

.container.login{
    max-width: 500px;
    width: 90%;
}

.profile-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.profile-header {
    background-color: purple;
    width: 100%;
    height: 150px;
    
    /* تنظیمات موقعیت‌دهی برای ثابت ماندن جایگاه */
    position: absolute; /* یا static */
    top: 0px;
    left: 0;
    
    /* حذف فاصله‌های پیش‌فرض مرورگر */
    margin: 60px 0 0 0;
    padding: 0;
    
    /* اطمینان از اینکه روی خطوط محتوا قرار می‌گیرد */
    display: block;
}

.profile-header-content{
    height: 150px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1200px;
    width: 90%;
}

.header-placeholder {
    height: 200px; /* دقیقاً به اندازه ارتفاع هدر اصلی سایت */
    width: 100%;
}

/* --- استایل‌های پروفایل و ویرایش --- */

/* آواتار در صفحه پروفایل */
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    margin-bottom: 15px;
    background-color: #ddd;
}

/* باکس بیوگرافی */
.profile-bio {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #eee;
    color: #555;
    line-height: 1.6;
    text-align: right;
}

/* دکمه ویرایش کوچک */
.edit-btn {
    display: inline-block;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* --- استایل‌های صفحه ویرایش (Edit Page) --- */
.edit-container {
    max-width: 600px;
    margin: 100px auto;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: right;
}

.edit-container h2 {
    margin-bottom: 20px;
    text-align: right;
    
}

.form-group {
    margin-bottom: 15px;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    margin-top: 35px;
    font-weight: bold;
    color: black;
    text-align: right;
    font-size: 14px;
    font-family: inherit;
}

.form-group input, 
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1.5px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 13px;
    transition: all 0.05s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: black;
    outline: none;
    border-radius: 10px;
}

.form-group select{
    width: 100%;
}

.form-header {
    color: black;
    text-align: right;
    font-size: 18px;
}

.input-description{
    color: #757575;
    font-size: 13px;
    margin-right: 0px;
}

/* استایل کانتینر اصلی */
.file-upload-wrapper {
    position: relative;
    width: 100%;
    margin: 10px 0;
    border: 2px dashed #ccc;
    border-radius: 10px;
    background-color: #fafafa;
    transition: all 0.07s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* حالت هاور */
.file-upload-wrapper:hover {
    border-color: #3498db;
    background-color: #f0f8ff;
}
/* حالت درگ کردن فایل روی باکس */
.file-upload-wrapper.dragover {
    border-color: #27ae60;
    background-color: #e8f5e9;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.2);
}
/* مخفی کردن input اصلی فایل */
.file-upload-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
/* استایل متن راهنما */
.file-upload-text {
    text-align: center;
    color: #666;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    padding: 20px;
    z-index: 1;
    transition: color 0.3s ease;
}
/* تغییر رنگ متن در حالت هاور */
.file-upload-wrapper:hover .file-upload-text {
    color: #3498db;
}
/* تغییر رنگ متن در حالت درگ */
.file-upload-wrapper.dragover .file-upload-text {
    color: #27ae60;
}
/* استایل برای زمانی که فایلی انتخاب شده */
.file-upload-wrapper.has-file {
    border-style: solid;
    border-color: #27ae60;
    background-color: #f0fff0;
}
.file-upload-wrapper.has-file .file-upload-text {
    color: #27ae60;
}
.file-upload-wrapper:hover::before {
    opacity: 0.6;
    transform: translateX(-50%) scale(1.1);
}
/* برای نمایش اسم فایل انتخاب شده */
.file-upload-wrapper.has-file::before {
    content: "✅";
    opacity: 1;
    font-size: 30px;
    top: 15px;
}
/* استایل برای نمایش نام فایل */
.file-name-display {
    margin-top: 30px;
    font-size: 14px;
    color: #333;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    word-break: break-all;
    max-width: 90%;
}

.current-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid #ddd;
    display: block;
}

/* پیام‌های خطا و موفقیت */
.msg { 
    margin-bottom: 15px; 
    padding: 10px; 
    border-radius: 5px; 
    text-align: center;
}
.success-msg { background-color: #d4edda; color: #155724; }
.error-msg { background-color: #f8d7da; color: #721c24; }

        /* استایل‌های موقت برای نمایش در هدر */
        .profile-header-content {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 20px;
            color: #333; /* رنگ متن روی پس‌زمینه زرد */
        }
        .header-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            border: 3px solid white;
            object-fit: cover;
            background-color: #ddd;
        }
        .header-info h2 {
            margin: 0;
            font-size: 1.5rem;
            color: white;
        }
        .header-info p {
            margin: 5px 0 0;
            font-size: 0.9rem;
            color: #e5e5e5;
        }
        
.current-media {
    width: 100%;
    max-width: 300px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.current-media img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: contain;
}