/* Volume Create Form Styles - Blue Theme */

* {
  box-sizing: border-box;
}

.volume-create-container {
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

.volume-create-wrapper {
  width: 100%;
  max-width: 700px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow:
    0 20px 40px rgba(25, 118, 210, 0.15),
    0 8px 32px rgba(33, 150, 243, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.volume-create-form {
  padding: 40px;
}

.form-title {
  margin: 0 0 32px 0;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  position: relative;
}

.form-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2196f3, #42a5f5);
  border-radius: 2px;
}

/* Alert Styles */
.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-weight: 500;
  position: relative;
  animation: slideInAlert 0.3s ease-out;
}

.alert-error {
  background: linear-gradient(135deg, #ffebee, #ffcdd2);
  border: 2px solid #ef5350;
  color: #c62828;
}

.alert-success {
  background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
  border: 2px solid #66bb6a;
  color: #2e7d32;
}

.alert-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.alert-message {
  flex: 1;
}

.alert-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.alert-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.1);
}

@keyframes slideInAlert {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #1565c0;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e3f2fd;
  border-radius: 12px;
  font-size: 16px;
  background: #fafbff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.form-input:focus {
  outline: none;
  border-color: #2196f3;
  background: white;
  box-shadow:
    0 0 0 4px rgba(33, 150, 243, 0.1),
    0 8px 24px rgba(33, 150, 243, 0.15);
  transform: translateY(-2px);
}

.form-input:hover:not(:focus) {
  border-color: #64b5f6;
  background: #f8fbff;
}

.form-input:disabled {
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

.form-input::placeholder {
  color: #90a4ae;
  font-style: italic;
}

.labels-container {
  border: 2px dashed #bbdefb;
  border-radius: 16px;
  padding: 24px;
  background: linear-gradient(135deg, #f8fbff, #f0f8ff);
  position: relative;
  overflow: hidden;
}

.labels-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #2196f3, transparent);
}

.labels-empty {
  text-align: center;
  color: #78909c;
  font-style: italic;
  margin: 20px 0;
  font-size: 14px;
}

.label-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  align-items: stretch;
  animation: fadeInUp 0.4s ease-out;
}

.label-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e1f5fe;
  border-radius: 10px;
  font-size: 14px;
  background: white;
  transition: all 0.3s ease;
  min-width: 0;
}

.label-key {
  max-width: 200px;
}

.label-input:focus {
  outline: none;
  border-color: #03a9f4;
  box-shadow: 0 0 0 3px rgba(3, 169, 244, 0.1);
  transform: translateY(-1px);
}

.label-input:disabled {
  background: #f0f0f0;
  color: #999;
}

.delete-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.delete-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #d32f2f, #c62828);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(244, 67, 54, 0.4);
}

.delete-button:active {
  transform: translateY(0);
}

.delete-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.delete-icon {
  font-size: 14px;
}

.add-label-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  background: linear-gradient(135deg, #42a5f5, #2196f3);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 12px;
  width: 100%;
}

.add-label-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #2196f3, #1976d2);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(33, 150, 243, 0.4);
}

.add-label-button:active {
  transform: translateY(-1px);
}

.add-label-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.add-icon {
  font-size: 18px;
  font-weight: bold;
}

.form-actions {
  margin-top: 32px;
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, #1976d2, #1565c0);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  position: relative;
  overflow: hidden;
}

.submit-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.submit-button:hover:not(:disabled)::before {
  left: 100%;
}

.submit-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(25, 118, 210, 0.5);
}

.submit-button:active {
  transform: translateY(-1px);
}

.submit-button:disabled {
  background: linear-gradient(135deg, #ccc, #999);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.submit-icon {
  font-size: 20px;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .volume-create-container {
    padding: 16px;
    align-items: flex-start;
    padding-top: 40px;
  }

  .volume-create-form {
    padding: 32px 24px;
  }

  .form-title {
    font-size: 28px;
    margin-bottom: 28px;
  }

  .label-row {
    flex-direction: column;
    gap: 12px;
  }

  .label-key {
    max-width: none;
  }

  .delete-button {
    align-self: stretch;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .volume-create-form {
    padding: 24px 20px;
  }

  .form-title {
    font-size: 24px;
  }

  .form-input {
    padding: 14px 16px;
  }

  .submit-button {
    padding: 16px 24px;
    font-size: 16px;
  }
}

/* Focus styles for accessibility */
.add-label-button:focus,
.delete-button:focus,
.submit-button:focus,
.alert-close:focus {
  outline: 3px solid rgba(33, 150, 243, 0.5);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .volume-create-wrapper {
    border: 2px solid #1976d2;
  }

  .form-input {
    border-width: 3px;
  }

  .labels-container {
    border-width: 3px;
  }
}
