/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f9;
  text-align: justify;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

/* Header Section */
header {
  background-color: #0B2265;
  padding: 20px;
  color: #fff;
  text-align: center;
}

nav {
  margin-top: 10px;
}

nav a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

nav a:hover {
  text-decoration: underline;
}

.logo-text {
  font-size: 1.5em;
}

/* Hamburger Button */
.hamburger {
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  display: none;
  cursor: pointer;
}

/* Side Menu Styles */
.side-menu {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  background-color: #0B2265;
  overflow-x: hidden;
  transition: 0.4s;
  padding-top: 60px;
}

.side-menu a {
  padding: 12px 30px;
  text-decoration: none;
  font-size: 18px;
  color: white;
  display: block;
  transition: 0.3s;
  font-weight: bold;
}

.side-menu a:hover {
  background-color: #51057A;
}

.side-menu .closebtn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 30px;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: block;
    position: absolute;
    top: 30px;
    right: 30px;
  }
}

/* Dropdown Container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Button (Styled like other links) */
.dropbtn {
  background-color: transparent;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  border: none;
  padding: 0 10px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  line-height: 1.5;
}

.dropbtn:hover {
  text-decoration: underline;
}

/* Dropdown Content */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #0B2265;
  border-radius: 8px;
  min-width: 180px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 1;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
}

.dropdown-content a {
  color: #fff;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-weight: bold;
  font-size: 14px;
}

.dropdown-content a:hover {
  background-color: #51057A;
}

/* Show Dropdown on Hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Content Section */
.content-section {
  padding: 40px 20px;
  background-color: #fff;
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Drag & Drop Area */
.drop-area {
  border: 2px dashed #bbb;
  padding: 20px;
  border-radius: 8px;
  background-color: #f9fafb;
  text-align: center;
  margin-bottom: 20px;
  transition: background-color 0.3s;
}

.drop-area.highlight {
  background-color: #e0f2fe;
  border-color: #0B2265;
}

.upload-section {
  text-align: center;
}

.upload-label {
  display: inline-block;
  background-color: #0B2265;
  color: #fff;
  padding: 10px 15px;
  margin-top: 10px;
  border-radius: 5px;
  cursor: pointer;
}

.upload-label:hover {
  background-color: #51057A;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-item h3 {
  font-size: 18px;
  color: #111827;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}


input[type='file'] {
  display: none;
}

button {
  background-color: #0B2265;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #51057A;
}

/* Preview Container */
.preview-container {
  margin-top: 20px;
}

img {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  margin-top: 10px;
}

/* Preview container and layout */
.preview-container.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.image-box {
  width: 160px;
  padding: 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  position: relative;
  text-align: center;
  transition: transform 0.2s;
}
.image-box:hover {
  transform: scale(1.02);
}

.thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}

progress {
  width: 100%;
  margin-top: 5px;
  height: 8px;
  border-radius: 5px;
}

/* Button layout */
.actions {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 8px;
  gap: 8px;
}

/* Button styles */
.icon-btn {
  background-color: #f2f2f2;
  border: none;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  font-size: 1.1em;
  transition: background-color 0.2s ease;
}
.icon-btn:hover {
  background-color: #e0e0e0;
}

.download-btn {
  color: green;
}
.cancel-btn {
  color: crimson;
}
.retry-btn {
  color: orange;
}

/* Tooltip-like hover effect */
.icon-btn[title]:hover::after {
  content: attr(title);
  position: absolute;
  background: #222;
  color: #fff;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 12px;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* Clear All button */
.clear-btn {
  background-color: #910808;
  color: #fff;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  margin-left: auto;
  transition: background-color 0.2s ease;
}
.clear-btn:hover {
  background-color: #0B2265;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  margin-bottom: 10px;
}

.image-box {
  position: relative;
  overflow: hidden;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 5px;
  font-size: 12px;
  z-index: 1;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.overlay-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}


/* Footer Section */
footer {
  margin-top: 30px;
  padding: 10px;
  background-color: #0B2265;
  color: #fff;
}

/* Enhanced Footer without Subscribe */
footer {
  background-color: #0B2265;
  color: #fff;
  padding: 40px 20px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
  gap: 20px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-section h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #fff;
}

.footer-section a {
  display: block;
  color: #fff;
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
}

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

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: #bbb;
}

/* Responsive Footer */
@media screen and (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-section {
    width: 100%;
  }
}

.footer-section p {
  font-size: 14px;
  color: #fff;
  margin: 0 0 10px;
}

.footer-section a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

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