/* Modern Simple Styles */

body {
  background-color: #fafafa;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* Navigation */
.navbar {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  color: #007bff !important;
  font-size: 1.5rem;
}

.nav-link {
  color: #666 !important;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #007bff !important;
}

/* Cards */
.card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-header {
  background-color: #fff;
  border-bottom: 1px solid #eee;
  font-weight: 600;
}

/* Buttons */
.btn {
  border-radius: 6px;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.2s;
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
}

.btn-outline-primary {
  color: #007bff;
  border-color: #007bff;
}

.btn-outline-primary:hover {
  background-color: #007bff;
  border-color: #007bff;
}

/* Tables */
.table {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  color: #495057;
}

.table td {
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

/* Forms */
.form-control {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.75rem;
  transition: border-color 0.2s;
}

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

/* Admin Search Styles */
.admin-search-container {
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

.admin-search-container .input-group {
  margin-bottom: 0;
}

.admin-search-container .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
  height: 42px; /* 검색창 높이 고정 */
  line-height: 1.5;
  padding: 0.5rem 0.75rem;
}

.admin-search-container .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: -1px;
  height: 42px; /* 버튼 높이를 검색창과 동일하게 */
  padding: 0.5rem 1rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Admin Table Styles */
.admin-table-container {
  max-width: 1200px;
  margin: 0 auto;
}

.admin-table-container .table-responsive {
  border-radius: 8px;
  overflow: hidden;
}

.mb-4 {
  margin-bottom: 2rem !important;
}

.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
}

/* Product Cards */
.product-card {
  height: 100%;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card img {
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.product-card .card-body {
  padding: 1.25rem;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: #007bff;
}

/* Badges */
.badge {
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

/* Alerts */
.alert {
  border: none;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border-left: 4px solid #ffc107;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border-left: 4px solid #17a2b8;
}

.alert-primary {
  background-color: #cce7ff;
  color: #004085;
  border-left: 4px solid #007bff;
}

.alert-secondary {
  background-color: #e2e3e5;
  color: #383d41;
  border-left: 4px solid #6c757d;
}

.alert-light {
  background-color: #fefefe;
  color: #818182;
  border-left: 4px solid #f8f9fa;
}

.alert-dark {
  background-color: #d6d8db;
  color: #1b1e21;
  border-left: 4px solid #343a40;
}

/* Footer */
footer {
  background-color: #f8f9fa;
  color: #6c757d;
}

/* Cart */
.cart-item {
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}

.cart-total {
  font-size: 1.25rem;
  font-weight: 600;
  color: #007bff;
}

/* Order Status */
.order-status {
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Dropdown */
.dropdown-menu {
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.dropdown-item {
  padding: 0.5rem 1rem;
  transition: background-color 0.2s;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
}

/* Container spacing */
.container {
  max-width: 1200px;
}

/* Text utilities */
.text-muted {
  color: #6c757d !important;
}

.fw-bold {
  font-weight: 600 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
