body {
  font-family: 'Traditional Arabic', 'Times New Roman', Times, serif;
  margin: 0;
  padding: 20px;
  background-color: #fff;
  min-height: 100vh;
  color: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
  direction: rtl;
  text-align: right;
}

header {
  background-color: #ffffff;
  color: #1a365d;
  padding: 12px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Keeps the header elements responsive */
  position: fixed; /* Fixes the header at the top */
  top: 0;
  width: 100%; /* Ensures the header spans the full width of the viewport */
  z-index: 1000; /* Keeps the header on top of other elements */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Optional: Adds a subtle shadow */
  font-weight: bold;
  left: 0;
  direction: ltr;
}

.logo {
  font-size: 20px;
  font-weight: bold;
  margin-right: 20px;
}

.nav-links {
  display: flex;
  list-style: none;
  margin-left: 0px;
  margin-top: 10px;
  margin-bottom: 10px;
  margin-right: 90px;
  font-size: 16px;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links li a:hover {
  color: #7a7a7a; /* Change to your desired hover color */
}

.nav-links a {
  color: #2d3748;
  text-decoration: none;
  margin-right: 0px;
}

nav ul li a i {
  margin-right: 0px;
}

.header-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-right: 20px;
}

.header-icons a {
  color:#333;
  text-decoration: none;
  margin-right: 20px;
  font-size: 15px;
  top: 10px;
}

.header-icons a:hover {
  color: #7a7a7a; /* Change to your desired hover color */
  transform: scale(1.1); /* Slightly enlarges the icon on hover */
}

.header-icons a i {
  font-size: 24px;
}

.header-icons a span {
  margin-left: -20.5px;
  font-size: 15px;
}

.header-icons img {
  width: 24px;
  height: 25px;
}

/* Menu icon */
.menu-icon {
  display: none;
  font-size: 24px;
  cursor: pointer;
  margin-right: 15px;
}

.menu-icon:hover {
  color: #7a7a7a; /* Change to your desired hover color */
  transform: scale(1.1); /* Slightly enlarges the icon on hover */
}

/* Mobile navigation menu */
.mobile-nav {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #ffffff;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
  z-index: 1000;
  font-weight: bold;
}

.mobile-nav .close-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 26px;
  color:#2d3748;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
}

.mobile-nav ul li {
  padding: 15px;
  text-align: center;
}

.mobile-nav ul li a {
  color: #2d3748;
  text-decoration: none;
  font-size: 18px;
  display: block;
}

.mobile-nav ul li a:hover {
  color: #7a7a7a; /* Change to your desired hover color */
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
  header {
      padding: 10px 10px;
  }

  .nav-links {
      display: none;
  }

  .menu-icon {
      display: block;
  }

  /* Ensure the cart icon is always visible */
  .header-icons {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      flex-grow: 1;
      margin-right: 5px;
  }

  #cart-link {
      display: inline-block; /* Ensure the cart icon stays visible */
  }
  #cart-link:hover {
      color: #7a7a7a; /* Change to your desired hover color */
      transform: scale(1.1); /* Slightly enlarges the icon on hover */
  }
}

/* Base styles for the login popup */
.loginPopup {
  position: fixed;
  top: 0;
  right: -35%;
  width: 35%;
  height: 100%;
  background-color: white;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  transition: right 0.5s ease;
  z-index: 1000;
  font-weight: bold;
  display: flex;
  overflow-y: scroll; /* Allow scrolling */
  justify-content: center;
}

.loginPopup::-webkit-scrollbar {
  width: 0; /* Hide the scrollbar */
  height: 0;
}

.loginPopup.show {
  right: 0;
}

/* Content styling */
.loginPopup-content {
  width: 90%;
  max-width: 400px;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.0);
  height: 500px;
}

/* Close button styling */
.loginPopup .closeBtn {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 26px;
  cursor: pointer;
}

/* Header styling */
.loginPopup h2 {
  margin-bottom: 20px;
  text-align: center;
}

.loginPopup-content h2 img {
  width: 24px;
  height: 24px;
  margin-left: 5px;
}

/* Form styling */
.loginPopup form {
  display: flex;
  flex-direction: column;
}

.loginPopup label {
  margin-bottom: 5px;
  font-size: 16px;
  margin: 10px;
}

.loginPopup input {
  margin-bottom: 10px;
  padding: 8px 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  width: 97%;
  
}

.loginPopup button {
  padding: 8px 20px;
  background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  margin-top: 10px;
}

.loginPopup button:hover {
  background-color: #484747;
}

/* Hide form elements */
#registerForm {
  display: none;
}

