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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f7f7f7;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header styles */
header {
  background-color: #2c3e50;
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#app-title {
  font-size: 1.5rem;
  margin: 0;
}

.photographer-selector select,
.language-selector select {
  padding: 0.5rem;
  border-radius: 4px;
  border: none;
  background-color: #34495e;
  color: white;
  min-width: 150px;
}

.photographer-selector select:focus,
.language-selector select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.photographer-selector select option,
.language-selector select option {
  background-color: #2c3e50;
  color: white;
}

#connection-status {
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  white-space: nowrap;
}

#connection-status.online {
  background-color: #27ae60;
}

#connection-status.offline {
  background-color: #e74c3c;
}

#connection-status.pending {
  background-color: #f39c12;
}

/* Main content */
main {
  flex: 1;
  padding: 1rem;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}



.content {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}

/* Form styles */
.form-section {
  margin-bottom: 2rem;
}

#form-title {
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

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

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input, select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

input:focus, select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Signature pad */
.signature-container {
  margin-top: 0.5rem;
}

.signature-pad {
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
  height: 200px;
  background-color: #fff;
  margin-bottom: 0.5rem;
}

/* Buttons */
.button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.primary {
  background-color: rgb(122, 0, 223);
  color: white;
}

.primary:hover {
  background-color: rgba(122, 0, 223, 0.8);
}

.secondary {
  background-color: #ecf0f1;
  color: #2c3e50;
}

.secondary:hover {
  background-color: #dde4e6;
}

.form-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.submit-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

#submit-button {
  min-width: 300px;
  height: 60px;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: normal;
  text-align: center;
  padding: 10px 30px;
  line-height: 1.2;
}



/* Notification */
.notification {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  width: 400px;
  padding: 1rem;
  background-color: #3498db;
  color: white;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.notification.show {
  opacity: 1;
  visibility: visible;
}

.notification.success {
  background-color: #27ae60;
}

.notification.warning {
  background-color: #f39c12;
}

.notification.error {
  background-color: #e74c3c;
}

#notification-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 1rem;
}

/* Footer */
footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: auto;
}

/* Consent text styles */
.consent-text {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 20px;
  margin: 20px 0;
}

.gdpr-section {
  margin-top: 20px;
  padding-top: 20px;
  margin-bottom: 30px;
  border-top: 1px solid #dee2e6;
}

.gdpr-section p {
  color: #495057;
  font-size: 0.95em;
  line-height: 1.5;
}

.agreement-text {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #dee2e6;
}

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

.language-section:last-child {
  margin-bottom: 0;
}

.language-section h3 {
  color: #2c3e50;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.language-section p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  text-align: justify;
}

.language-section p:last-child {
  margin-bottom: 0;
}

.language-section strong {
  color: #2c3e50;
}

/* Responsive adjustments for consent text */
@media (max-width: 768px) {
  .consent-text {
    padding: 1rem;
  }
  
  .language-section p {
    font-size: 0.85rem;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .language-selector {
    margin-top: 0.5rem;
  }
  
  #connection-status {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  
  .form-actions {
    justify-content: center;
  }

  .submit-container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
  }

  #submit-button {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 60px;
    padding: 15px 20px;
  }


}

button {
  background-color: rgb(122, 0, 223);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s;
}

button:hover {
  background-color: rgba(122, 0, 223, 0.8);
}

button:disabled {
  background-color: rgba(122, 0, 223, 0.5);
  cursor: not-allowed;
}

#submit-form {
  background-color: rgb(122, 0, 223);
  width: 100%;
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
}

#submit-form:hover {
  background-color: rgba(122, 0, 223, 0.8);
}

#clear-signature {
  background-color: #f8f9fa;
  color: rgb(122, 0, 223);
  border: 1px solid rgb(122, 0, 223);
}

#clear-signature:hover {
  background-color: rgba(122, 0, 223, 0.1);
}



/* Text size toggle */
.text-size-toggle {
  margin: 0 10px;
}

.icon-button {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.icon-button:hover {
  background: #f0f0f0;
  border-color: #999;
}

.text-size-icon {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

/* Large text mode */
body.large-text {
  font-size: 20px;
}

body.large-text .form-field label {
  font-size: 24px;
  margin-bottom: 8px;
}

body.large-text .form-field input {
  font-size: 22px;
  height: 56px;
  padding: 12px;
}

body.large-text #consent-text,
body.large-text .consent-text,
body.large-text .language-section p,
body.large-text .gdpr-section p {
  font-size: 20px !important;
  line-height: 1.6;
}

body.large-text .language-section h3 {
  font-size: 24px;
  margin-bottom: 16px;
  font-weight: bold;
}

body.large-text #submit-button {
  font-size: 24px;
  padding: 20px 40px;
  min-height: 70px;
}

body.large-text select {
  font-size: 22px;
  height: 56px;
  padding: 12px;
}

body.large-text #app-title {
  font-size: 28px;
}

body.large-text .photographer-selector select,
body.large-text .language-selector select {
  font-size: 20px;
  padding: 8px 12px;
}

body.large-text #clear-signature {
  font-size: 20px;
  padding: 12px 24px;
}

/* Make consent text sections more readable in large text mode */
body.large-text .consent-text {
  padding: 25px;
}

body.large-text .gdpr-section {
  margin-top: 25px;
  padding-top: 25px;
}

body.large-text .agreement-text {
  margin-top: 35px;
  padding-top: 25px;
  font-size: 22px;
  font-weight: 500;
}

/* Ensure consistent large text in all consent sections */
body.large-text .language-section *,
body.large-text .gdpr-section *,
body.large-text .agreement-text * {
  font-size: 20px !important;
}

/* Active state for text size button */
.icon-button.active {
  background: #e0e0e0;
  border-color: #666;
}

.icon-button.active .text-size-icon {
  color: #000;
}

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

.modal.show {
  display: flex;
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.modal-content h2 {
  margin-bottom: 1rem;
  color: #2c3e50;
}

.modal-content p {
  margin-bottom: 1.5rem;
  color: #666;
}

.modal-content .form-field {
  margin-bottom: 1.5rem;
}

.modal-content input {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  text-align: center;
  letter-spacing: 2px;
}

.modal-content input:focus {
  border-color: rgb(122, 0, 223);
  outline: none;
}

.modal-content button {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: 500;
}

/* Prevent scrolling when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Confirmation modal specific styles */
.confirmation-details {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
}

.confirmation-details p {
  margin: 0.5rem 0;
  color: #2c3e50;
}

.confirmation-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.confirmation-actions .button {
  min-width: 120px;
}

/* Photographer verification modal styles */
.verification-section {
  margin-top: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 5px;
  border: 1px solid #dee2e6;
}

.verification-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.verification-actions .button {
  min-width: 120px;
}

/* Photographer review section styles */
.photographer-review-section {
  margin-top: 20px;
  padding: 15px;
  background-color: #e8f4f8;
  border-radius: 5px;
  border: 2px solid #007bff;
}

.photographer-review-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #007bff;
  font-size: 1.1em;
}

.review-details p {
  margin: 8px 0;
  font-size: 1em;
}

.signature-review {
  margin-top: 15px;
}

.signature-review img {
  display: block;
  margin-top: 8px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  max-width: 100%;
  height: auto;
  width: 100%;
  object-fit: contain;
  border: 1px solid #dee2e6;
  background-color: white;
}

.signature-image-container {
  width: 100%;
  max-width: 300px;
  height: 120px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 8px;
}

.signature-image-container img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0;
  border: none;
  box-shadow: none;
} 