/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #f5f5f5;
  color: #333;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  touch-action: manipulation;
}

@media (max-width: 768px) {
  .btn {
    padding: 12px 16px;
    font-size: 14px;
    min-height: 44px; /* Better touch target */
  }
}

.btn-primary {
  background-color: #0070f3;
  color: white;
}

.btn-primary:hover {
  background-color: #0051cc;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
}

.btn-danger:hover {
  background-color: #c82333;
}

.btn-success {
  background-color: #28a745;
  color: white;
}

.btn-success:hover {
  background-color: #218838;
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0070f3;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table th,
.table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.table tr:hover {
  background-color: #f8f9fa;
}

@media (max-width: 768px) {
  .table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table th,
  .table td {
    padding: 8px;
    font-size: 14px;
    white-space: nowrap;
  }

  .table th {
    font-size: 12px;
  }
}

.card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .card {
    padding: 15px;
    margin-bottom: 15px;
  }

  .card h1 {
    font-size: 24px;
  }

  .card h2 {
    font-size: 20px;
  }

  .card h3 {
    font-size: 18px;
  }
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
  gap: 15px;
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }

  .header > div:last-child {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .header > div:last-child .btn {
    width: 100%;
  }
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.photo-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.photo-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .photo-item img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .photo-item img {
    height: 150px;
  }
}

.photo-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.photo-actions button {
  padding: 5px 10px;
  font-size: 12px;
  min-height: 32px;
}

@media (max-width: 480px) {
  .photo-actions {
    top: 5px;
    right: 5px;
    gap: 3px;
  }

  .photo-actions button {
    padding: 4px 8px;
    font-size: 11px;
    min-height: 28px;
  }
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .modal-content {
    padding: 20px;
    width: 95%;
    max-height: 95vh;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h2 {
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.close-btn:hover {
  color: #000;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-item input[type="checkbox"] {
  width: auto;
}

.error {
  color: #dc3545;
  font-size: 14px;
  margin-top: 5px;
}

.success {
  color: #28a745;
  font-size: 14px;
  margin-top: 5px;
}

/* Image Viewer Modal */
.image-viewer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.image-viewer-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: zoomIn 0.2s ease-in;
}

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

.image-viewer-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.image-viewer-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 32px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10000;
}

.image-viewer-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.image-viewer-footer {
  margin-top: 20px;
  color: white;
  text-align: center;
}

.image-viewer-footer p {
  margin: 0;
  font-size: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.image-viewer-counter {
  margin-top: 8px !important;
  font-size: 14px !important;
  opacity: 0.8;
}

.image-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 48px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10000;
  line-height: 1;
  padding: 0;
}

.image-viewer-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.image-viewer-prev {
  left: 20px;
}

.image-viewer-next {
  right: 20px;
}

@media (max-width: 768px) {
  .image-viewer-overlay {
    padding: 10px;
  }

  .image-viewer-content {
    max-width: 95vw;
    max-height: 95vh;
  }

  .image-viewer-image {
    max-height: 80vh;
  }

  .image-viewer-close {
    top: -35px;
    width: 35px;
    height: 35px;
    font-size: 28px;
  }

  .image-viewer-nav {
    width: 50px;
    height: 50px;
    font-size: 36px;
  }

  .image-viewer-prev {
    left: 10px;
  }

  .image-viewer-next {
    right: 10px;
  }

  .image-viewer-footer {
    margin-top: 15px;
  }

  .image-viewer-footer p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .image-viewer-overlay {
    padding: 5px;
  }

  .image-viewer-close {
    top: -30px;
    width: 30px;
    height: 30px;
    font-size: 24px;
  }

  .image-viewer-nav {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .image-viewer-prev {
    left: 5px;
  }

  .image-viewer-next {
    right: 5px;
  }

  .image-viewer-image {
    max-height: 75vh;
  }
}

.photo-item {
  cursor: pointer;
  transition: transform 0.2s;
}

.photo-item:hover {
  transform: scale(1.05);
}

.photo-item img {
  cursor: pointer;
}

.photo-item video {
  cursor: pointer;
  background: #000;
}

.photo-item video:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .photo-item:hover {
    transform: none; /* Disable hover effect on touch devices */
  }
}

/* Additional mobile improvements */
@media (max-width: 768px) {
  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 18px;
  }

  p {
    font-size: 14px;
  }

  /* Better spacing for mobile */
  .form-group {
    margin-bottom: 15px;
  }

  /* Stack action buttons on mobile */
  div[style*="display: flex"] {
    flex-wrap: wrap;
  }

  /* Checkbox group mobile */
  .checkbox-group {
    max-height: 250px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 18px;
  }

  h3 {
    font-size: 16px;
  }
}

/* Login page mobile styles */
@media (max-width: 768px) {
  div[style*="minHeight: '100vh'"] {
    padding: 20px 10px;
  }

  div[style*="maxWidth: '400px'"] {
    max-width: 100% !important;
    margin: 0 10px;
  }
}

/* Prevent text size adjustment on iOS */
@media (max-width: 768px) {
  input[type="text"],
  input[type="password"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  textarea,
  select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }
}

/* Better touch targets for mobile */
@media (max-width: 768px) {
  a, button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn {
    min-height: 44px;
  }
}

/* Table responsive wrapper */
@media (max-width: 768px) {
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -10px;
    padding: 0 10px;
  }
}