#loginForm {
  display: flex;
  flex-direction: column;
}

/* Responsive styles */
@media (max-width: 768px) {
  .loginPopup {
    width: 50%;
    transition: right 0.5s ease;
  }
}

@media (max-width: 480px) {
  .loginPopup {
    width: 100%;
    right: -100%;
    transition: right 0.5s ease;
  }

  .loginPopup.show {
    right: 0;
  }

  .loginPopup-content {
    padding: 15px;
  }

  .loginPopup h2 {
    font-size: 18px;
  }

  .loginPopup input {
    font-size: 16px;
    padding: 8px;
  }

  .loginPopup button {
    font-size: 16px;
    padding: 12px;
  }
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
  .loginPopup {
    width: 100%;
    right: -100%;
    transition: right 0.5s ease;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
  color: #fff;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content h2 {
  margin-top: 0;
  font-size: 24px;
}

.modal-close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
}

.modal-socials a {
  margin: 0 10px;
  display: inline-block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.container {
  max-width: 900px;
  margin: auto;
  background: rgba(255, 255, 255, 0.98);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  margin-top: 60px;
  width: 100%;
  box-sizing: border-box;
}

.container1 {
  max-width: 900px;
  margin: auto;
  background: rgba(255, 255, 255, 0.98);
  padding: 0px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  margin-top: 60px;
}

.tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 3px solid #edf2f7;
  gap: 10px;
}

.tab {
  width: auto;
  padding: 10px 25px;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: #4a5568;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 8px 8px 0 0;
  font-family: 'Times New Roman', Times, serif;
}

.tab.active {
  color: #1a365d;
  background: #e2e8f0;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #1a365d;
}

.form-group {
  margin-bottom: 20px;
  padding: 0;
  width: 100%;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #1a365d;
  font-family: 'Times New Roman', Times, serif;
}

input:focus,
textarea:focus,
select:focus,
input[type="color"]:focus,
input[type="file"]:focus,
.font-selector:focus,
.color-picker:focus,
.dimension-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.5);
  transition: box-shadow 0.3s ease;
}

button {
  width: calc(100% - 10px);
  background: #1a365d;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 5px;
  box-shadow: 0 4px 6px rgba(26, 54, 93, 0.1);
  font-family: 'Times New Roman', Times, serif;
}

button:hover {
  background: #2d3748;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(26, 54, 93, 0.2);
}

.invitation-preview {
  margin: 0 auto;
  width: 250px;
  height: 500px;
  border-radius: 12px !important;
  overflow: hidden !important;
  position: relative;
}

.invitation-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  border-radius: 12px !important;
  overflow: hidden !important;
}

video.invitation-background {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
  background: black;
}

.invitation-card {
  position: relative;
  z-index: 2;
  background: transparent;
  padding: 0;
  border-radius: 12px !important;
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden !important;
}

.invitation-content {
  position: relative;
  z-index: 2;
  background: transparent;
  padding: 0;
  border-radius: 12px !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; 
  align-items: center;
  width: 100%;
  min-height: 300px; 
  height: 100%;
  padding-bottom: 10px; 
}

.qr-section {
  position: relative;
  margin-top: auto;
  padding-bottom: 20px; 
  margin-bottom: 0; 
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px; 
  background: transparent;
}

.qr-code-container {
  border-radius: 5px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 5px !important;
  overflow: visible !important;
  box-sizing: content-box !important;
}

.qr-image {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.qr-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  object-fit: contain !important;
}

#qrcode img,
.qr-code-container img {
  border-radius: 0 !important;
  display: block !important;
  margin: 0 auto !important;
  padding: 0 !important;
  object-fit: contain !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

.guest-name {
  text-align: center;
  margin: 0;
  color: #ffffff;
  font-family: 'Times New Roman', Times, serif;
  font-size: 2em; 
  font-weight: bold;
  order: -1; 
  padding: 10px; 
  
  margin-bottom: 15px; 
  position: relative;
  width: 90%;
}

.guest-name.hidden {
  display: none;
}

.scanner {
  margin-top: 25px;
  text-align: center;
}

#reader {
  width: 100%;
  max-width: 600px;
  margin: 15px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.success {
  color: #046c4e;
  font-weight: 600;
  padding: 8px;
  border-radius: 8px;
  background: #def7ec;
  margin: 8px 0;
  font-family: 'Times New Roman', Times, serif;
}

.error {
  color: #c81e1e;
  font-weight: 600;
  padding: 8px;
  border-radius: 8px;
  background: #fde8e8;
  margin: 8px 0;
  font-family: 'Times New Roman', Times, serif;
}

h2 {
  color: #1a365d;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 600;
  font-family: 'Times New Roman', Times, serif;
}

#verificationResult {
  margin-top: 15px;
  padding: 15px;
  border-radius: 12px;
  background: #f8fafc;
}

