* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #070707 0%, #10102b 100%);
  min-height: 100vh;
  padding: 20px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
header {
  text-align: center;
  color: rgb(255, 255, 255);
  margin-bottom: 30px;
}
h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.auth-section {
  background: rgba(255, 255, 255, 0.158);
  border: 1px solid rgba(241, 241, 241, 0.801);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

/* Ensure inputs keep normal (dark) text and placeholders */
.auth-section input,
.auth-section textarea,
.auth-section select {
  color: #111111;
}
.auth-section input::placeholder,
.auth-section textarea::placeholder {
  color: #777777;
  opacity: 1;
}

/* Make headings, labels, small text and buttons white */
.auth-section h2,
.auth-section label,
.auth-section small,
.auth-section button {
  color: #ffffff;
}
.auth-section.hidden {
  display: none;
}
.input-group {
  margin-bottom: 15px;
}
label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}
input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
}
input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: #667eea;
}
button {
  background: #667eea;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
}
button:hover {
  background: #5568d3;
}
button:active {
  transform: scale(0.98);
}
button:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.logout-btn {
  background: #e74c3c;
  margin-left: 10px;
}
.logout-btn:hover {
  background: #c0392b;
}
.upload-section {
  background: rgba(255, 255, 255, 0.158);
  border: 1px solid rgba(241, 241, 241, 0.801);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  color: rgba(255, 255, 255, 1);
}
.drop-zone {
  border: 3px dashed #ffffff;
  border-radius: 12px;
  padding: 60px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: #f8f9ff00;
}
.drop-zone:hover,
.drop-zone.drag-over {
  background: #25252500;
  border-color: #5568d300;
  transform: scale(1.03);
}
.drop-zone-text {
  font-size: 18px;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 10px;
}
.drop-zone-hint {
  font-size: 14px;
  color: #cfcfcf;
}
.status-message {
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
}
.status-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.status-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.status-message.info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 1);
}
.gallery-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
}
.gallery-item-info {
  padding: 12px;
}
.gallery-item-name {
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gallery-item-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}
.gallery-item-actions button {
  flex: 1;
  padding: 6px 12px;
  font-size: 12px;
  color: white;
}
.copy-btn {
  background: #3498db;
}
.copy-btn:hover {
  background: #2980b9;
}
.delete-btn {
  background: #e74c3c;
}
.delete-btn:hover {
  background: #c0392b;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}
.modal.show {
  display: flex;
}
.modal-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.hidden {
  display: none;
}
.loading {
  text-align: center;
  padding: 20px;
  color: #667eea;
  font-weight: 600;
}
.user-info {
  background: rgba(255, 255, 255, 0.158);
  border: 1px solid rgba(241, 241, 241, 0.801);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.user-info-text {
  color: #ffffff;
  font-weight: 600;
}

.confirm-dialog {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.confirm-dialog h3 {
  margin-bottom: 15px;
  color: #333;
}

.confirm-dialog p {
  margin-bottom: 25px;
  color: #666;
  word-break: break-word;
}

.confirm-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.confirm-yes {
  background: #e74c3c;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.confirm-yes:hover {
  background: #c0392b;
}

.confirm-no {
  background: #95a5a6;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.confirm-no:hover {
  background: #7f8c8d;
}
