.avatar {
    vertical-align: middle;
    width: 150px;
    height: auto;
}

#title-table {
    text-align: center;
    width: 100%;
    /* margin-top: 5%;
    margin-bottom: 5%; */
    margin-bottom: 20px;
}

/* ==========================================
   COMPLETE GLOBAL CSS - Merged from All Pages
   (Copy, Print, Scan, Master, Master EPD)
========================================== */

/* CSS Variables (Root) */

:root {
  --primary-color: #2563eb;
  --secondary-color: #10b981;
  --text-color: #1f2937;
  --background-color: #f9fafb;
  --input-border-color: #d1d5db;
  --input-focus-color: #3b82f6;
}

/* Global Reset */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Global Body */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ==========================================
   NAVIGATION BUTTON STYLES (Master Pages)
========================================== */

.nav-button {
  width: 30vw;
  margin: 0 5px;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  transition: all 0.3s ease;
}

.btn-active {
  background-color: #2563eb;
  color: white;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn-inactive {
  background-color: #e5e7eb;
  color: #1f2937;
}

.btn-inactive:hover {
  background-color: #93c5fd;
  color: #1f2937;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(147, 197, 253, 0.2);
}

/* ==========================================
   FOOTER STYLES (Master Pages)
========================================== */

.page-footer {
  padding: 20px 0;
  border-top: 1px solid #e5e7eb;
  background: linear-gradient(to right, #f9fafb, #f3f4f6);
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  height: 200px;
  width: auto;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.05));
  transition: transform 0.3s ease;
}

.footer-brand img:hover {
  transform: translateY(-2px);
}

.footer-brand span {
  font-weight: 600;
  color: #374151;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.footer-contact {
  display: flex;
  align-items: center;
  font-size: 15px;
  color: #4b5563;
  padding: 10px 18px;
  border-radius: 50px;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.footer-contact:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.footer-contact i {
  color: #2563eb;
  margin-right: 10px;
  font-size: 16px;
}

.footer-contact a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

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

.footer-copyright {
  text-align: center;
  font-size: 12px;
  color: #6b7280;
}

/* ==========================================
   SERVICE WRAPPERS (Copy, Print, Scan)
========================================== */

.copy-service-wrapper,
.print-service-wrapper,
.scan-service-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background-color);
  padding: 2rem 1rem;
}

/* ==========================================
   SERVICE CONTAINERS
========================================== */

.copy-service-container,
.print-service-container,
.scan-service-container {
  width: 100%;
  max-width: 700px;
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
  padding: 3rem 2rem;
}

/* ==========================================
   SERVICE HEADERS
========================================== */

.copy-service-header,
.print-service-header,
.scan-service-header {
  text-align: center;
  margin-bottom: 2rem;
}

.copy-service-logo,
.print-service-logo,
.scan-service-logo {
  max-width: 150px;
  margin-bottom: 1rem;
}

.copy-service-title,
.print-service-title,
.scan-service-title {
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.copy-service-subtitle,
.print-service-subtitle,
.scan-service-subtitle {
  color: #6b7280;
  font-size: 1.125rem;
}

/* ==========================================
   FORM SECTIONS
========================================== */

.form-section {
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.25rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.section-description {
  color: #6b7280;
  margin-bottom: 1rem;
}

.section-label {
  font-weight: 500;
  color: #333333;
  margin-bottom: 0.5rem;
}

/* ==========================================
   EMAIL INPUTS
========================================== */

.email-recipients {
  display: grid;
  gap: 1rem;
}

.email-input-group {
  display: grid;
  gap: 0.5rem;
}

.email-label {
  color: var(--text-color);
}

.email-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--input-border-color);
  border-radius: 0.5rem;
  transition: border-color 0.3s ease;
}

.email-input:focus {
  outline: none;
  border-color: var(--input-focus-color);
}

.email-input-with-remove {
  display: flex;
  align-items: center;
  width: 100%;
}

.email-input-with-remove .email-input {
  flex: 1;
}

.remove-email-btn {
  margin-left: 0.5rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ef4444;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.remove-email-btn:hover {
  background-color: #b91c1c;
}

.add-email-btn {
  align-self: center;
  background-color: var(--secondary-color);
  color: #ffffff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.add-email-btn:hover {
  background-color: #059669;
}

/* ==========================================
   FILE UPLOAD (Print specific)
========================================== */

.file-upload-group {
  display: grid;
  gap: 0.5rem;
}

.file-input-wrapper {
  position: relative;
  width: 100%;
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-input-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--input-border-color);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.file-input-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--input-border-color);
  margin-bottom: 1rem;
}