.verification-icon {
  font-size: 48px;
  margin-bottom: 10px;
  text-align: center;
}

.success-icon {
  color: #046c4e;
}

.error-icon {
  color: #c81e1e;
}

.verification-status {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
  font-family: 'Times New Roman', Times, serif;
}

.status-message {
  padding: 10px;
  border-radius: 8px;
  margin: 10px 0;
  text-align: center;
  font-weight: 600;
}

.status-saving {
  background: #e2e8f0;
  color: #2d3748;
}

.status-success {
  background: #def7ec;
  color: #046c4e;
}

.status-error {
  background: #fde8e8;
  color: #c81e1e;
}

@media (max-width: 640px) {
  .container {
    padding: 15px;
    
  }

  input, 
  textarea, 
  button:not(.tab) {
    width: calc(100% - 10px);
    margin: 4px 5px;
  }

  .tab {
    padding: 8px 12px;
    font-size: 14px;
  }

  button {
    width: calc(100% - 10px);
  }

  .invitation-preview {
    
    min-height: 500px;
    max-height: 1000px;
    padding-bottom: 5px; 
  }
  
  
    .invitation-preview {
    height: 500px;
    min-height: 500px;
    max-height: 500px;
    padding-bottom: 5px; 
  }

  .invitation-content {
    min-height: 250px;
  }

  .qr-section {
    padding-bottom: 10px; 
  }

  .guest-name {
    font-size: 1.2em; 
  }

  #qrcode img,
  .qr-code-container img {
  }
}

#downloadButton {
  background: #059669;
}

#downloadButton:hover {
  background: #047857;
}

.downloading {
  background-color: #9ca3af !important;
  cursor: not-allowed;
  opacity: 0.8;
}

.invitation-preview.capturing {
  height: 500px !important;
  min-height: 500px !important;
  max-height: 500px !important;
  display: block !important;
  visibility: visible !important;
}

.qr-section.capturing {
  display: flex !important;
  visibility: visible !important;
}

.capturing {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#invitationPreview.capturing {
  position: relative !important;
  z-index: 9999 !important;
}

.qr-section.capturing {
  position: absolute !important;
  bottom: 10px !important;
  left: 0 !important;
  right: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

input[type="file"] {
  width: calc(100% - 24px);
  padding: 10px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  margin: 5px;
  box-sizing: border-box;
  background: white;
}

textarea {
  resize: vertical;
  min-height: 100px;
  font-family: 'Times New Roman', Times, serif;
}

.invitation-preview h3 {
  font-family: 'Times New Roman', Times, serif;
  text-align: center;
}

.font-selector, .color-picker {
  width: calc(100% - 24px);
  padding: 10px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  margin: 5px;
  box-sizing: border-box;
  background: white;
}

.font-selector option {
  padding: 5px;
}

.color-picker {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: calc(100% - 24px);
  height: 40px;
  padding: 5px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background-color: white;
  cursor: pointer;
  margin: 5px;
}

.color-picker::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}

.color-picker::-moz-color-swatch {
  border: none;
  border-radius: 4px;
}

.download-icon-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  box-shadow: none;
}

.download-icon-button svg {
  width: 24px;
  height: 24px;
  fill: #1a365d;
  transition: transform 0.3s ease;
}

.download-icon-button:hover svg {
  transform: scale(1.1);
}

.download-icon-button.downloading svg {
  opacity: 0.5;
}

.invitation-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.visibility-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  box-shadow: none;
}

.visibility-toggle svg {
  width: 24px;
  height: 24px;
  fill: #1a365d;
  transition: transform 0.3s ease;
}

.visibility-toggle:hover svg {
  transform: scale(1.1);
}

.download-instructions {
  margin-top: 15px;
  padding: 10px;
  background: #e5edff;
  border-radius: 8px;
  color: #1a365d;
  text-align: center;
  display: none; /* Hidden by default */
}

#previewContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px auto;
  width: 100%;
}

#previewContainer h3 {
  text-align: center;
  color: #1a365d;
  margin-bottom: 20px;
}

.verification-details {
  margin-top: 20px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.verification-details p {
  margin: 8px 0;
  font-size: 16px;
  line-height: 1.5;
}

.verification-details p strong {
  color: #1a365d;
  font-weight: 600;
}

.dimension-input {
  width: calc(100% - 24px);
  padding: 10px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  margin: 5px;
  box-sizing: border-box;
  -moz-appearance: textfield;
}

.dimension-input::-webkit-outer-spin-button,
.dimension-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#invitationWidth,
#invitationHeight {
  width: calc(100% - 24px);
  padding: 10px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  margin: 5px;
  box-sizing: border-box;
}

