/* ===== Reset و تنظیمات پایه ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body, html {
  margin: 0; 
  padding: 0; 
  font-family: "IRANSans", Tahoma, sans-serif, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #f9fafb;
  color: #222;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  direction: rtl;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* ===== ساختار کلی داشبورد (wrapper) ===== */
.resume-dashboard-wrapper {
  display: flex;
  flex-direction: row;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* ===== سایدبار ===== */
.sidebar {
  background-color: #2e3a59; /* سرمه ای */
  color: #ecf0f1; /* سفید-خاکستری روشن */
  width: 75px;
  min-width: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 0;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  transition: width 0.3s ease;
  position: relative;
  z-index: 110;
  overflow: hidden;
  user-select: none;
}

.sidebar.expanded {
  width: 230px;
  min-width: 230px;
}

/* HEADER سایدبار */
.sidebar-header {
  width: 100%;
  padding: 0 20px;
  margin-bottom: 25px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ecf0f1;
  white-space: nowrap;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  position: relative;
}

.menu-toggle {
  font-size: 26px;
  cursor: pointer;
  color: #ecf0f1;
  user-select: none;
  transition: color 0.3s ease, background-color 0.3s ease;
  padding: 8px 12px;
  border-radius: 8px;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 130;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.menu-toggle:hover {
  background-color: rgba(236, 240, 241, 0.15);
  color: #fff;
}

.menu-toggle:focus {
  outline: 2px solid #aad4ff;
}

.sidebar-title {
  font-weight: 700;
  color: #ecf0f1;
  white-space: nowrap;
  user-select: none;
  flex-grow: 1;
  transition: opacity 0.3s ease;
}

.sidebar.expanded .sidebar-title {
  display: block;
  opacity: 1;
}

.sidebar:not(.expanded) .sidebar-title {
  display: none;
  opacity: 0;
}

.sidebar-icon {
  display: none;
  width: 24px;
  height: 24px;
  color: #ecf0f1;
  user-select: none;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
  align-items: center;
  justify-content: center;
}

.sidebar:not(.expanded) .sidebar-icon {
  display: inline-flex;
  opacity: 1;
}

.sidebar.expanded .sidebar-icon {
  display: none;
  opacity: 0;
}

/* ===== لیست منو ===== */
.dashboard-menu {
  list-style: none;
  margin: 0;
  padding: 1rem 0;
  width: 100%;
  flex-grow: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.dashboard-menu li {
  margin: 0 0 10px 0;
}

.dashboard-menu li:last-child {
  margin-top: auto;
  margin-bottom: 0;
}

/* لینک‌های منو */
.dashboard-menu a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #ecf0f1;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 10px;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.25s ease, border-left-color 0.3s ease;
  border-left: 4px solid transparent;
  overflow: hidden;
}

.dashboard-menu a:hover,
.dashboard-menu a:focus {
  background-color: #415073;
  color: #ffffff;
  outline: none;
  border-left-color: #90caf9;
}

.dashboard-menu a .menu-icon {
  font-size: 20px;
  color: #a6b1c2;
  margin-left: 12px;
  min-width: 20px;
  text-align: center;
  user-select: none;
  transition: color 0.3s ease;
}

.dashboard-menu a:hover .menu-icon,
.dashboard-menu a:focus .menu-icon {
  color: #fff;
}

.dashboard-menu a span.text {
  overflow: visible;
}

/* ===== اصلاحات برای حالت منوی جمع شده ===== */

/* مخفی کردن متن منو در حالت جمع شده */
.sidebar:not(.expanded) .dashboard-menu a span.text {
  display: none !important;
}

/* وسط‌چین کردن لینک‌ها به صورت کامل */
.sidebar:not(.expanded) .dashboard-menu a {
  justify-content: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  height: 48px;        /* ارتفاع استاندارد لینک */
  line-height: 48px;   /* برای وسط‌چین عمودی متن/آیکون */
  overflow: visible !important;
}

/* وسط‌چین کامل آیکون در لینک */
.sidebar:not(.expanded) .dashboard-menu a .menu-icon {
  margin-left: 0 !important;
  width: 100%; /* عرض کامل لینک */
  height: 100%;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  font-size: 28px !important; /* میتوانید سایز را بیشتر کنید */
  color: #ecf0f1;
  user-select: none;
  line-height: 1;
}

/* ===== MAIN CONTENT ===== */
.dashboard-content {
  flex-grow: 1;
  background-color: #fff;
  padding: 40px 50px;
  height: 100vh;
  box-sizing: border-box;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.dashboard-content h2 {
  font-weight: 700;
  font-size: 2rem;
  color: #2e3a59;
  margin-bottom: 40px;
}

/* جعبه‌های داشبورد */
.dashboard-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.box {
  background: #fefefe;
  border-radius: 14px;
  padding: 35px 25px;
  box-shadow: 0 2px 12px rgba(46, 58, 89, 0.07);
  flex: 1;
  min-width: 270px;
  max-width: 320px;
  text-align: center;
  color: #2e3a59;
  cursor: default;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.box:hover,
.box:focus-within {
  box-shadow: 0 10px 20px rgba(46, 58, 89, 0.12);
  transform: translateY(-9px);
}

.box h4 {
  margin-bottom: 20px;
  font-size: 1.4rem;
  font-weight: 700;
}

.box p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.45;
  color: #4d5e7a;
}

.box-btn {
  display: inline-block;
  background-color: #3a6ead;
  color: #fff !important;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 30px;
  border-radius: 14px;
  text-decoration: none !important;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  box-shadow: 0 6px 14px rgba(58, 110, 173, 0.35);
  cursor: pointer;
  align-self: center;
}

.box-btn:hover,
.box-btn:focus {
  background-color: #305b8a;
  box-shadow: 0 8px 20px rgba(48, 91, 138, 0.5);
  outline: none;
}
.resume-form-ui .btn-submit {
    display: inline-block;
    background-color: #3a6ead;
    color: #fff !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 14px 30px;
    border-radius: 14px;
    text-decoration: none !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
    box-shadow: 0 6px 14px rgba(58, 110, 173, 0.35);
    cursor: pointer;
    align-self: center;
    border: none; /* حذف حاشیه پیش‌فرض دکمه */
    margin-top: 20px;
}

.resume-form-ui .btn-submit:hover {
    background-color: #2e588a; /* تغییر رنگ ملایم در حالت هاور */
    box-shadow: 0 8px 18px rgba(58, 110, 173, 0.45);
}

.number{
  width: 100%;
padding: 14px;
border: 1.5px solid #dcdfe6;
border-radius: 10px;
background: #fdfdfd;
transition: all 0.3s ease;
font-size: 0.95rem;
color: #2e3a59;
}


/* ===== استایل اختصاصی فرم رزومه (هماهنگ با داشبورد) ===== */
.resume-form-ui {
    max-width: 900px;
    margin: 0 auto;
    font-family: inherit; /* استفاده از فونت داشبورد */
    padding-bottom: 150px !important;
}
.resume-card.full-width.agreement-view {
  padding-bottom: 150px;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.form-card {
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(46, 58, 89, 0.07);
    border: 1px solid #edf2f7; /* هماهنگ با طراحی داشبورد */
}

.form-card h3 {
    color: #2e3a59; /* سرمه‌ای تیره */
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f4f8;
}

.field-group {
    margin-bottom: 20px;
}

.field-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.95rem;
}

.required {
    color: #e53e3e;
    margin-right: 4px;
}

/* استایل مدرن فیلدهای ورودی، select ها و number inputs */
.resume-form-ui input[type="text"],
.resume-form-ui input[type="email"],
.resume-form-ui input[type="number"], /* استایل برای number input */
.resume-form-ui select,
.resume-form-ui textarea {
    width: 100%;
    padding: 14px;
    border: 1.5px solid #dcdfe6; /* رنگ بردر ملایم */
    border-radius: 10px;
    background: #fdfdfd;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: #2e3a59;
    box-sizing: border-box; /* اطمینان از محاسبه درست عرض */
}

/* استایل برای select های تاریخ تولد */
.field-group > div[style*="display:flex"] > select {
    width: 33%; /* همان عرض قبلی */
    padding: 14px; /* اطمینان از padding یکسان */
}

/* تغییر رنگ بردر در زمان فوکوس (سرمه‌ای داشبورد) */
.resume-form-ui input:focus,
.resume-form-ui select:focus,
.resume-form-ui textarea:focus {
    border-color: #3a6ead; /* رنگ آبی دکمه‌های داشبورد */
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 110, 173, 0.15);
}

/* استایل دکمه ارسال */
.btn-submit {
    background-color: #3a6ead;
    color: #fff;
    padding: 16px 40px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    width: 100%;
    margin-top: 30px;
    box-shadow: 0 6px 14px rgba(58, 110, 173, 0.25);
    transition: background-color 0.3s, transform 0.2s;
}

.btn-submit:hover {
    background-color: #305b8a;
    transform: translateY(-2px);
}

/* چک‌باکس */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4a5568;
    font-weight: 500;
    cursor: pointer;
}


/* ریسپانسیو */
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-card { padding: 20px; }
}

