:root {
  --primary-color: #3a6ea5;
  --primary-dark: #2c5282;
  --primary-light: #4a7fb5;
  --secondary-color: #ff6b35;
  --secondary-dark: #e55a2b;
  --secondary-light: #ff8c5f;
  --text-color: #333;
  --text-light: #666;
  --background-color: #f8f9fa;
  --border-color: #e2e8f0;
  --success-color: #38a169;
  --error-color: #e53e3e;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  color: var(--text-color);
  line-height: 1.6;
}

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

/* Header ve Başlık */
.page-title {
  position: relative;
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* Form Stilleri */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.form-section {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.form-section h3 {
  color: #00BCD4;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.form-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: #303030;
  border-radius: 1.5px;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(58, 110, 165, 0.2);
}

.form-group input::placeholder {
  color: #aaa;
}

/* Radio Butonlar */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.radio-item {
  display: flex;
  align-items: center;
}

.radio-item input[type="radio"] {
  width: auto;
  margin-right: 0.5rem;
  accent-color: var(--primary-color);
}

.radio-item label {
  margin-bottom: 0;
  cursor: pointer;
}

/* Butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: #00BCD4;
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: var(--secondary-color);
  color: white;
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

.btn-outline:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
}

.btn-delete {
  background-color: transparent;
  color: var(--error-color);
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-delete:hover {
  background-color: rgba(229, 62, 62, 0.1);
}

/* Tablo Stilleri */
.table-container {
  margin-bottom: 2rem;
  overflow-x: auto;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

.data-table tr:hover {
  background-color: rgba(58, 110, 165, 0.05);
}

/* Form Actions ve Sonuç */
.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.total-value {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 1.5rem 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--box-shadow);
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.total-value span:first-child {
  font-size: 1.2rem;
  font-weight: 500;
}

#totalValueLoss {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Alert */
.alert {
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-success {
  background-color: rgba(56, 161, 105, 0.1);
  color: var(--success-color);
  border-left: 4px solid var(--success-color);
}

/* Footer */
.footer {
  background-color: var(--primary-dark);
  color: white;
  padding: 1.5rem 0;
  text-align: center;
  margin-top: 3rem;
}

/* Animasyonlar */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-section {
  animation: fadeIn 0.5s ease-out forwards;
}

.form-section:nth-child(2) {
  animation-delay: 0.2s;
}

/* Responsive */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 1rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  #totalValueLoss {
    font-size: 2rem;
  }

  .radio-group {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Özel Dokunuşlar */
.parts-section {
  position: relative;
  overflow: hidden;
}

.parts-section::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 100px;
  height: 100px;
  background-color: rgba(255, 107, 53, 0.1);
  border-radius: 50%;
  z-index: 0;
}

/* Hover Efektleri */
.form-group select:hover,
.form-group input:hover {
  border-color: var(--primary-light);
}

/* Focus Stilleri */
button:focus,
input:focus,
select:focus {
  outline: none;
}

/* Özel Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}
