@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Hebrew:wght@400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap");
@import url("./css_reset.css");
@import url("./clases.css");

body {
  font-family: "Roboto", "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans SC", "Noto Sans JP", sans-serif;
  background: #a0a0a0;
  line-height: 130%;
}

/* RTL support for Arabic and Hebrew */
html[lang="ar"],
html[lang="he"],
html[lang="fa"],
html[lang="ur"] {
  direction: rtl;
}

html[lang="ar"] body,
html[lang="he"] body,
html[lang="fa"] body,
html[lang="ur"] body {
  direction: rtl;
  text-align: right;
}

html[lang="ar"] .header,
html[lang="he"] .header,
html[lang="fa"] .header,
html[lang="ur"] .header {
  flex-direction: row-reverse;
}

html[lang="ar"] .buttons_box,
html[lang="he"] .buttons_box,
html[lang="fa"] .buttons_box,
html[lang="ur"] .buttons_box {
  direction: rtl;
}

.text_primary {
  font-size: 16px;
}

.content {
  background: #fdfdfd;
  border-radius: 20px;
  padding: 20px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header p {
  color: #8b8b8b;
  font-weight: 500;
  font-size: 20px;
}

/* Pop-up styles */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-in-out;
}

.popup-content {
  background: #fdfdfd;
  border-radius: 20px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: slideUp 0.3s ease-in-out;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.popup-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.popup-close {
  font-size: 32px;
  color: #8b8b8b;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close:hover {
  color: #2A343D;
}

.popup-body {
  text-align: center;
}

.popup-title {
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 20px;
  line-height: 120%;
}

.popup-text {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 500;
}

.popup-text-small {
  font-size: 16px;
  margin-bottom: 25px;
  color: #666;
}

.popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 25px;
}

.popup-btn-primary,
.popup-btn-secondary {
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-size: 14px;
  transition: all 0.2s;
}

.popup-btn-primary {
  background: #2567df;
  color: #ffffff;
}

.popup-btn-primary:hover {
  background: #1e52b8;
  transform: translateY(-1px);
}

.popup-btn-secondary {
  background: transparent;
  color: #2567df;
  border: 1px solid #2567df;
}

.popup-btn-secondary:hover {
  background: #f0f4ff;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* RTL support for popup */
html[lang="ar"] .popup-content,
html[lang="he"] .popup-content,
html[lang="fa"] .popup-content,
html[lang="ur"] .popup-content {
  direction: rtl;
  text-align: right;
}

html[lang="ar"] .popup-header,
html[lang="he"] .popup-header,
html[lang="fa"] .popup-header,
html[lang="ur"] .popup-header {
  flex-direction: row-reverse;
}