.file-input-placeholder span {
  color: #6b7280;
}

.file-input:hover + .file-input-placeholder,
.file-input:focus + .file-input-placeholder {
  border-color: var(--primary-color);
}

.file-name-display {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: #f3f4f6;
  border-radius: 0.75rem;
  margin-top: 1rem;
}

.file-name-display .file-icon {
  width: 32px;
  height: 32px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.file-name-display span {
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remove-file-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-file-btn svg {
  width: 24px;
  height: 24px;
}

/* ==========================================
   PRINTER SELECTION
========================================== */

.printer-selection {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.printer-action-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.selected-printer {
  padding: 0.75rem;
  background-color: #f3f4f6;
  border-radius: 0.5rem;
  min-height: 3rem;
  color: #4b5563;
  display: flex;
  align-items: center;
}

.printer-action-btn {
  background-color: #2563eb;
  color: #ffffff !important;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  text-align: center;
  font-weight: 500;
  font-size: 1rem;
  display: block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.printer-action-btn:hover {
  background-color: #1d4ed8;
}

#printer-action,
#printer-action-epd {
  height: auto;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================
   PAGE & COPIES INPUTS
========================================== */

.page-input-group,
.copies-input-group,
.select-group {
  display: grid;
  gap: 0.5rem;
}

.page-input,
.form-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--input-border-color);
  border-radius: 0.5rem;
  transition: border-color 0.3s ease;
}

.page-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--input-focus-color);
}

.copies-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--input-border-color);
  border-radius: 0.5rem;
  overflow: hidden;
}

.copies-btn {
  background-color: #f3f4f6;
  border: none;
  padding: 0.75rem;
  cursor: pointer;
}

.copies-input {
  flex-grow: 1;
  text-align: center;
  border: none;
  padding: 0.75rem;
}

/* ==========================================
   PAGE RANGE (Print specific)
========================================== */

.custom-page-range {
  display: grid;
  gap: 0.25rem;
}

.custom-range-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--input-border-color);
  border-radius: 0.5rem;
}

.page-range-hint {
  color: #6b7280;
  font-size: 0.75rem;
}

/* ==========================================
   ORIENTATION SECTION (Print specific)
========================================== */

#orientation-section {
  transition: all 0.3s ease;
  overflow: hidden;
}

#orientation-section .select-group {
  margin-top: 0.5rem;
}

/* ==========================================
   SUBMIT BUTTON
========================================== */

.submit-section {
  margin-top: 2rem;
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover:not(.disabled) {
  background-color: #1d4ed8;
}

.submit-btn.disabled {
  background-color: #93c5fd;
  cursor: not-allowed;
}

/* ==========================================
   TERMS & CONDITIONS
========================================== */

.terms-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.terms-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.terms-checkbox input {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--input-border-color);
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.terms-checkbox input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.terms-checkbox span {
  color: #4b5563;
  font-size: 0.875rem;
}

.terms-checkbox a {
  color: var(--primary-color);
  text-decoration: none;
}

/* ==========================================
   MODAL STYLING
========================================== */

.modal-dialog {
  max-height: 80vh;
}

.modal-body {
  max-height: 50vh;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  gap: 1rem;
}

.btn-modal {
  flex-grow: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-reject {
  background-color: #ef4444;
  color: #ffffff;
}

.btn-reject:hover {
  background-color: #b91c1c;
}

.btn-accept {
  background-color: var(--primary-color);
  color: #ffffff;
}

.btn-accept:hover {
  background-color: #1d4ed8;
}

/* ==========================================
   RESPONSIVE DESIGN
========================================== */

/* Mobile (max-width: 640px) */

@media (max-width: 640px) {
  .footer-content {
    flex-direction: column;
    gap: 20px;
  }

  .footer-brand img {
    height: 100px;
  }

  .avatar {
    width: 35vw;
    height: auto;
  }
}

/* Mobile (max-width: 600px) */

@media (max-width: 600px) {
  .copy-service-container,
  .print-service-container,
  .scan-service-container {
    padding: 2rem 1rem;
  }

  .copy-service-title,
  .print-service-title,
  .scan-service-title {
    font-size: 2rem;
  }

  .printer-action-group {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Tablet and Desktop (min-width: 768px) */

@media (min-width: 768px) {
  .printer-action-group {
    flex-direction: row;
    align-items: center;
  }

  .selected-printer {
    flex: 1;
  }

  .printer-action-btn {
    white-space: nowrap;
  }
}