/* ===== واکنش‌گرایی برای موبایل ===== */
@media screen and (max-width: 768px) {
  .resume-dashboard-wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: 60px;
    min-width: unset;
    flex-direction: row;
    padding: 0 15px;
    border-radius: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 120;
    overflow-x: auto;  /* اسکرول افقی */
    overflow-y: hidden; /* مخفی کردن اسکرول عمودی */
    -webkit-overflow-scrolling: touch; /* نرمی اسکرول در iOS */
  }

  .sidebar.expanded {
    width: 100%;
  }

  .sidebar-header {
    display: none;
  }

  .menu-toggle {
    margin-bottom: 0;
    padding: 8px 15px;
    box-shadow: none;
    font-size: 2rem;
  }

  .dashboard-menu {
    display: flex;
    flex-direction: row; /* منو افقی */
    align-items: center;
    gap: 15px; /* فاصله منظم بین آیتم‌ها */
    height: 100%;
    width: 100%;
    padding: 0;
    overflow-x: auto; /* اسکرول افقی */
    -webkit-overflow-scrolling: touch;
  }

  .dashboard-menu li {
    margin: 0; /* حذف مارجین اضافی برای تراز بودن */
  }

  .dashboard-menu a {
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    white-space: nowrap;
    display: flex;          /* متن + آیکون کنار هم */
    align-items: center;
    justify-content: flex-start;
  }

  .dashboard-menu a .menu-icon {
    margin-left: 8px;
    font-size: 22px;
  }

  /* در موبایل متن همیشه نمایش داده شود حتی در حالت جمع شده */
  .sidebar:not(.expanded) .dashboard-menu a span.text {
    display: inline !important;
  }

  .dashboard-content {
    padding: 20px 25px 40px;
    margin-top: 60px;
    height: calc(100vh - 60px);
  }

  .dashboard-boxes {
    flex-direction: column;
    gap: 1rem;
  }

  .box {
    min-width: 100%;
    max-width: 100%;
    padding: 30px 20px;
  }

  .box h4 {
    font-size: 1.3rem;
  }

  .box p {
    font-size: 1rem;
  }

  .box-btn {
    padding: 14px 25px;
    font-size: 1rem;
  }
}
/* Container Wrapper */
.resume-view-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Grid Layout */
.resume-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Cards Style */
.resume-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.full-width {
    grid-column: 1 / -1;
}

