@font-face {
  font-family: doran;
  src: url(../Doran.ttf);
}

* {
  box-sizing: border-box;
  margin: 0;
  /*padding: 0;*/
  /*REYHAN IN WAR - LIBRARY INFORMATION*/
  padding: 2px;
  font-family: "doran", sans-serif;
}

body {
  margin: 0;
  height: 100%;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  min-height: 100vh;
}

.login-container {
  margin: 2vh;
  /*width: 100%;*/
  /*width: 80%; */
  max-width: 520px;
  padding: 40px 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  text-align: center;
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 2.1rem;
}

.input-group {
  margin-bottom: 20px;
  
  position: relative;
}

.input-group input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 15px;
  transition: background 0.3s;
}

.input-group input:focus {
  background: rgba(255, 255, 255, 0.25);
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.login-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 114, 255, 0.55);
}

.login-btn:active {
  transform: translateY(0);
}

.footer {
  margin-top: 25px;
  text-align: center;
  font-size: 20px;
  direction: ltr;
  color: rgb(255, 255, 255);
}

.footer a {
  color: #00c6ff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.alert {
  padding: 12px 16px;
  margin-bottom: 24px;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
}

.alert.error {
  background: rgba(255, 71, 87, 0.25);
  color: #ffcccc;
  border: 1px solid rgba(255, 71, 87, 0.4);
}

.alert.success {
  background: rgba(0, 255, 191, 0.25);
  color: #fff;
  border: 1px solid rgba(71, 255, 99, 0.4);
}

.shake {
  animation: shake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  10%,
  90% {
    transform: translateX(-1px);
  }
  20%,
  80% {
    transform: translateX(2px);
  }
  30%,
  50%,
  70% {
    transform: translateX(-4px);
  }
  40%,
  60% {
    transform: translateX(4px);
  }
}

.subtitle {
  text-align: center;
  margin: 8px 0 28px;
  opacity: 0.85;
  font-size: 0.96rem;
}

.mobile-number {
  font-weight: 600;
  color: #00c6ff;
  direction: ltr;
  display: inline-block;
}

.otp-container {
  direction: ltr;
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 24px 0 20px;
}

.otp-input {
  width: 42px;
  height: 52px;
  text-align: center !important;
  font-size: 20px;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  outline: none;
  transition: all 0.2s;
  direction: ltr !important;
}

.otp-input:focus {
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.4);
}

.timer {
  text-align: center;
  font-size: 0.95rem;
  margin: 16px 0 24px;
  opacity: 0.9;
}

.resend {
  text-align: center;
  font-size: 0.92rem;
  margin-top: 16px;
}

.resend a {
  color: #00c6ff;
  text-decoration: none;
}

.resend a:hover {
  text-decoration: underline;
}

.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(8px);
}

