/* WavePosition Prompt Toolkit - Styles.css */

:root {
  --deep-blue: #0a2c50;
  --aqua: #00c4cc;
  --orange: #ff6b35;
  --light-gray: #f8f9fa;
  --dark-gray: #343a40;
  --subtle-gray: #f1f5f9;
  --white: #ffffff;
}

/* Base Styles */
body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--deep-blue);
  line-height: 1.5;
  background-color: var(--subtle-gray);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

/* Header Section */
.header {
  background: linear-gradient(150deg, var(--deep-blue), #153a5f);
  color: white;
  padding: 3.5rem 0 5rem;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.header h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 2;
}

.header p {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Wave Effect */
.wave-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.wave-shape {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%2300c4cc' opacity='0.15'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-position: center bottom;
}

.wave-shape-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z' fill='%23ff6b35' opacity='0.05'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-position: center bottom;
}

/* Navigation */
.navbar {
  padding: 1rem 0;
  background-color: var(--white) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  position: relative;
  z-index: 10;
  border-radius: 0;
  margin-bottom: 2rem;
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 15px;
}

#usernameDisplay {
  font-weight: 500;
  color: var(--deep-blue);
}

/* Container Styling */
.main-container {
  max-width: 1200px;
  margin: -2rem auto 4rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 5;
}

.tab-container {
  background-color: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  overflow: hidden;
}

/* Tabs Navigation */
.nav-tabs {
  border-bottom: none;
  padding: 1rem 1.5rem 0;
  gap: 0.5rem;
  background-color: var(--white);
}

.nav-tabs .nav-item {
  margin-bottom: 0;
}

.nav-tabs .nav-link {
  border: none;
  font-weight: 600;
  color: var(--dark-gray);
  padding: 1rem 1.5rem;
  border-radius: 8px 8px 0 0;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
  color: var(--deep-blue);
  background-color: rgba(10, 44, 80, 0.03);
}

.nav-tabs .nav-link.active {
  color: var(--deep-blue);
  background-color: transparent;
  border-bottom: 3px solid var(--aqua);
  position: relative;
}

.nav-tabs .nav-link.active:before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 3px;
  background: var(--aqua);
  border-radius: 3px;
}

/* Tab Content */
.tab-content {
  padding: 2rem;
  background-color: var(--white);
}

.prompt-preview {
  white-space: pre-wrap;
  background-color: var(--subtle-gray);
  padding: 1.8rem;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.7;
  border-left: 4px solid var(--aqua);
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.prompt-preview:after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35%;
  height: 25%;
  background: linear-gradient(to top left, rgba(0, 196, 204, 0.05), transparent);
  border-radius: 0 0 12px 0;
  z-index: 1;
}

/* Buttons */
.btn {
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--deep-blue), var(--aqua));
  border: none;
  border-radius: 8px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--aqua), var(--deep-blue));
  transition: all 0.5s ease;
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 196, 204, 0.25);
}

.btn-primary:hover:before {
  width: 100%;
}

.btn-outline-danger {
  color: #dc3545;
  border-color: #dc3545;
  background: transparent;
  transition: all 0.3s ease;
}

.btn-outline-danger:hover {
  color: white;
  background-color: #dc3545;
  transform: translateY(-2px);
}

/* Form Controls */
.form-control, .form-select {
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 3px 8px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 4px rgba(0, 196, 204, 0.1);
}

textarea#promptEditor,
textarea.form-control {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  background-color: var(--white);
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
  transition: all 0.2s ease-in-out;
  resize: vertical;
  line-height: 1.6;
  min-height: 120px;
}

/* Output Styling */
pre.p-3.bg-light.border.rounded-mt-3 {
  background-color: var(--white);
  border-left: 4px solid var(--deep-blue);
  color: var(--dark-gray);
  font-size: 0.95rem;
  padding: 1.8rem;
  margin-top: 1.5rem;
  line-height: 1.6;
  max-height: 400px;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

/* Spinner */
.spinner-border {
  display: block;
  margin: 25px auto;
  color: var(--aqua);
}

/* Toast Notifications */
#statusToast, .copy-notification {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--deep-blue);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

#statusToast.show, .copy-notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.footer {
  background-color: var(--deep-blue);
  color: white;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  margin-top: 6rem;
  clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}

.footer-quote {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-quote:before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  top: -1.5rem;
  left: -2rem;
  color: var(--aqua);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.footer-quote:after {
  content: '"';
  font-size: 4rem;
  position: absolute;
  bottom: -3rem;
  right: -1.5rem;
  color: var(--aqua);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.footer-credit {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-credit a {
  color: var(--aqua);
  text-decoration: none;
}

/* Card Styling */
.card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  margin-bottom: 2rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.card-body {
  padding: 2rem;
}

.card-title {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--deep-blue);
}

.card-text {
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
}

.card-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background: linear-gradient(to top, rgba(0, 196, 204, 0.05), transparent);
  z-index: 0;
}

/* Show notification JS helper */
.copy-notification.d-none.show {
  display: flex !important;
  opacity: 1;
  transform: translateY(0);
}

/* Compatibility with existing code */
.mt-4 {
  margin-top: 1.5rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .header h2 {
    font-size: 2.2rem;
  }
  
  .main-container {
    margin-top: -1.5rem;
  }
  
  .footer-quote {
    font-size: 1.4rem;
  }
  
  .footer-quote:before,
  .footer-quote:after {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 3rem 0 4rem;
  }
  
  .header h2 {
    font-size: 1.8rem;
  }
  
  .header p {
    font-size: 1rem;
  }
  
  .nav-tabs {
    padding: 0.5rem 1rem 0;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  
  .nav-tabs .nav-link {
    padding: 0.8rem 1rem;
    white-space: nowrap;
  }
  
  .tab-content {
    padding: 1.5rem;
  }
  
  .footer {
    padding: 3rem 0;
    margin-top: 4rem;
  }
  
  .footer-quote {
    font-size: 1.2rem;
  }
  
  .footer-quote:before,
  .footer-quote:after {
    font-size: 2.5rem;
  }
}


.form-control.is-invalid, .form-select.is-invalid, .border-danger {
  border-color: #dc3545 !important;
  padding-right: calc(1.5em + 0.75rem) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right calc(0.375em + 0.1875rem) center !important;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

.form-control.is-valid, .form-select.is-valid {
  border-color: #198754 !important;
  padding-right: calc(1.5em + 0.75rem) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right calc(0.375em + 0.1875rem) center !important;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #dc3545;
}

.progress {
  transition: all 0.3s ease;
}

.progress-bar {
  transition: width 0.5s ease, background-color 0.5s ease;
}

/* Animation für Erfolgs-Feedback */
@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(-10px); }
  20% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

.success-animation {
  animation: fadeInOut 3s ease forwards;
}
*/