/* Typography & Layout */
.resume-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #edf2f7;
    font-size: 1.1rem;
    color: #2d3748;
}

.resume-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f7fafc;
}

.resume-row span {
    color: #718096;
    font-size: 0.9rem;
}

.resume-row strong {
    color: #1a202c;
    font-size: 0.9rem;
    text-align: left;
    word-break: break-all;
    margin-left: 10px;
}

.resume-text {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
    white-space: pre-line;
}

/* Responsive Mobile Optimization */
@media screen and (max-width: 480px) {
    .resume-view-wrapper {
        padding: 10px;
    }
    
    .resume-card {
        padding: 15px;
    }
    
    .resume-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 0;
    }
    
    .resume-row strong {
        margin-left: 0;
        font-weight: 700;
    }
}
/* ===== استایل اختصاصی فرم رزومه (هماهنگ با داشبورد) ===== */
.resume-form-ui {
    max-width: 900px;
    margin: 0 auto;
    font-family: inherit; /* استفاده از فونت داشبورد */
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.form-card {
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(46, 58, 89, 0.07);
    border: 1px solid #edf2f7; /* هماهنگ با طراحی داشبورد */
}

.form-card h3 {
    color: #2e3a59; /* سرمه‌ای تیره */
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f4f8;
}

.field-group {
    margin-bottom: 20px;
}

.field-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.95rem;
}

.required {
    color: #e53e3e;
    margin-right: 4px;
}

/* استایل مدرن فیلدهای ورودی */
.resume-form-ui input[type="text"], 
.resume-form-ui input[type="email"], 
.resume-form-ui select, 
.resume-form-ui textarea {
    width: 100%;
    padding: 14px;
    border: 1.5px solid #dcdfe6; /* رنگ بردر ملایم */
    border-radius: 10px;
    background: #fdfdfd;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: #2e3a59;
}

/* تغییر رنگ بردر در زمان فوکوس (سرمه‌ای داشبورد) */
.resume-form-ui input:focus, 
.resume-form-ui select:focus, 
.resume-form-ui textarea:focus {
    border-color: #3a6ead; /* رنگ آبی دکمه‌های داشبورد */
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 110, 173, 0.15);
}

/* استایل دکمه ارسال */
.btn-submit {
    background-color: #3a6ead;
    color: #fff;
    padding: 16px 40px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    width: 100%;
    margin-top: 30px;
    box-shadow: 0 6px 14px rgba(58, 110, 173, 0.25);
    transition: background-color 0.3s, transform 0.2s;
}

.btn-submit:hover {
    background-color: #305b8a;
    transform: translateY(-2px);
}

/* چک‌باکس */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4a5568;
    font-weight: 500;
    cursor: pointer;
}

/* ریسپانسیو */
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-card { padding: 20px; }
}