.success-card {
  background: rgba(40, 167, 69, 0.9);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  color: white;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-card h2 {
  margin: 0 0 16px;
  font-size: 2.1rem;
}

.success-card p {
  margin: 0 0 24px;
  opacity: 0.9;
  font-size: 1.1rem;
}

.resend-btn {
  background: none;
  border: none;
  color: #00c6ff;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.resend-btn:hover {
  color: #0099cc;
}

.resend-success {
  color: #4ade80;
  font-weight: 500;
}

.upload-form {
  max-width: 480px;
  margin: 40px auto;
}

/*
.radio-group {
  margin: 12px 0;
  display: flex;
  flex-direction: row;
  gap: 6px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
*/
.radio-group p {
  margin: 0 0 12px; /* سطر خالی ۱۲ پیکسلی زیر عنوان */
}

.radio-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.radio-container label {
  flex: 1 1 20%;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.success-box,
.error-box {
  padding: 16px;
  border-radius: 12px;
  margin: 20px 0;
  text-align: center;
}

.success-box {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.success-box::before {
  content: "✅ ";
  font-size: 1.5em;
}

.error-box {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.dashboard-header {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  z-index: 100;
  -webkit-backdrop-filter: blur(10px);
}

.nav-menu {
  display: flex;
  gap: 28px;
  justify-content: center;
}

.nav-menu a {
  color: #ddd;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 4px;
  position: relative;
  transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #00c6ff;
}

.nav-menu a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 4px;
  width: calc(100% - 8px);
  height: 2.5px;
  background: #00c6ff;
  border-radius: 3px;
}

.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #eee;
  padding: 6px 10px;
}

.dashboard-layout {
  display: flex;
  flex-direction: column;
  /* min-height: 100vh; */
}

.dashboard-content {
  display: flex;
  justify-content: center;
  flex: 1;
  padding: 40px 20px;
}

body.dashboard-page {
  display: block;
}

body:not(.dashboard-page) {
  display: flex;
  align-items: center;
  justify-content: center;
  /*height: 100vh;*/
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-title {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.nav-menu a.logout {
  color: #ff6b6b;
}

.nav-menu a.logout:hover {
  color: #ff4757;
}

.files-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.files-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

th,
td {
  padding: 14px 16px;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.delete-btn {
  background: #ff4d4d;
  border: none;
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.delete-btn:hover {
  background: #ff3333;
}

/*REYHAN BANDARI IN WAR!*/
.edit-btn {
  background: #2196f3;
  border: none;
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.edit-btn:hover {
  background: #1565c0;
}
/*REYHAN BANDARI*/

.message {
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 24px;
  text-align: center;
}

.success-msg {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.error-msg {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.download-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(8px);
}

.download-card {
  background: rgba(34, 197, 94, 0.9);
  border-radius: 16px;
  padding: 48px 36px;
  text-align: center;
  color: white;
  max-width: 460px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.download-card.hide {
  opacity: 0;
  pointer-events: none;
}

.download-card h2 {
  margin: 0 0 16px;
  font-size: 2.2rem;
}

.download-card p {
  margin: 0 0 24px;
  opacity: 0.95;
  font-size: 1.15rem;
}

@keyframes popIn {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.text-display {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  padding: 24px;
  border-radius: 12px;
  margin: 24px 0;
  word-break: break-word;
  font-size: 1.05rem;
  line-height: 1.6;
  max-height: 60vh;
  overflow-y: auto;
  /*direction: ltr;*/
}

.copy-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 16px;
}

.copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 114, 255, 0.55);
}

.copy-btn:active {
  transform: translateY(0);
}

.copy-success {
  color: #4ade80;
  text-align: center;
  margin-top: 12px;
  font-weight: 500;
  display: none;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(15, 32, 39, 0.95);
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  }

  .nav-menu.active {
    display: flex;
  }

  .hamburger {
    display: block;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(15, 32, 39, 0.96);
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    padding: 14px 24px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-menu a:last-child {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead tr {
    display: none;
  }

  tr {
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
  }

  td {
    border: none;
    position: relative;
    padding-left: 50%;
    text-align: left;
  }

  td::before {
    content: attr(data-label);
    position: absolute;
    left: 16px;
    width: 45%;
    font-weight: 600;
  }
}

.logo-img {
  width: 25%;
  height: 25%;
  display: flex;
  margin: auto;

  /* دایره شدن خود لوگو */
  /* border-radius: 50%; */
  /* object-fit: contain; */

  /* بک سفید برای لوگوهای شفاف */

  /* کمی فاصله داخلی */
  padding: 6px;
}

.header-img {
  max-width: 10%;
  max-height: 10%;
}

.footer-img {
  max-width: 30%;
  max-height: 30%;
}

@media (max-width: 768px) {
  .header-img {
    max-width: 20%;
    max-height: 20%;
  }
}

.pastes-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.pastes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

/* New Settings! */
.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}
.tab-btn {
  padding: 12px 24px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s;
}
.tab-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}
.tab-btn.active {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  box-shadow: 0 4px 12px rgba(0, 114, 255, 0.3);
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.operations-section {
  margin-top: 48px;
  background: rgba(255, 255, 255, 0.05);
  padding: 24px;
  border-radius: 12px;
}
.operations-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
}
.operation-btn {
  padding: 12px 24px;
  border: none;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.25s ease;
  flex: 1;
  max-width: 200px;
}
.operation-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 114, 255, 0.55);
}
.operation-btn:active {
  transform: translateY(0);
}
@media (max-width: 768px) {
  .tab-buttons {
    gap: 8px;
  }
  .tab-btn {
    padding: 10px 18px;
    font-size: 0.95rem;
  }
  .operations-buttons {
    flex-direction: column;
    gap: 12px;
  }
  .operation-btn {
    max-width: none;
  }
}

/* Quick Links! */
.quick-access-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 32px 0 40px;
  /* padding: 0 20px; */
}

.quick-btn {
  flex: 1 1 220px;
  /* max-width: 260px; */
  min-width: 180px;
  padding: 4px 6px;
  border-radius: 14px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 1.05rem;
  text-align: center;
  transition: all 0.28s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.quick-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03)
  );
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.quick-btn:hover::before {
  opacity: 1;
}

.quick-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
}

.quick-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-icon {
  font-size: 1.4rem;
  opacity: 0.9;
}

/* رنگ‌بندی متفاوت برای هر دکمه */
.download-btn {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
}

.paste-btn {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.notices-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.dice-btn {
  background: linear-gradient(135deg, #f44336, #b71c1c);
}

@media (max-width: 640px) {
  .quick-access-buttons {
    flex-direction: column;
    gap: 14px;
    padding: 0 16px;
  }

  .quick-btn {
    flex: none;
    max-width: none;
    min-width: auto;
    padding: 6px 8px;
    font-size: 1.1rem;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .quick-access-buttons {
    gap: 20px;
  }

  .quick-btn {
    flex: 1 1 45%;
    max-width: 45%;
  }
}

/* BANDAR IN WAR! */
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 15px;
  transition: background 0.3s;
}

/*BANDAR IN WAR IS HERE!*/
.notice-card {
            border-radius: 14px;
            padding: 24px 28px;
            margin-bottom: 24px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.28);
            backdrop-filter: blur(8px);
            transition: all 0.35s ease;
        }
        .notice-card.important {
            background: rgba(255, 71, 87, 0.20);
            border: 1px solid rgba(255, 71, 87, 0.80);
        }
        .notice-card.normal {
            background: rgba(0, 198, 255, 0.14);
            border: 1px solid rgba(0, 198, 255, 0.40);
        }
        .notice-card.read {
            background: rgba(120, 120, 120, 0.12);
            border: 1px solid rgba(119, 119, 119, 0.53);
            opacity: 0.80;
        }
        .notice-title.important { color: #ff6b6b; }
        .notice-title.normal { color: #4ade80; }
        .notice-title.read { color: #bbbbbb; }
        .notice-badge {
            font-size: 0.88rem;
            color: white;
            padding: 4px 10px;
            border-radius: 8px;
            margin-right: 10px;
        }
        .notice-badge.important { background: #ff4757; }
        .notice-badge.read { background: #666; color: #eee; }
        .notice-date {
            color: #bbb;
            font-size: 1.0rem;
            direction: ltr;
            white-space: nowrap;
            margin: 0 0 10px 0;
        }
        .notice-content {
            line-height: 1.75;
            color: #eee;
            font-size: 1.05rem;
        }
        .notice-read-btn {
            background: linear-gradient(135deg, #555, #777);
            font-size: 0.98rem;
            padding: 10px 22px;
            min-width: 120px;
        }
        .notice-read-action {
            margin-top: 20px;
            text-align: left;
        }
        
        /* Personal Message Popup */
        .msg-modal {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,.6);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
        }

        .msg-box {
            width: 90%;
            max-width: 420px;
            background: #111827;
            border-radius: 16px;
            padding: 28px;
            color: #fff;
            box-shadow: 0 20px 60px rgba(0,0,0,.6);
        }

        .msg-slider {
            position: relative;
            overflow: hidden;
            touch-action: pan-y;
        }

        .msg-slide {
            display: none;
            text-align: center;
            opacity: 0;
            transform: translateX(100%);
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        .msg-slide.active {
            display: block;
            opacity: 1;
            transform: translateX(0);
        }

        .msg-slide.prev {
            transform: translateX(-100%);
        }

        .msg-slide h3 {
            margin-bottom: 12px;
            font-size: 20px;
        }

        .msg-slide p {
            line-height: 1.9;
            color: #d1d5db;
            margin-bottom: 22px;
        }

        .msg-btn {
            background: #3b82f6;
            border: none;
            padding: 12px 20px;
            border-radius: 10px;
            color: #fff;
            cursor: pointer;
            font-size: 14px;
        }

        .msg-counter {
            text-align: center;
            color: #9ca3af;
            font-size: 14px;
            margin: 16px 0 12px;
        }

        .msg-dots {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 10px;
        }

        .msg-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #4b5563;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .msg-dot.active {
            background: #3b82f6;
            transform: scale(1.2);
        }

        @media(max-width:480px) {
            .msg-box {
                padding: 22px;
            }
            .msg-slide h3 {
                font-size: 18px;
            }
        }
        
.toggle-pass{
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    font-size: 18px;
}