/* Background Gradient */
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #2f4542 0%, #1f2f2d 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #f0f0f0;
  direction: rtl;
}

img {
  max-width: 100%;
}

/* Logo Styling */
.logo-container {
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeIn 1s ease-out;
}

#logo {
  width: 300px;
  height: 300px;
  margin: auto;
  display: block;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

#logo:hover {
  transform: scale(1.05);
}

/* Buttons Styling */
.box-btns {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: 0 auto;
}

button {
  padding: 15px 25px;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(to right, #3a5a56, #2f4542);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

button:hover::before {
  left: 100%;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  background: linear-gradient(to right, #4a6a66, #3a5a56);
}

.btn-icon {
  font-size: 20px;
}

/* Popup Styles */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(110, 75, 75, 0.219);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(5px);
}

.popup.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: popup-appear 0.4s ease-out;
  display: flex;
  flex-direction: column;
}

@keyframes popup-appear {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #2f4542;
  color: white;
}

.popup-header h3 {
  margin: 0;
  font-weight: 500;
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  padding: 0;
  box-shadow: none;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: none;
}

.popup-body {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: #f8f8f8;
  min-height: 400px;
  position: relative;
}

/* Loading Spinner */
.loading-spinner {
  font-size: 18px;
  color: #2f4542;
  display: flex;
  align-items: center;
  gap: 10px;
}

.loading-spinner::after {
  content: "";
  width: 20px;
  height: 20px;
  border: 3px solid rgba(47, 69, 66, 0.3);
  border-radius: 50%;
  border-top-color: #2f4542;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Iframe Styling */
iframe {
  width: 100%;
  height: 70vh;
  border: none;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Image Container */
#popup-image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
}

#popup-file-img {
  max-width: 100%;
  max-height: 60vh;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.image-controls {
  display: flex;
  gap: 10px;
}

.control-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2f4542;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  padding: 0;
}

.control-btn:hover {
  background: #3a5a56;
}

/* Hidden Class */
.hidden {
  display: none !important;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  #logo {
    width: 200px;
    height: 200px;
  }

  .box-btns {
    max-width: 300px;
  }

  button {
    padding: 12px 20px;
    font-size: 16px;
  }

  .popup-content {
    width: 95%;
    max-height: 95vh;
  }

  .popup-body {
    padding: 15px;
  }

  iframe {
    height: 60vh;
  }
}

/* Background Gradient */
/* body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(to right, #2f4542, #1f2f2d);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

img {
  max-width: 100%;
} */

/* Buttons Styling */
/* .box-btns {
  text-align: center;
}

button {
  padding: 10px 20px;
  margin: 10px;
  font-size: 16px;
  color: #fff;
  background-color: #2f4542;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
} */

/* button:hover {
  background-color: #3b605b;
  transform: scale(1.1);
} */

/* #logo {
  width: 500px;
  height: 500px;
  margin: auto;
  display: block;
} */

/* Popup Styles */
/* .popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.3s ease-in-out;
}

.popup-content {
  position: relative;
  width: 80%;
  max-width: 600px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  animation: popup-appear 0.4s ease-out;
}

@keyframes popup-appear {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

iframe {
  width: 100%;
  height: 80vh;
  border: none;
} */
/* iframe {
  width: 100%;
  height: 100%;
  border: none;
} */

/* .close-btn {
  position: absolute;
  border: none;
  font-size: 20px;
  cursor: pointer;
  top: 100%;
  left: 50%;
  height: fit-content;
  transform: translateX(-50%);
  background: red;
  color: white;
} */

/* Adjusted Hidden Class */
/* .hidden {
  opacity: 0;
  display: none;
  pointer-events: none;
}

.popup:not(.hidden) {
  opacity: 1;
  pointer-events: all;
} */