#invitationWidth,
#invitationHeight {
  -moz-appearance: textfield;
}

#invitationWidth::-webkit-outer-spin-button,
#invitationWidth::-webkit-inner-spin-button,
#invitationHeight::-webkit-outer-spin-button,
#invitationHeight::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.scan-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.camera-scan, .file-scan {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.camera-scan p, .file-scan p {
  margin-bottom: 10px;
  font-weight: bold;
  color: #1a365d;
}

.file-scan {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  margin-top: 20px;
}

.file-scan p {
  margin-bottom: 10px;
  font-weight: bold;
  color: #1a365d;
}

#camera-reader {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#qrFileInput {
  margin: 0 auto;
  padding: 10px;
  background: #fff;
  border: 2px dashed #ccc;
  border-radius: 8px;
  cursor: pointer;
  max-width: 300px;
}

#qrFileInput:hover {
  border-color: #1a365d;
}

/* General Footer Styling */
html {
  scroll-behavior: smooth;
}

.footer {
  background-color:;
  color: #1a365d;
  padding: 20px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;  /* Center content horizontally */
  margin-top: 50px;
}

.footer-info {
  display: flex;
  justify-content: center; /* Center the columns horizontally */
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-info > div {
  margin: 0 50px;
  max-width: 300px;
}

.footer-logo {
  top: 50px;
  margin-bottom: 20px;
}

.footer-logo-img {
  width: 100px;  /* Adjust the logo size as needed */
  margin-top: 20px;
}

.footer-line {
  border: 0.5px solid #ccc;
  padding: 0px; /* Optional: Adds space inside the border */
  margin: 10px; /* Optional: Adds space outside the border */
  width: 80%;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  justify-content: center;  /* Center the social icons horizontally */
  margin-bottom: 10px;
}

.footer-social a {
  margin: 0 10px;
}

.footer-social a img {
  width: 25px;  /* Adjust the icon size as needed */
}

.footer p {
  margin-top: 20px;
  font-size: 16px;
}

.footer-useful-links p a {
  color: #fff;
  text-decoration: none;
}

.footer-help p a {
  color: #fff;
  text-decoration: none;
}

.copy-rights p {
  text-align: center;
}

/* Responsive Adjustments */

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) {
  .footer-info {
      flex-direction: row; /* Horizontal layout for larger screens */
  }

  .footer-info > div {
      max-width: 300px;
  }

  .footer-social img {
      width: 35px; /* Slightly larger icons for large screens */
  }
}

/* Medium Devices (Tablets, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .footer-info {
      flex-direction: row;
  }

  .footer-info > div {
      max-width: 250px;
  }

  .footer-social img {
      width: 30px;
  }
}

/* Small Devices (Mobiles, less than 768px) */
@media (max-width: 767px) {
  .footer-info {
      flex-direction: column; /* Stack columns vertically on small screens */
      align-items: center;
  }

  .footer-info > div {
      max-width: 100%; /* Full width for each section */
      margin-bottom: 20px; /* Add space between sections */
      text-align: center;
  }

  .footer-logo-img {
      width: 80px; /* Smaller logo on mobile */
  }

  .footer-social img {
      width: 25px; /* Smaller icons on mobile */
  }

  .footer-social {
      margin-bottom: 10px;
  }
}

.form-columns {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  width: 100%;
}

.form-column {
  flex: 1;
  min-width: 300px;
  width: 100%;
}

.form-group {
  margin-bottom: 20px;
  padding: 0;
  width: 100%;
}

input:not([type="file"]), 
select,
textarea,
button:not(.tab),
.font-selector,
.color-picker,
.dimension-input {
  width: 100%;
  height: 45px;
  padding: 10px;
  margin: 5px 0;
  box-sizing: border-box;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
}

textarea {
  height: auto;
  min-height: 100px;
}

input[type="color"] {
  height: 45px;
  padding: 5px;
}

input[type="file"] {
  width: 100%;
  height: 45px;
  padding: 8px;
  margin: 5px 0;
  box-sizing: border-box;
}

.guest-input-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.guest-input-container .form-group {
  flex: 1;
  min-width: 200px;
  margin-bottom: 10px;
}

.guest-input-container input {
  font-size: 16px;
}

#addGuestBtn {
  height: 40px;
  margin-top: 28px;
  background-color: #4299e1;
}

