/* <!-- by Majed Developer Solution © 2025 --> */

* {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  background: #f2f6fb;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page {
  width: 440px;
}

/* CARD */
.card {
  background: #fff;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  position: relative;
}

.hidden {
  display: none;
}

/* LOGIN LANG TOP RIGHT */
.card-top {
  position: absolute;
  top: 16px;
  right: 16px;
}
[dir="rtl"] .card-top {
  right: auto;
  left: 16px;
}

/* LANG SWITCH */
.lang-switch {
  display: flex;
  gap: 6px;
}
.lang-switch button {
  width: auto;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 10px;
}

/* LOGO SIZES */
.logo.big {
  width: 205px;
  display: block;
  margin: 10px auto 25px;
}

.logo.app-logo {
  width: 140px;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.header-app {
  flex-wrap: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* Slightly smaller buttons in header to keep one line */
.header-actions .lang-switch button {
  padding: 6px 9px;
  font-size: 11px;
  border-radius: 10px;
}

.logout {
  width: auto;
  padding: 7px 12px;
  font-size: 12px;
  margin-bottom: 0;
}

[dir="rtl"] .header-app {
  flex-direction: row-reverse;
}

/* INPUTS */
input {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  border-radius: 10px;
  border: 2px solid #d0d7e2;
  margin-bottom: 12px;
}
input:focus {
  outline: none;
  border-color: #1f6fd6;
}

/* PASSWORD EYE */
.pass-wrap {
  position: relative;
}
.eye {
  position: absolute;
  top: 12px;
  right: 12px;
  cursor: pointer;
}
[dir="rtl"] .eye {
  right: auto;
  left: 12px;
}

/* REMEMBER INLINE */
.remember-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 14px;
  font-size: 13px;
  justify-content: flex-start;
}
[dir="rtl"] .remember-row {
  justify-content: flex-end;
}

/* BUTTONS */
button {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #1f6fd6, #2bb673);
  color: #fff;
  font-weight: bold;
  margin-bottom: 10px;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31,111,214,.35);
}

button:active {
  transform: translateY(0);
}

/* TEMPLATES */
.templates {
  display: grid;
  gap: 8px;
}

/* BULK */
.bulk:hover {
  box-shadow: 0 10px 26px rgba(43,182,115,.45);
}

/* STATUS */
.console {
  margin-top: 18px;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  transition: all .3s ease;
}

/* STATUS ANIMATIONS */
.sending { animation: pulse 1s infinite; }
.success { animation: pop .4s ease; }
.error { animation: shake .4s; }
.warning { animation: blink 1s 2; }

@keyframes pulse { 0%{opacity:1;} 50%{opacity:.5;} 100%{opacity:1;} }
@keyframes pop { 0%{transform:scale(.9);} 60%{transform:scale(1.15);} 100%{transform:scale(1);} }
@keyframes shake { 0%{transform:translateX(0);} 25%{transform:translateX(-6px);} 50%{transform:translateX(6px);} 75%{transform:translateX(-6px);} 100%{transform:translateX(0);} }
@keyframes blink { 0%{opacity:1;} 50%{opacity:.3;} 100%{opacity:1;} }

/* CUSTOM FILE INPUT (TRANSLATABLE) */
.file-input {
  width: 100%;
  border: 2px solid #d0d7e2;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.file-input input[type="file"] {
  display: none; /* key: hides browser "Choose File" UI */
}

.file-btn {
  background: linear-gradient(135deg, #1f6fd6, #2bb673);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
}

.file-name {
  font-size: 13px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

/* Footer */
.footer {
  margin-top: 25px;
  font-size: 12px;
  text-align: center;
  color: #8a8a8a;
  font-weight: normal;
}
