/* Root Variables */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --background-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --shadow-color: rgba(0, 0, 0, 0.1);
  --header-bg: #f8f9fa;
  --white: #ffffff;
  --border-color: #dee2e6;
  --hover-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 60vh;
  background: var(--background-gradient);
}

/* Main Container Layout */
.main-container {
  max-width: 100%;
  min-height: 100vh;
  padding: 20px;
  background: var(--background-gradient);
}

.content-wrapper {
  background: var(--white);
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 0 20px var(--shadow-color);
  margin: 0 auto 80px auto;
  max-width: 1400px;
  animation: fadeIn 0.5s ease-out;
}

/* Header Styles */
.form-header {
  padding: 25px 0;
  margin-bottom: 30px;
  text-align: center;
  background: var(--header-bg);
  border-radius: 10px;
  box-shadow: 0 4px 6px var(--shadow-color);
}

.header-logo {
  width: 120px;
  height: auto;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.header-logo:hover {
  transform: scale(1.05);
}

.form-header h1 {
  margin: 0;
  color: var(--secondary-color);
  font-size: 1.8rem;
}

/* Form Controls */
.form-control,
.form-select {
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 10px 15px;
  transition: all 0.3s ease;
  width: 100%;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
  outline: none;
}

/* Table Styles */
.table-responsive {
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 2px 4px var(--shadow-color);
  overflow: hidden;
}

.table {
  width: 100%;
  margin-bottom: 0;
  background: var(--white);
}

.table th {
  background: var(--header-bg);
  padding: 15px;
  font-weight: 600;
  color: var(--secondary-color);
  white-space: nowrap;
}

.table td {
  padding: 12px;
  vertical-align: middle;
}

/* Specific Column Widths */
.table th:nth-child(1),
.table td:nth-child(1) {
  width: 25%;
  min-width: 200px;
}

.table th:nth-child(2),
.table td:nth-child(2) {
  width: 10%;
  min-width: 80px;
}

.table th:nth-child(3),
.table td:nth-child(3) {
  width: 10%;
  min-width: 100px;
}

/* Button Styles */
.btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--hover-shadow);
}

.btn-success {
  background-color: var(--success-color);
}
.btn-danger {
  background-color: #dc3545;
}
.btn-primary {
  background-color: var(--primary-color);
}

/* File Upload Styles */
.image-upload {
  max-width: 100%;
  padding: 8px;
}

.upload-status {
  display: none;
  margin-top: 5px;
  font-size: 0.8em;
  color: var(--success-color);
}

/* Sticky Bottom Bar */
.sticky-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  box-shadow: 0 -4px 10px var(--shadow-color);
  z-index: 1000;
}

/* Footer Styles */
.footer-content {
  position: relative;
  font-size: 0.9rem;
  color: var(--secondary-color);
  padding: 10px 20px;
  border-radius: 20px;
  background: rgba(227, 230, 210, 0.9);
  box-shadow: 0 2px 10px var(--shadow-color);
  transition: all 0.3s ease;
  text-align: center;
}

.footer-content:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

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

@keyframes shine {
  0% {
    left: -100%;
  }
  20% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .content-wrapper {
    padding: 20px;
    margin: 0 10px 80px 10px;
  }

  .form-header h1 {
    font-size: 1.5rem;
  }
}

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

  .content-wrapper {
    padding: 15px;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table th,
  .table td {
    min-width: 100px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .sticky-bottom {
    padding: 10px 0;
  }

  .footer-content {
    font-size: 0.8rem;
    padding: 8px 15px;
  }
}

/* Number Input Styles */
input[type="number"] {
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Recommendation Styles */
.recommendation-section {
  margin: 35px 0;
  padding: 35px;
  background: rgba(255, 255, 255, 0.9);
}

.recommendation-form {
  animation: slideDown 0.3s ease-out;
}

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

.recommendation-item {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px var(--shadow-color);
  transition: transform 0.3s ease;
}

.recommendation-item:hover {
  transform: translateY(-5px);
}

.recommendation-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.recommendation-name {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--secondary-color);
}

.recommendation-link {
  font-size: 0.9em;
  color: var(--primary-color);
  word-break: break-all;
}

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

@media (max-width: 768px) {
  .recommendation-section {
    padding: 15px;
  }

  .recommendation-list {
    grid-template-columns: 1fr;
  }
}