#addGuestBtn {
  width: 100%;
  margin-top: 10px;
}

.preview-section {
  padding: 20px;
}

.preview-section h3 {
  color: #1a365d;
  margin-top: 0;
  margin-bottom: 20px;
}

.guest-list-container {
  margin-top: 10px;
}

.guest-list-table {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.guest-list-header {
  display: flex;
  background: #edf2f7;
  font-weight: bold;
  padding: 10px;
}

.guest-list-row {
  display: flex;
  border-top: 1px solid #e2e8f0;
  padding: 10px;
}

.guest-list-row:nth-child(even) {
  background-color: #f7fafc;
}

.guest-name-cell {
  flex: 2;
}

.guest-phone-cell {
  flex: 2;
}

.guest-action-cell {
  flex: 1;
  text-align: center;
}

.delete-guest-btn {
  background: #e53e3e;
  color: white;
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: auto;
}

.delete-guest-btn:hover {
  background: #c53030;
}

.no-guests {
  padding: 15px;
  text-align: center;
  color: #718096;
  font-style: italic;
}

.cta-button {
  background: linear-gradient(to right, #4299e1, #3182ce);
  color: white;
  font-size: 18px;
  padding: 12px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(66, 153, 225, 0.3);
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(66, 153, 225, 0.4);
}

#generatedInvitationsContainer {
  margin-top: 30px;
}

#generatedInvitationsContainer h3 {
  color: #1a365d;
  margin-bottom: 20px;
  text-align: center;
}

.invitation-card-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.invitation-actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.whatsapp-link {
  background: #25D366;
  color: white;
  padding: 8px 15px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.whatsapp-link:hover {
  background: #128C7E;
}

.download-link {
  background: #4299e1;
  color: white;
  padding: 8px 15px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.download-link:hover {
  background: #3182ce;
}

.confirm-container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.confirm-container1 {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.confirm-prompt h3 {
  color: #1a365d;
  text-align: center;
  margin-bottom: 30px;
  font-size: 24px;
}

.confirm-buttons {
  
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.space {
  margin-bottom: 10px;
}

.confirm-button {
  background: #48bb78;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s;
  width: 250px;
  margin: 10px auto;
  display: block;
}

.confirm-button:hover {
  background: #38a169;
}

.decline-button {
  background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s;
  width: 250px;
  margin: 10px auto;
  display: block;
}

.success-message, .error-message, .apology-message {
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.success-message {
  background: #f0fff4;
  border: 1px solid #c6f6d5;
}

.error-message {
  background: #fff5f5;
  border: 1px solid #fed7d7;
}

.apology-message {
  background: #fffaf0;
  border: 1px solid #feebc8;
}

.success-message h3, .error-message h3, .apology-message h3 {
  margin-top: 0;
  color: #1a365d;
}

.invitation-view {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  overflow-x: hidden;
}

.download-invitation {
  margin-top: 20px;
}

.download-button {
  background: #4299e1;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

.download-button:hover {
  background: #3182ce;
}

@font-face {
  font-family: 'Droid Arabic Kufi';
  src: url('https://fonts.googleapis.com/earlyaccess/droidarabickufi.css');
}

@font-face {
  font-family: 'Cairo';
  src: url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');
}

@font-face {
  font-family: 'Scheherazade';
  src: url('https://fonts.googleapis.com/css2?family=Scheherazade+New&display=swap');
}

@font-face {
  font-family: 'Tajawal';
  src: url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap');
}

@font-face {
  font-family: 'Amiri';
  src: url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&display=swap');
}

@media (max-width: 768px) {
  .container {
    padding: 15px;
    margin-top: 50px;
  }

  .form-columns {
    flex-direction: column;
    gap: 10px;
  }

  .form-column {
    min-width: 100%;
  }

  .form-group {
    margin-bottom: 15px;
  }

  input:not([type="file"]), 
  select,
  textarea,
  button:not(.tab),
  .font-selector,
  .color-picker,
  .dimension-input {
    font-size: 16px;
    margin: 3px 0;
  }

  .guest-input-container {
    flex-direction: column;
    gap: 5px;
  }

  .guest-input-container .form-group {
    width: 100%;
  }

  #addGuestBtn {
    width: 100%;
    margin-top: 10px;
  }

  .preview-section {
    padding: 10px;
  }

  .form-section {
    padding: 10px;
    margin-bottom: 15px;
  }

  button:not(.tab) {
    width: 100%;
    margin: 5px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 10px;
    margin-top: 45px;
  }

  input, 
  textarea, 
  button:not(.tab) {
    height: 40px;
    font-size: 16px;
  }
}