/* 페이지 공통 스타일 */
.page-content {
  padding: 20px;
}

/* ================================================
   모달 기본 스타일 제거됨
   - bid-list.html에 인라인 스타일로 이동
   - 다른 페이지는 각 페이지에서 개별 정의 필요
   ================================================ */

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 0 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary-color);
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background-color: var(--hover-color);
  color: var(--text-primary);
}

.modal-body {
  padding: 0 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 24px;
  border-top: 1px solid var(--border-color);
  margin-top: 24px;
}

/* 프로필 이미지 업로드 스타일 */
.profile-image-section {
  margin-bottom: 24px;
}

.profile-image-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.image-preview-container {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--bg-secondary);
  border: 2px solid var(--border-color);
}

.image-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  font-size: 14px;
  gap: 8px;
}

.image-placeholder i {
  font-size: 32px;
}

.upload-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.upload-info {
  text-align: center;
}

.upload-info small {
  color: var(--secondary-color);
  font-size: 0.875rem;
}

/* 폼 스타일 */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

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

.form-group input[readonly] {
  background-color: var(--bg-secondary);
  color: var(--secondary-color);
  cursor: not-allowed;
}

/* 버튼 스타일 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover:not(:disabled) {
  background-color: var(--hover-color);
}

.btn-outline-danger {
  background-color: transparent;
  color: #ef4444;
  border: 1px solid #ef4444;
}

.btn-outline-danger:hover:not(:disabled) {
  background-color: #ef4444;
  color: white;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-loading {
  display: none;
}

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

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* 액션 바 */
.action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
}

/* 검색 박스 */
.search-box {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-box i,
.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary-color);
  font-size: 14px;
  width: 16px;
  height: 16px;
}

.search-box input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* 데이터 테이블 */
.data-table-container {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

[data-theme='dark'] .data-table-container {
  background: #000000;
  border: 1px solid rgba(0, 255, 0, 0.3);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-primary);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.data-table thead {
  background-color: var(--light-bg);
}

.data-table th {
  background-color: #f8fafc;
  color: var(--text-color);
  font-weight: 600;
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  white-space: nowrap;
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.data-table tbody tr:hover {
  background-color: var(--bg-secondary);
}

/* 다크모드 테이블 */
[data-theme='dark'] .data-table {
  background: #000000;
}

[data-theme='dark'] .data-table thead {
  background: #0a0a0a;
}

[data-theme='dark'] .data-table th {
  background: #0a0a0a;
  color: #00ff00;
  border-bottom: 1px solid rgba(0, 255, 0, 0.3);
}

[data-theme='dark'] .data-table td {
  background: #000000;
  color: #00ff00;
  border-bottom: 1px solid rgba(0, 255, 0, 0.2);
}

[data-theme='dark'] .data-table tbody tr:hover {
  background: #001100;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.data-table .text-center {
  text-align: center;
  color: var(--secondary-color);
  font-style: italic;
  padding: 24px;
}

/* 상태 배지 */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.active {
  background-color: #dcfce7;
  color: #166534;
}

.status-badge.inactive {
  background-color: #fef3c7;
  color: #92400e;
}

.status-badge.occupied {
  background-color: #fee2e2;
  color: #991b1b;
}

/* 액션 버튼 */
.action-btn {
  background: none;
  border: none;
  padding: 6px 8px;
  cursor: pointer;
  color: var(--secondary-color);
  border-radius: 4px;
  transition: all 0.3s ease;
  margin: 0 2px;
}

.action-btn:hover {
  background-color: var(--light-bg);
  color: var(--primary-color);
}

.action-btn.danger:hover {
  background-color: #fee2e2;
  color: var(--danger-color);
}

.modal-header {
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-header h3::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary-color), #4f46e5);
  border-radius: 2px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.modal-close:hover {
  background-color: #f1f5f9;
  color: var(--text-color);
  transform: scale(1.1);
}

.modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}

/* 폼 스타일 */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-group .required {
  color: #ef4444;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.2s ease;
  background-color: var(--white);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
  font-size: 14px;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

/* 썸네일 이미지 스타일 */
.thumbnail-container {
  width: 60px;
  height: 45px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
}

.table-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.table-thumbnail:hover {
  transform: scale(1.1);
}

.no-image {
  color: #94a3b8;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* 상품명 스타일 */
.product-name {
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.4;
}

/* 액션 버튼 컨테이너 */
.action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.action-bar .action-buttons {
  display: flex;
  gap: 12px;
}

/* 편의시설 섹션 개선 */
.amenities-section {
  margin: 24px 0;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.amenities-section h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.amenities-section h4::before {
  content: '⚡';
  font-size: 18px;
}

.amenities-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.amenity-btn {
  background: var(--white);
  border: 2px solid #e2e8f0;
  color: #64748b;
  padding: 10px 16px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

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

.amenity-btn:hover::before {
  left: 100%;
}

.amenity-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(99, 102, 241, 0.2);
}

.amenity-btn.active {
  background: linear-gradient(135deg, var(--primary-color), #4f46e5);
  border-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.custom-amenity {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.custom-amenity input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
}

.custom-amenity input:focus {
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* 모달 푸터 개선 */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  margin: 24px -24px -24px -24px;
}

.modal-footer .btn {
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.modal-footer .btn::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;
}

.modal-footer .btn:hover::before {
  left: 100%;
}

.modal-footer .btn-outline {
  background-color: var(--white);
  border: 2px solid #e2e8f0;
  color: #64748b;
}

.modal-footer .btn-outline:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--text-color);
  transform: translateY(-1px);
}

.modal-footer .btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #4f46e5);
  border: 2px solid transparent;
  color: var(--white);
  box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.modal-footer .btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(99, 102, 241, 0.4);
}

/* ===============================================
   종합 반응형 디자인 시스템
   =============================================== */

/* 타블렛 대응 (768px ~ 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .page-content {
    padding: 16px;
  }

  .action-bar {
    gap: 12px;
  }

  .search-box {
    max-width: 300px;
  }

  .data-table th,
  .data-table td {
    padding: 10px 8px;
    font-size: 13px;
  }

  .modal-content.modal-xl {
    width: 90%;
    max-width: 900px;
  }

  .modal-content.modal-lg {
    width: 85%;
    max-width: 700px;
  }
}

/* 모바일 대응 (768px 이하) */
@media (max-width: 768px) {
  /* 페이지 레이아웃 */
  .page-content {
    padding: 12px;
  }

  /* 액션 바 반응형 */
  .action-bar {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .search-box {
    max-width: none;
    order: 1;
  }

  .action-buttons {
    flex-direction: row;
    gap: 8px;
    order: 2;
    justify-content: space-between;
  }

  .action-buttons .btn {
    flex: 1;
    font-size: 12px;
    padding: 10px 8px;
    white-space: nowrap;
  }

  /* 테이블 반응형 - 카드 스타일로 변환 */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table {
    min-width: 800px; /* 최소 너비 보장 */
  }

  .data-table th,
  .data-table td {
    padding: 8px 6px;
    font-size: 12px;
    white-space: nowrap;
  }

  /* 썸네일 컨테이너 */
  .thumbnail-container {
    width: 40px;
    height: 30px;
    min-width: 40px;
  }

  .thumbnail-placeholder {
    font-size: 10px;
  }

  /* 테이블 액션 버튼 */
  .table-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .table-actions .btn {
    font-size: 10px;
    padding: 4px 6px;
    min-width: 60px;
  }

  /* 모달 반응형 - 기본 스타일 제거됨 (인라인 사용) */

  .modal-header {
    padding: 16px;
    flex-wrap: wrap;
  }

  .modal-header h3 {
    font-size: 18px;
  }

  .modal-body {
    padding: 16px;
  }

  /* 폼 반응형 */
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

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

  .form-group {
    width: 100% !important;
  }

  .form-group.with-map {
    width: 100% !important;
  }

  /* 지도 컨테이너 반응형 */
  .map-container {
    height: 250px !important;
    margin-top: 8px;
  }

  .location-input-group {
    flex-direction: column;
    gap: 8px;
  }

  .location-input-group .btn-search {
    width: 100%;
  }

  /* 이미지 업로드 영역 */
  .multi-image-upload-area {
    margin-bottom: 16px;
  }

  .upload-placeholder {
    padding: 20px 12px;
  }

  .upload-placeholder p {
    font-size: 13px;
  }

  .image-preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* 편의시설 버튼 */
  .amenities-section {
    margin: 16px 0;
  }

  .amenities-buttons {
    gap: 6px;
    justify-content: flex-start;
  }

  .amenity-btn {
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 15px;
  }

  .custom-amenity {
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
  }

  .custom-amenity input {
    margin-bottom: 0;
  }

  .custom-amenity .btn {
    width: 100%;
  }

  /* 모달 푸터 */
  .modal-footer {
    flex-direction: column-reverse;
    gap: 8px;
    padding: 16px;
  }

  .modal-footer .btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }

  /* 섹션 제목 */
  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 12px;
  }

  .section-title h4 {
    font-size: 16px;
  }
}

/* 소형 모바일 대응 (480px 이하) */
@media (max-width: 480px) {
  .page-content {
    padding: 8px;
  }

  .action-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .action-buttons .btn {
    flex: none;
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }

  .data-table {
    min-width: 600px; /* 소형 모바일에서는 더 작게 */
  }

  .data-table th,
  .data-table td {
    padding: 6px 4px;
    font-size: 11px;
  }

  .thumbnail-container {
    width: 35px;
    height: 25px;
    min-width: 35px;
  }

  .table-actions .btn {
    font-size: 9px;
    padding: 3px 5px;
    min-width: 50px;
  }

  .modal-header {
    padding: 12px;
  }

  .modal-header h3 {
    font-size: 16px;
  }

  .modal-body {
    padding: 12px;
  }

  .modal-footer {
    padding: 12px;
  }

  .map-container {
    height: 200px !important;
  }

  .image-preview-grid {
    grid-template-columns: 1fr;
  }

  .amenity-btn {
    font-size: 10px;
    padding: 5px 8px;
  }

  /* 테이블 카드 스타일 변환 (극소형 모바일용) */
  .data-table-card-view {
    display: none;
  }

  .table-container {
    position: relative;
  }

  .table-switch-notice {
    background: #f3f4f6;
    padding: 8px 12px;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    border-radius: 4px;
    margin-bottom: 8px;
  }
}

/* 대형 데스크탑 대응 (1440px 이상) */
@media (min-width: 1440px) {
  .page-content {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
  }

  .action-bar {
    gap: 20px;
  }

  .search-box {
    max-width: 500px;
  }

  .data-table th,
  .data-table td {
    padding: 16px 12px;
    font-size: 15px;
  }

  .modal-content.modal-xl {
    max-width: 1200px;
  }

  .modal-content.modal-lg {
    max-width: 900px;
  }
}

/* 상품 카드 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.product-card {
  background-color: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 0;
}

.product-card:hover {
  border-color: #d0d0d0;
  box-shadow: none;
  transform: none;
}

.product-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-details {
  padding: 16px;
}

.product-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--secondary-color);
}

.product-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
}

/* 입찰 카드 */
.bid-section {
  margin-bottom: 40px;
}

.bid-section h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-color);
}

.bid-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.bid-card {
  background-color: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.bid-card:hover {
  border-color: #d0d0d0;
  box-shadow: none;
  transform: none;
}

.bid-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bid-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.bid-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.3;
  flex: 1;
  margin-right: 12px;
}

.bid-company {
  font-size: 14px;
  color: var(--secondary-color);
  margin-bottom: 16px;
  font-weight: 500;
}

.bid-status {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.bid-status.active {
  background: rgba(37, 99, 235, 0.1);
  color: #111827;
}

.bid-status.closed {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.bid-info {
  flex: 1;
  margin-bottom: 16px;
}

.bid-requirements {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.requirement-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-color);
}

.requirement-item i {
  width: 16px;
  color: var(--secondary-color);
  flex-shrink: 0;
}

.bid-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--secondary-color);
}

.time-remaining {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #dc2626;
  font-size: 13px;
  font-weight: 500;
}

.bid-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.bid-actions .btn {
  flex: 1;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.bid-actions .btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

.bid-actions .btn-outline:hover {
  background: var(--light-bg);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.bid-actions .btn-primary {
  background: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
}

.bid-actions .btn-primary:hover {
  background: #4c1d95;
  border-color: #4c1d95;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 상세 모달 수정 */
.detail-item.full-width {
  grid-column: 1 / -1;
}

.facilities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.facility-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  font-size: 13px;
  color: var(--text-color);
}

/* 입찰 히스토리 수정 */
.bid-history-item {
  display: grid;
  grid-template-columns: 40px 1fr auto 100px;
  gap: 15px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eee;
  background: white;
  transition: background-color 0.2s ease;
}

.bid-history-item.latest {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 4px solid #d1d5db;
  font-weight: 500;
}

.bid-company-info {
  flex: 1;
}

.company-name {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 2px;
}

.product-name {
  font-size: 14px;
  color: var(--secondary-color);
  margin-bottom: 4px;
}

.bid-details {
  display: flex;
  gap: 12px;
  align-items: center;
}

.bid-details span {
  font-size: 14px;
  color: var(--secondary-color);
}

.bid-price {
  font-weight: 600;
  color: var(--primary-color);
}

/* 리스트 뷰에서는 이미지 제거 */
.bid-list.list-view .bid-card {
  flex-direction: row;
  height: auto;
}

.bid-list.list-view .bid-content {
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

/* 빈 상태 */
.no-data {
  text-align: center;
  padding: 60px 20px;
  color: var(--secondary-color);
  font-size: 16px;
}

.no-data::before {
  content: '📭';
  display: block;
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.no-events {
  text-align: center;
  padding: 40px 20px;
  color: #9ca3af;
  font-size: 16px;
}

.no-events i {
  font-size: 48px;
  margin-bottom: 16px;
  color: #d1d5db;
}

.no-events p {
  margin: 0;
  font-size: 14px;
}

/* 팀 정보 섹션 */
.team-info-section {
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  padding: 24px;
}

.team-info-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.team-code-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.team-code {
  background-color: var(--light-bg);
  padding: 12px 20px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  letter-spacing: 1px;
}

.team-code-description {
  font-size: 14px;
  color: var(--secondary-color);
  line-height: 1.6;
}

/* 권한 그리드 */
.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-label input[type='checkbox'] {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.checkbox-label span {
  font-size: 14px;
  color: var(--text-color);
}

/* 입주사 카드 */
.tenant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.tenant-card {
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  padding: 20px;
}

.tenant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.tenant-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.tenant-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.tenant-status.active {
  background-color: #e5e7eb;
  color: #111827;
}

.tenant-status.pending {
  background-color: #fef3c7;
  color: #92400e;
}

.tenant-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.tenant-info .info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--secondary-color);
}

.tenant-info .info-item i {
  width: 16px;
  color: var(--primary-color);
}

.tenant-actions {
  display: flex;
  gap: 8px;
}

/* 캘린더 추가 스타일 */
.calendar-weekdays {
  display: contents;
}

.weekday {
  padding: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  background-color: var(--light-bg);
  border: 1px solid var(--border-color);
}

.calendar-days {
  display: contents;
}

.calendar-legend {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

.legend-color.general {
  background-color: #dbeafe;
}

.legend-color.tour {
  background-color: #e5e7eb;
}

.legend-color.meeting {
  background-color: #fef3c7;
}

.legend-color.contract {
  background-color: #e9d5ff;
}

.today-events {
  margin-top: 32px;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  padding: 20px;
}

.today-events h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-item {
  display: flex;
  gap: 16px;
  padding: 12px;
  border-radius: 6px;
  border-left: 3px solid;
}

.event-item.general {
  background-color: #f0f9ff;
  border-color: #d1d5db;
}

.event-item.tour {
  background-color: #f0fdf4;
  border-color: #e5e7eb;
}

.event-item.meeting {
  background-color: #fffbeb;
  border-color: #f59e0b;
}

.event-item.contract {
  background-color: #faf5ff;
  border-color: #8b5cf6;
}

.event-time {
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary-color);
  min-width: 100px;
}

.event-details h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.event-details p {
  font-size: 13px;
  color: var(--secondary-color);
}

/* 입찰 상품 추가 스타일 */
.product-price-info {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
  padding: 12px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.price-item {
  display: flex;
  flex-direction: column;
}

.price-item .label {
  font-size: 11px;
  color: var(--secondary-color);
  margin-bottom: 2px;
}

.price-item .value {
  font-size: 14px;
  font-weight: 600;
}

.product-discount {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.discount-rate {
  background-color: #fee2e2;
  color: #dc2626;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.discount-price {
  color: var(--danger-color);
  font-weight: 600;
  font-size: 14px;
}

/* 회의실 카드 */
.meeting-room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.meeting-room-card {
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.room-image {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.room-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-status {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.9);
}

.room-status.available {
  color: #111827;
}

.room-status.occupied {
  color: #dc2626;
}

.room-details {
  padding: 16px;
}

.room-details h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.room-features {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--secondary-color);
}

.room-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}

.price-label {
  font-size: 12px;
  color: var(--secondary-color);
}

.price-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
}

.room-amenities {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.room-amenities i {
  width: 28px;
  height: 28px;
  background-color: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--secondary-color);
  cursor: help;
}

.room-actions {
  display: flex;
  gap: 8px;
}

/* 편의시설 그리드 */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

/* 모달 크기 */
.modal-lg {
  max-width: 720px;
}

.modal-xl {
  max-width: 1000px;
  width: 95%;
}

/* 폼 섹션 스타일 */
.form-section {
  margin-bottom: 32px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: linear-gradient(135deg, #fafbfc 0%, #f9fafb 100%);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb;
}

.section-title i {
  font-size: 18px;
  color: var(--primary-color);
}

.section-title h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

/* 폼 행 레이아웃 */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
}

.form-row:last-child {
  margin-bottom: 0;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .modal-xl {
    width: 98%;
    max-width: none;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-section {
    padding: 16px;
    margin-bottom: 24px;
  }
}

/* 탭 네비게이션 */
.tab-navigation {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary-color);
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.tab-btn.active {
  color: var(--primary-color);
}

.tab-btn.active::after {
  display: none;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* 프로필 섹션 (사이드바 제외) */
.main-content .profile-section,
.page-content .profile-section,
.profile-section:not(.sidebar .profile-section) {
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  padding: 24px;
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.info-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-group label {
  font-size: 12px;
  color: var(--secondary-color);
  font-weight: 500;
}

.info-group p {
  font-size: 14px;
  color: var(--text-color);
}

.info-group.full-width {
  grid-column: span 2;
}

/* 서비스 통계 */
.service-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background-color: var(--light-bg);
  border-radius: 8px;
}

.stat-item i {
  font-size: 24px;
  color: var(--primary-color);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-color);
}

.stat-label {
  font-size: 12px;
  color: var(--secondary-color);
}

/* 프로필 헤더 */
.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.profile-avatar {
  position: relative;
}

.profile-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 36px;
  height: 36px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-summary h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
}

.profile-summary p {
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.user-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.user-badge.admin {
  background-color: #fee2e2;
  color: #dc2626;
}

/* 계정 설정 */
.account-settings {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.setting-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.setting-info p {
  font-size: 13px;
  color: var(--secondary-color);
}

/* 캘린더 스타일 추가 */
.calendar-container {
  background-color: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 20px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.calendar-nav button {
  width: 32px;
  height: 32px;
  border: none;
  background-color: var(--light-bg);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.calendar-nav button:hover {
  background-color: var(--border-color);
}

.calendar-nav h3 {
  font-size: 18px;
  font-weight: 600;
  min-width: 120px;
  text-align: center;
}

.calendar-actions {
  display: flex;
  gap: 8px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.calendar-day {
  background-color: var(--white);
  min-height: 100px;
  padding: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.calendar-day:hover {
  background-color: var(--white);
}

.calendar-day.other-month {
  color: var(--secondary-color);
  opacity: 0.5;
}

.calendar-day.today {
  background-color: var(--white);
}

.calendar-day.selected {
  background-color: var(--white);
  color: inherit;
}

.calendar-day-number {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.calendar-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calendar-event {
  font-size: 11px;
  padding: 2px 4px;
  border-radius: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event.general {
  background-color: #dbeafe;
  color: #1e40af;
}

.calendar-event.tour {
  background-color: #e5e7eb;
  color: #111827;
}

.calendar-event.meeting {
  background-color: #fef3c7;
  color: #92400e;
}

.calendar-event.contract {
  background-color: #e9d5ff;
  color: #6b21a8;
}

.calendar-event.more {
  background-color: var(--light-bg);
  color: var(--secondary-color);
  font-weight: 500;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .action-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    max-width: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .bid-info-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .tenant-grid {
    grid-template-columns: 1fr;
  }

  .meeting-room-grid {
    grid-template-columns: 1fr;
  }

  .data-table {
    font-size: 12px;
  }

  .data-table th,
  .data-table td {
    padding: 8px;
  }

  .amenities-grid {
    grid-template-columns: 1fr;
  }

  .calendar-legend {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* 창고 카드 스타일 */
.warehouse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.warehouse-card {
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  padding: 20px;
  position: relative;
}

.warehouse-status {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.warehouse-status.available {
  background-color: #e5e7eb;
  color: #111827;
}

.warehouse-status.occupied {
  background-color: #fee2e2;
  color: #991b1b;
}

.warehouse-status.maintenance {
  background-color: #fef3c7;
  color: #92400e;
}

.warehouse-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.warehouse-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.warehouse-info .info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--secondary-color);
}

.warehouse-info .info-row i {
  width: 16px;
  color: var(--primary-color);
}

.warehouse-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.feature-tag {
  padding: 3px 10px;
  background-color: var(--light-bg);
  border-radius: 12px;
  font-size: 12px;
  color: var(--secondary-color);
}

.warehouse-price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border-color);
}

.warehouse-price .price-label {
  font-size: 12px;
  color: var(--secondary-color);
}

.warehouse-price .price-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
}

.warehouse-tenant {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--secondary-color);
}

.warehouse-actions {
  display: flex;
  gap: 8px;
}

/* 필터 섹션 */
.filter-section {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 24px;
  padding: 16px;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--secondary-color);
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 13px;
  background-color: var(--white);
  cursor: pointer;
}

/* 입찰 요약 */
.bid-summary {
  margin-top: 32px;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  padding: 24px;
}

.bid-summary h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.summary-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.summary-icon.blue {
  background-color: #374151;
}

.summary-icon.green {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.summary-icon.red {
  background-color: #ef4444;
}

.summary-icon.orange {
  background-color: #f59e0b;
}

.summary-info {
  display: flex;
  flex-direction: column;
}

.summary-value {
  font-size: 24px;
  font-weight: 600;
}

.summary-label {
  font-size: 12px;
  color: var(--secondary-color);
}

/* 뱃지 스타일 */
.badge {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.badge.success {
  background-color: #e5e7eb;
  color: #111827;
}

.badge.danger {
  background-color: #fee2e2;
  color: #dc2626;
}

.badge.warning {
  background-color: #fef3c7;
  color: #92400e;
}

/* 테이블 내 편의시설 아이콘 */
.amenity-icons {
  display: flex;
  gap: 6px;
}

.amenity-icons i {
  width: 20px;
  height: 20px;
  background-color: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--secondary-color);
}

/* 테이블 내 특징 태그 */
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.feature-tags .feature-tag {
  padding: 2px 6px;
  background-color: var(--light-bg);
  border-radius: 10px;
  font-size: 10px;
  color: var(--secondary-color);
  white-space: nowrap;
}

/* 이미지 업로드 스타일 */
.image-upload-area,
.multi-image-upload-area {
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  background: #fafafa;
  transition: all 0.3s ease;
  cursor: pointer;
}

.image-upload-area:hover,
.multi-image-upload-area:hover {
  border-color: var(--primary-color);
  background: rgba(102, 126, 234, 0.05);
}

.image-upload-area.drag-over,
.multi-image-upload-area.drag-over {
  border-color: var(--primary-color);
  background: rgba(102, 126, 234, 0.1);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #666;
}

.upload-placeholder i {
  font-size: 2rem;
  color: var(--primary-color);
}

.image-preview,
.image-preview-grid {
  position: relative;
  display: none;
}

.image-preview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  object-fit: cover;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
  padding: 20px;
}

.image-preview-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.image-preview-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
}

.image-preview-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.representative-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(102, 126, 234, 0.95);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  z-index: 1;
  backdrop-filter: blur(4px);
}

.remove-image {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(239, 68, 68, 0.9);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.remove-image:hover {
  background: rgba(220, 38, 38, 1);
  transform: scale(1.1);
}

/* 편의시설 버튼 스타일 */
.amenities-section {
  margin: 20px 0;
}

.amenities-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.amenity-btn {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.amenity-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.amenity-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.custom-amenity-btn .remove-amenity {
  margin-left: 8px;
  cursor: pointer;
  font-weight: bold;
}

.custom-amenity {
  display: flex;
  gap: 10px;
  align-items: center;
}

.custom-amenity input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* 입찰 모달 스타일 */
.bid-detail-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.info-item span {
  font-size: 15px;
  color: #1f2937;
  font-weight: 500;
}

/* 카운트다운 배너 */
.countdown-banner {
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.countdown-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  z-index: 1;
}

.countdown-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: white;
  position: relative;
  z-index: 2;
}

.countdown-content i {
  font-size: 24px;
}

.countdown-label {
  font-size: 16px;
  font-weight: 500;
}

.countdown-timer {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* 입찰 조건 카드 */
.bid-conditions-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.conditions-summary {
  padding: 20px;
}

.conditions-summary .bid-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1f2937;
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.condition-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.condition-item i {
  color: #374151;
  font-size: 18px;
  margin-top: 2px;
}

.condition-item div {
  flex: 1;
}

.condition-item label {
  display: block;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
}

.condition-item span {
  font-size: 15px;
  color: #1f2937;
  font-weight: 500;
}

/* 제안 메시지 카드 */
.proposal-message-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.message-input-section {
  padding: 20px;
}

.message-input-section textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.message-input-section textarea:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* 제안 현황 수정 */
.bid-history-item {
  display: grid;
  grid-template-columns: 40px 1fr auto 100px;
  gap: 15px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eee;
  background: white;
  transition: background-color 0.2s ease;
}

.bid-history-item .bid-price {
  font-weight: 600;
  color: #6b7280;
  position: relative;
}

/* 가격 블라인드 처리 */
.bid-history-item .bid-price::after {
  content: '(비공개)';
  font-size: 12px;
  margin-left: 4px;
  color: #9ca3af;
}

/* 입찰 히스토리 스타일 */
.bid-history-section {
  margin-top: 30px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.bid-history-section h4 {
  margin-bottom: 15px;
  color: #333;
  font-size: 16px;
}

.bid-history-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fafafa;
}

.bid-history-item {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  gap: 15px;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  background: white;
  transition: background-color 0.2s ease;
}

.bid-history-item:last-child {
  border-bottom: none;
}

.bid-history-item.current-winner {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border-left: 4px solid #fdcb6e;
  font-weight: 500;
}

.bid-history-item:hover {
  background: #f8f9fa;
}

.bid-history-item.current-winner:hover {
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
}

.bid-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e9ecef;
  color: #666;
  font-size: 12px;
  font-weight: 600;
}

.bid-history-item.current-winner .bid-rank {
  background: #fdcb6e;
  color: white;
}

.bid-company-info {
  flex: 1;
}

.company-name {
  font-weight: 500;
  color: #333;
  margin-bottom: 2px;
}

.bid-type {
  font-size: 12px;
  color: var(--primary-color);
  background: rgba(102, 126, 234, 0.1);
  padding: 2px 6px;
  border-radius: 10px;
  display: inline-block;
}

.bid-amount {
  font-weight: 600;
  color: #2d3436;
  font-size: 14px;
}

.bid-history-item.current-winner .bid-amount {
  color: #e17055;
}

.bid-time {
  font-size: 12px;
  color: #636e72;
  text-align: right;
  min-width: 60px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .bid-history-item {
    grid-template-columns: 30px 1fr;
    gap: 10px;
    padding: 10px 12px;
  }

  .bid-amount,
  .bid-time {
    grid-column: 2;
    text-align: left;
    margin-top: 5px;
  }

  .bid-rank {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
}

/* 입찰 대시보드 스타일 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.stat-icon.blue {
  background: rgba(55, 65, 81, 0.1);
  color: #374151;
}

.stat-icon.green {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #111827;
}

.stat-icon.orange {
  background: rgba(251, 146, 60, 0.1);
  color: #fb923c;
}

.stat-icon.purple {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.stat-content h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary-color);
  margin-bottom: 4px;
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}

.stat-desc {
  font-size: 12px;
  color: var(--secondary-color);
  margin: 0;
}

/* 필터 버튼 */
.filter-buttons {
  display: flex;
  gap: 8px;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  background: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--primary-color);
  background: var(--light-bg);
}

.filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* 섹션 헤더 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.view-options {
  display: flex;
  gap: 4px;
  background: var(--light-bg);
  padding: 4px;
  border-radius: 8px;
}

.view-btn {
  padding: 8px;
  border: none;
  background: transparent;
  border-radius: 6px;
  color: var(--secondary-color);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-btn:hover {
  background: white;
  color: var(--primary-color);
}

.view-btn.active {
  background: white;
  color: var(--primary-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 리스트 뷰 스타일 */
.bid-list.list-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bid-list.list-view .bid-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 100px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.bid-list.list-view .bid-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bid-list.list-view .bid-content {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 20px;
  padding: 0;
}

.bid-list.list-view .bid-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 250px;
}

.bid-list.list-view .bid-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--text-color);
}

.bid-list.list-view .bid-company {
  font-size: 14px;
  color: var(--secondary-color);
  margin: 0;
}

.bid-list.list-view .bid-status {
  align-self: flex-start;
  margin-top: 2px;
}

.bid-list.list-view .bid-info {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 16px;
  margin: 0;
}

.bid-list.list-view .bid-requirements {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 1;
}

.bid-list.list-view .requirement-item {
  font-size: 13px;
  color: var(--secondary-color);
  white-space: nowrap;
}

.bid-list.list-view .bid-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
}

.bid-list.list-view .bid-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  min-width: 120px;
}

.bid-list.list-view .time-remaining,
.bid-list.list-view .participant-count {
  font-size: 13px;
  color: var(--secondary-color);
}

.bid-list.list-view .bid-actions {
  display: flex;
  gap: 8px;
  margin: 0;
  flex-shrink: 0;
}

/* 반응형 조정 */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bid-list.list-view .bid-card {
    height: auto;
    flex-direction: column;
  }

  .bid-list.list-view .bid-image {
    width: 100%;
    height: 200px;
  }

  .bid-list.list-view .bid-content {
    flex-direction: column;
  }

  .bid-list.list-view .bid-info {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .action-bar {
    flex-direction: column;
    gap: 12px;
  }

  .search-box {
    max-width: 100%;
  }

  .filter-buttons {
    width: 100%;
    justify-content: space-between;
  }

  .filter-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
  }

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

/* 편의시설 태그 스타일 */
.amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.amenity-tag {
  display: inline-block;
  background-color: #e0f2fe;
  color: #0277bd;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.amenity-more {
  display: inline-block;
  background-color: #f5f5f5;
  color: #666;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 500;
}

/* 작은 버튼 스타일 */
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-danger {
  background-color: var(--danger-color);
  color: var(--white);
  border: 1px solid var(--danger-color);
}

.btn-danger:hover {
  background-color: #dc2626;
  border-color: #dc2626;
}

/* 이미지 업로드 영역 개선 */
.multi-image-upload-area {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.multi-image-upload-area:hover {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.multi-image-upload-area.drag-over {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  transform: scale(1.02);
}

.upload-placeholder {
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-placeholder i {
  font-size: 48px;
  color: #94a3b8;
  margin-bottom: 16px;
  display: block;
}

.upload-placeholder p {
  color: #64748b;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.upload-placeholder:hover i {
  color: var(--primary-color);
  transform: scale(1.1);
}

/* 입찰 상세 모달 스타일 */
.bid-detail-modal .modal-header {
  background: #ffffff;
  color: var(--text-color);
  padding: 24px;
  border-radius: 12px 12px 0 0;
}

.bid-detail-modal .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.bid-detail-modal .header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bid-detail-modal .header-left i {
  font-size: 24px;
}

.bid-detail-modal .header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bid-detail-modal .modal-close {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.bid-detail-modal .modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.bid-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.bid-images-section .main-image-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.bid-images-section .main-image-container img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.main-image-container:hover .image-overlay {
  opacity: 1;
}

.image-expand-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.image-expand-btn:hover {
  background: white;
  transform: scale(1.1);
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.thumbnail-grid img {
  width: 100%;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.thumbnail-grid img:hover {
  transform: scale(1.05);
  border-color: var(--primary-color);
}

.info-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: none;
  padding: 24px;
  margin-bottom: 20px;
}

.info-card .card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f3f4f6;
}

.info-card .card-header i {
  font-size: 18px;
  color: var(--primary-color);
}

.info-card .card-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-item.full-width {
  grid-column: span 2;
}

.info-item label {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-item label i {
  font-size: 14px;
  color: var(--primary-color);
}

.info-item span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-color);
}

.facilities-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.facilities-tags .tag {
  background: linear-gradient(135deg, var(--primary-color), #667eea);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.description-content {
  background: #f9fafb;
  padding: 16px;
  border-radius: 8px;
}

.participant-stats {
  display: flex;
  gap: 24px;
}

.participant-stats .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.participant-stats .stat-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.participant-stats .stat-label {
  font-size: 12px;
  color: #6b7280;
}

.bid-history-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  margin-bottom: 24px;
}

.bid-history-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f3f4f6;
}

.bid-history-card .card-header h4 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.live-indicator {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: pulse 2s infinite;
}

.live-indicator i {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0.3;
  }
}

/* 입찰 참여 모달 스타일 */
.bid-participate-modal .modal-header {
  background: #ffffff;
  color: var(--text-color);
  padding: 24px;
  border-radius: 12px 12px 0 0;
}

.bid-participate-modal .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.bid-participate-modal .header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bid-participate-modal .header-left i {
  font-size: 24px;
}

.participate-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.participate-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bid-info-card,
.product-selection-card,
.bid-amount-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.bid-summary .bid-title {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
}

.price-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.current-price-box,
.min-price-box {
  background: #f9fafb;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

.current-price-box label,
.min-price-box label {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
  font-weight: 500;
}

.price-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
}

.selection-count {
  background: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  max-height: 300px;
  overflow-y: auto;
}

.amount-input-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.amount-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 0 16px;
  background: white;
  transition: all 0.3s ease;
}

.amount-input-wrapper:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.currency-symbol,
.amount-unit {
  font-weight: 600;
  color: #6b7280;
}

.amount-input-wrapper input {
  flex: 1;
  border: none;
  padding: 16px 8px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  outline: none;
  background: transparent;
}

.amount-guide {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6b7280;
}

.amount-guide i {
  color: var(--primary-color);
}

.quick-amounts {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.quick-label {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
}

.quick-btn {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border: 1px solid #d1d5db;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-btn:hover {
  background: linear-gradient(135deg, var(--primary-color), #667eea);
  color: white;
  transform: translateY(-1px);
}

.modal-footer .btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .bid-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .price-info {
    grid-template-columns: 1fr;
  }

  .participant-stats {
    justify-content: center;
  }

  .quick-amounts {
    justify-content: center;
  }
}

/* 팀 코드 표시 스타일 */
.team-code-display {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
  font-size: 1.1em;
  font-weight: 600;
  color: #333;
}

.team-code-display span {
  background: var(--primary-light);
  padding: 8px 16px;
  border-radius: 8px;
  letter-spacing: 2px;
}

.team-code-display .btn-icon {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.team-code-display .btn-icon:hover {
  background: var(--hover-bg);
  color: var(--primary-color);
}

.team-code-display .btn-icon.success {
  color: var(--success-color);
}

/* 프로필 페이지 정보 그룹 스타일 */
.info-group label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  display: block;
}

.info-group p {
  font-size: 1rem;
  color: var(--text-primary);
  margin: 0;
}

/* ===============================
   모달 UI/UX 개선 스타일
   =============================== */

/* 모달 크기 variants 제거됨 (인라인 사용) */

/* 모달 헤더 개선 */
.modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 12px 12px 0 0;
}

.modal-header h3 {
  color: #1f2937;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  color: #6b7280;
  opacity: 1;
  font-size: 24px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  color: #1f2937;
  transform: rotate(90deg);
}

/* 모달 바디 개선 */
.modal-body {
  padding: 0;
  background: #ffffff;
}

/* 폼 섹션 구분 */
.form-section {
  padding: 28px 32px;
  margin: 0;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.form-section:last-child {
  border-bottom: none;
}

h4.section-header {
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

/* 폼 그리드 개선 */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: #ffffff;
  color: #1f2937;
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: #9ca3af;
}

/* 필수 필드 표시 개선 */
.required {
  color: #ef4444;
  font-weight: 600;
}

/* 셀렉트 박스 스타일 개선 */
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

/* 텍스트영역 스타일 */
.form-group textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

/* 체크박스 그리드 개선 */
.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkbox-label:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.checkbox-label input[type='checkbox'] {
  margin: 0;
  width: 18px;
  height: 18px;
  accent-color: #374151;
  cursor: pointer;
}

.checkbox-label input[type='checkbox']:checked {
  accent-color: #374151;
}

.checkbox-label input[type='checkbox']:checked + span {
  color: #111827;
  font-weight: 600;
}

.checkbox-label span {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

/* 이미지 업로드 영역 개선 */
.image-upload-area {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  background: #f9fafb;
  transition: all 0.2s ease;
  cursor: pointer;
}

.image-upload-area:hover {
  border-color: #9ca3af;
  background: #f3f4f6;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.upload-placeholder i {
  font-size: 40px;
  color: #9ca3af;
  margin-bottom: 0;
}

.upload-placeholder p {
  color: #6b7280;
  margin: 0;
  font-size: 14px;
}

.image-preview {
  position: relative;
  display: inline-block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.image-preview img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  display: block;
}

.remove-image {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}

.remove-image:hover {
  background: #dc2626;
  transform: rotate(90deg);
}

/* 모달 푸터 개선 */
.modal-footer {
  padding: 20px 32px;
  margin-top: 0;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 12px 12px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-footer .btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.modal-footer .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s ease,
    height 0.6s ease;
}

.modal-footer .btn-outline {
  background: #ffffff;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.modal-footer .btn-outline:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #374151;
}

/* 오로라 효과는 primary 버튼에만 유지 */
.modal-footer .btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.modal-footer .btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 70%
  );
}

.modal-footer .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.modal-footer .btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.modal-footer .btn * {
  position: relative;
  z-index: 1;
}

.modal-footer .btn i {
  font-size: 14px;
}

/* 반응형 개선 */
@media (max-width: 768px) {
  .modal-content {
    margin: 12px;
    max-height: calc(100vh - 24px);
    border-radius: 8px;
  }

  .modal-header {
    padding: 20px;
  }

  .modal-header h3 {
    font-size: 18px;
  }

  .form-section {
    padding: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .permission-grid {
    grid-template-columns: 1fr;
  }

  .modal-footer {
    padding: 16px 20px;
    flex-direction: column;
  }

  .modal-footer .btn {
    width: 100%;
    padding: 12px;
  }

  .image-upload-area {
    padding: 24px;
  }
}

/* 모달 애니메이션 완전 제거 - 떨림 방지 */

/* 캘린더 모달 특화 스타일 */
.calendar-modal .form-group select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

/* 입력 필드 포커스 애니메이션 - 바운스 효과만 유지 */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  animation: inputFocus 0.3s ease-out;
}

@keyframes inputFocus {
  0% {
    transform: scale(0.99);
  }
  50% {
    transform: scale(1.01);
  }
  100% {
    transform: scale(1);
  }
}

/* 로딩 상태 */
.modal-content.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* 추가 UI 개선 사항 */

/* 성공 애니메이션 */
.modal-footer .btn-primary:active {
  animation: successPulse 0.3s ease-out;
}

@keyframes successPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.97);
  }
  100% {
    transform: scale(1);
  }
}

/* 스크롤바 스타일링 */
.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f3f4f6;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* 운영진 삭제 확인 모달 스타일 */

.delete-confirmation {
  padding: 0;
}

.operator-info-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid #e2e8f0;
}

.operator-avatar-small {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.operator-avatar-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.operator-details-small h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 4px;
}

.operator-details-small p {
  font-size: 14px;
  color: var(--secondary-color);
  margin-bottom: 2px;
}

.operator-details-small .text-muted {
  font-size: 12px;
  color: #9ca3af;
}

.delete-info {
  margin-top: 24px;
}

.info-section {
  margin-bottom: 24px;
}

.info-section h5 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-section h5 i {
  font-size: 16px;
}

.delete-list,
.preserve-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.delete-list li,
.preserve-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 8px;
  margin-bottom: 6px;
  transition: all 0.3s ease;
}

.delete-list li {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.delete-list li:hover {
  background: #fee2e2;
  transform: translateX(4px);
}

.preserve-list li {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.preserve-list li:hover {
  background: #dcfce7;
  transform: translateX(4px);
}

.delete-list li i,
.preserve-list li i {
  font-size: 12px;
  width: 16px;
  text-align: center;
}

.warning-box {
  background: #fef3c7;
  border: 1px solid #fbbf24;
  border-radius: 12px;
  padding: 16px;
  margin-top: 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.warning-box i {
  color: #d97706;
  font-size: 18px;
  margin-top: 2px;
}

.warning-box p {
  color: #92400e;
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.warning-box strong {
  color: #78350f;
  font-weight: 600;
}

/* 삭제 확인 모달 색상 개선 */
.modal-header h3.text-danger {
  color: #dc2626;
}

.modal-header h3.text-danger i {
  color: #ef4444;
}

.text-danger {
  color: #dc2626;
}

.text-success {
  color: #16a34a;
}

.text-muted {
  color: #6b7280;
}

/* 삭제 버튼 스타일 개선 */
.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-danger::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s ease,
    height 0.6s ease;
}

.btn-danger:hover::before {
  width: 300px;
  height: 300px;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* modal-sm 기본 스타일 제거됨 (인라인 사용) */

/* 반응형 개선 */
@media (max-width: 768px) {
  .operator-info-summary {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .operator-avatar-small {
    width: 60px;
    height: 60px;
  }

  .delete-list li,
  .preserve-list li {
    padding: 10px 12px;
  }

  .warning-box {
    flex-direction: column;
    gap: 8px;
  }

  .warning-box i {
    align-self: flex-start;
  }
}

/* 토스트 알림 */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
}

.toast {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 16px 20px;
  margin-bottom: 12px;
  border-left: 4px solid;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 400px;
  transform: translateX(100%);
  opacity: 0;
  animation: toastSlideIn 0.3s ease forwards;
}

.toast.success {
  border-left-color: #e5e7eb;
  color: #111827;
}

.toast.error {
  border-left-color: #ef4444;
  color: #991b1b;
}

.toast.info {
  border-left-color: #d1d5db;
  color: #1e40af;
}

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

.toast .toast-content {
  flex: 1;
}

.toast .toast-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.toast .toast-message {
  font-size: 14px;
  opacity: 0.8;
}

.toast.removing {
  animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* 쉼머 이펙트 (마감시간 반짝임) */
.shimmer-effect {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.shimmer-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  animation: shimmer-sweep 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes shimmer-sweep {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* 입찰 테이블 마감시간 전용 쉼머 효과 (블랙&화이트) */
.bid-deadline-shimmer {
  position: relative;
  font-weight: 600;
  color: #374151;
  background: linear-gradient(
    90deg,
    #374151 0%,
    #374151 20%,
    #6b7280 35%,
    #9ca3af 42%,
    #d1d5db 47%,
    #f9fafb 50%,
    #ffffff 52%,
    #f9fafb 55%,
    #d1d5db 58%,
    #9ca3af 65%,
    #6b7280 72%,
    #374151 80%,
    #374151 100%
  );
  background-size: 300% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: deadline-shimmer 4s ease-in-out infinite;
}

.bid-deadline-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -20%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 25%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.1) 75%,
    transparent 100%
  );
  animation: shimmer-highlight 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer-highlight {
  0% {
    left: -40%;
  }
  100% {
    left: 120%;
  }
}

/* 긴급 상황 (1시간 이내) 빨간색 쉼머 효과 */
.bid-deadline-urgent {
  position: relative;
  font-weight: 700;
  color: #dc2626;
  background: linear-gradient(
    90deg,
    #dc2626 0%,
    #dc2626 20%,
    #ef4444 35%,
    #f87171 42%,
    #fca5a5 47%,
    #fecaca 50%,
    #ffffff 52%,
    #fecaca 55%,
    #fca5a5 58%,
    #f87171 65%,
    #ef4444 72%,
    #dc2626 80%,
    #dc2626 100%
  );
  background-size: 300% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: deadline-urgent-shimmer 2s ease-in-out infinite;
}

.bid-deadline-urgent::before {
  content: '';
  position: absolute;
  top: 0;
  left: -20%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 25%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.2) 75%,
    transparent 100%
  );
  animation: urgent-highlight 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes deadline-urgent-shimmer {
  0% {
    background-position: 150% 0;
  }
  100% {
    background-position: -150% 0;
  }
}

@keyframes urgent-highlight {
  0% {
    left: -40%;
  }
  100% {
    left: 120%;
  }
}

@keyframes deadline-shimmer {
  0% {
    background-position: 150% 0;
  }
  100% {
    background-position: -150% 0;
  }
}

/* 진행중인 입찰 마감시간 스타일 (사용안함) */
.active-bid-deadline {
  position: relative;
  color: #dc2626;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    rgba(220, 38, 38, 0.1),
    rgba(251, 191, 36, 0.2),
    rgba(220, 38, 38, 0.1)
  );
  background-size: 200% 100%;
  animation: deadline-glow 2s ease-in-out infinite;
}

@keyframes deadline-glow {
  0% {
    background-position: -200% 0;
    box-shadow: 0 0 5px rgba(220, 38, 38, 0.3);
  }
  50% {
    background-position: 200% 0;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
  }
  100% {
    background-position: -200% 0;
    box-shadow: 0 0 5px rgba(220, 38, 38, 0.3);
  }
}

/* ===============================================
   아이콘 버튼 스타일 시스템
   =============================================== */

/* 아이콘 전용 버튼 기본 스타일 */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  margin: 0 2px;
}

/* 아이콘 버튼 SVG 스타일 */
.btn-icon svg {
  width: 16px;
  height: 16px;
  transition: all 0.2s ease;
}

/* 접근성을 위한 텍스트 숨김 */
.btn-icon .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 복사 버튼 스타일 */
.btn-icon.btn-copy {
  background: #3b82f6;
  border: 1px solid #3b82f6;
  color: white;
}

.btn-icon.btn-copy:hover {
  background: #2563eb;
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-icon.btn-copy svg {
  stroke: white;
}

.btn-icon.btn-copy:hover svg {
  stroke: white;
}

/* 수정 버튼 (편집) 스타일 */
.btn-icon.btn-edit {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #374151;
}

.btn-icon.btn-edit:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-icon.btn-edit svg {
  stroke: #374151;
}

.btn-icon.btn-edit:hover svg {
  stroke: #111827;
}

/* 삭제 버튼 스타일 */
.btn-icon.btn-delete {
  background: #ef4444;
  border: 1px solid #ef4444;
  color: white;
}

.btn-icon.btn-delete:hover {
  background: #dc2626;
  border-color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-icon.btn-delete svg {
  stroke: white;
}

.btn-icon.btn-delete:hover svg {
  stroke: white;
}

/* 끌어올리기 버튼 스타일 */
.btn-icon.btn-boost {
  background: #10b981;
  border: 1px solid #10b981;
  color: white;
}

.btn-icon.btn-boost:hover {
  background: #059669;
  border-color: #059669;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-icon.btn-boost svg {
  stroke: white;
}

.btn-icon.btn-boost:hover svg {
  stroke: white;
}

/* 포커스 상태 (키보드 접근성) */
.btn-icon:focus {
  outline: none;
  outline-offset: 2px;
}

/* 활성 상태 */
.btn-icon:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
}

/* 버튼 그룹 스타일 */
.table-actions {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

/* 반응형 아이콘 버튼 */
@media (max-width: 768px) {
  .btn-icon {
    width: 28px;
    height: 28px;
    margin: 0 1px;
  }

  .btn-icon svg {
    width: 14px;
    height: 14px;
  }

  .table-actions {
    gap: 2px;
  }
}

@media (max-width: 480px) {
  .btn-icon {
    width: 24px;
    height: 24px;
  }

  .btn-icon svg {
    width: 12px;
    height: 12px;
  }
}

/* ===============================================
   데스크탑 테이블 최대 화면 활용 시스템
   =============================================== */

/* 데스크탑 (1024px 이상) - 테이블 최대 폭 활용 */
@media (min-width: 1024px) {
  /* 메인 페이지 콘텐츠 컨테이너 최대 폭 활용 */
  .page-content {
    max-width: none !important;
    width: 100% !important;
    padding: 20px 24px !important;
  }

  /* 테이블 컨테이너 최대 폭 활용 */
  .table-container {
    max-width: none !important;
    width: 100% !important;
    margin: 16px 0 !important;
  }

  /* 데이터 테이블 최대 폭 활용 */
  .data-table {
    max-width: none !important;
    width: 100% !important;
    table-layout: auto !important;
  }

  /* 입찰 테이블 래퍼 최대 폭 활용 */
  .bid-table-wrapper {
    max-width: none !important;
    width: 100% !important;
    overflow-x: visible !important;
  }

  /* 입찰 리스트 테이블 최대 폭 활용 */
  .bid-list-table {
    max-width: none !important;
    width: 100% !important;
    table-layout: fixed !important;
    min-width: auto !important;
  }

  /* 컬럼 비율 통일 */
  .bid-list-table .col-type { width: 10% !important; text-align: center !important; }
  .bid-list-table .col-company { width: 18% !important; }
  .bid-list-table .col-location { width: 14% !important; }
  .bid-list-table .col-size { width: 10% !important; text-align: center !important; }
  .bid-list-table .col-budget { width: 14% !important; text-align: right !important; }
  .bid-list-table .col-deadline { width: 16% !important; text-align: center !important; }
  .bid-list-table .col-participants { width: 8% !important; text-align: center !important; }
  .bid-list-table .col-actions { width: 10% !important; text-align: center !important; }

  /* 상품 테이블 래퍼 최대 폭 활용 */
  .product-table-wrapper {
    max-width: none !important;
    width: 100% !important;
  }

  /* 상품 리스트 테이블 최대 폭 활용 */
  .product-list-table {
    max-width: none !important;
    width: 100% !important;
    table-layout: auto !important;
  }

  /* 캘린더 컨테이너 최대 폭 활용 */
  .calendar-container {
    max-width: none !important;
    width: 100% !important;
  }

  /* 액션 바 최대 폭 활용 */
  .action-bar {
    max-width: none !important;
    width: 100% !important;
    margin-bottom: 24px !important;
  }

  /* 통계 그리드 최대 폭 활용 */
  .stats-grid {
    max-width: none !important;
    width: 100% !important;
  }

  /* 입찰 섹션 최대 폭 활용 */
  .bid-section {
    max-width: none !important;
    width: 100% !important;
  }

  /* 필터 섹션 최대 폭 활용 */
  .filter-section {
    max-width: none !important;
    width: 100% !important;
    margin-bottom: 24px !important;
  }

  /* 테이블 셀 자동 너비 조정 */
  .data-table th,
  .data-table td,
  .bid-list-table th,
  .bid-list-table td {
    height: 56px !important;
    padding: 16px 16px !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
  }

  /* 특정 컬럼들은 유연한 너비 */
  .bid-title-cell,
  .product-name-cell,
  .description-cell {
    width: auto !important;
    max-width: 300px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 액션 컬럼은 최소 너비 유지 */
  .table-actions {
    width: auto !important;
    min-width: 120px !important;
    white-space: nowrap !important;
  }
}

/* 대형 데스크탑 (1440px 이상) - 추가 공간 활용 */
@media (min-width: 1440px) {
  .page-content {
    padding: 24px 32px !important;
  }

  /* 테이블 셀 패딩 증가 */
  .data-table th,
  .data-table td,
  .bid-list-table th,
  .bid-list-table td {
    padding: 16px 18px !important;
    height: 56px !important;
  }

  /* 1440px에서도 컬럼 비율 유지 */
  .bid-list-table .col-type { width: 10% !important; text-align: center !important; }
  .bid-list-table .col-company { width: 18% !important; }
  .bid-list-table .col-location { width: 14% !important; }
  .bid-list-table .col-size { width: 10% !important; text-align: center !important; }
  .bid-list-table .col-budget { width: 14% !important; text-align: right !important; }
  .bid-list-table .col-deadline { width: 16% !important; text-align: center !important; }
  .bid-list-table .col-participants { width: 8% !important; text-align: center !important; }
  .bid-list-table .col-actions { width: 10% !important; text-align: center !important; }

  /* 더 큰 화면에서는 더 많은 텍스트 표시 */
  .bid-title-cell,
  .product-name-cell,
  .description-cell {
    max-width: 400px !important;
  }
}

/* 초대형 데스크탑 (1920px 이상) - 최대 활용 */
@media (min-width: 1920px) {
  .page-content {
    padding: 28px 40px !important;
  }

  /* 테이블 셀 패딩 더 증가 */
  .data-table th,
  .data-table td,
  .bid-list-table th,
  .bid-list-table td {
    padding: 16px 20px !important;
    height: 56px !important;
  }

  /* 1920px에서도 컬럼 비율 유지 */
  .bid-list-table .col-type { width: 10% !important; text-align: center !important; }
  .bid-list-table .col-company { width: 18% !important; }
  .bid-list-table .col-location { width: 14% !important; }
  .bid-list-table .col-size { width: 10% !important; text-align: center !important; }
  .bid-list-table .col-budget { width: 14% !important; text-align: right !important; }
  .bid-list-table .col-deadline { width: 16% !important; text-align: center !important; }
  .bid-list-table .col-participants { width: 8% !important; text-align: center !important; }
  .bid-list-table .col-actions { width: 10% !important; text-align: center !important; }

  /* 가장 큰 화면에서는 텍스트 제한 완화 */
  .bid-title-cell,
  .product-name-cell,
  .description-cell {
    max-width: 500px !important;
  }
}

/* ===============================================
   페이지네이션 반응형 최적화
   =============================================== */

/* 데스크탑에서 페이지네이션 최대 폭 활용 */
@media (min-width: 1024px) {
  .pagination-container {
    max-width: none !important;
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 0 !important;
  }

  .pagination {
    max-width: none !important;
    width: auto !important;
  }

  .pagination-info {
    max-width: none !important;
    width: auto !important;
  }
}

/* ===============================================
   모달 내 테이블 반응형 최적화
   =============================================== */

/* 대형 모달에서 테이블 최적화 */
@media (min-width: 1024px) {
  .modal-xl .product-table-wrapper,
  .modal-xl .bid-table-wrapper,
  .modal-xl .table-container {
    max-width: none !important;
    width: 100% !important;
  }

  .modal-xl .product-list-table,
  .modal-xl .bid-list-table,
  .modal-xl .data-table {
    max-width: none !important;
    width: 100% !important;
  }
}

/* ===============================================
   캘린더 그리드 반응형 최적화
   =============================================== */

/* 데스크탑에서 캘린더 최대 폭 활용 */
@media (min-width: 1024px) {
  .calendar-grid {
    max-width: none !important;
    width: 100% !important;
  }

  .calendar-days {
    max-width: none !important;
    width: 100% !important;
  }

  .calendar-weekdays {
    max-width: none !important;
    width: 100% !important;
  }
}

/* ===============================================
   특정 페이지별 추가 최적화
   =============================================== */

/* 입찰 관련 페이지 추가 최적화 */
@media (min-width: 1024px) {
  /* 입찰 상세 모달 내 컨테이너 */
  .bid-detail-modal .modal-body,
  .bid-participate-modal .modal-body {
    max-width: none !important;
    width: 100% !important;
  }

  /* 요구사항 요약 그리드 */
  .requirements-summary {
    max-width: none !important;
    width: 100% !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  }

  /* 제안 상품 선택 컨테이너 */
  .product-selection-container {
    max-width: none !important;
    width: 100% !important;
  }

  /* 입찰 정보 헤더 */
  .bid-info-header {
    max-width: none !important;
    width: 100% !important;
  }

  /* 입찰 현황 카드 */
  .bid-history-card {
    max-width: none !important;
    width: 100% !important;
  }
}

/* 사용자 관리 페이지 최적화 */
@media (min-width: 1024px) {
  /* 사용자 정보 카드 그리드 */
  .user-grid,
  .customer-grid,
  .tenant-grid,
  .operator-grid {
    max-width: none !important;
    width: 100% !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
  }

  /* 사용자 상세 정보 컨테이너 */
  .user-detail-container,
  .customer-detail-container {
    max-width: none !important;
    width: 100% !important;
  }
}

/* 공간 관리 페이지 추가 최적화 */
@media (min-width: 1024px) {
  /* 공간 정보 그리드 */
  .space-grid,
  .rental-grid,
  .meeting-room-grid,
  .warehouse-grid {
    max-width: none !important;
    width: 100% !important;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
  }

  /* 지도 컨테이너 */
  .map-container {
    max-width: none !important;
    width: 100% !important;
  }

  /* 위치 정보 컨테이너 */
  .location-info {
    max-width: none !important;
    width: 100% !important;
  }
}

/* ===============================================
   테이블 컬럼 너비 최적화
   =============================================== */

/* 데스크탑에서 테이블 컬럼 너비 스마트 조정 */
@media (min-width: 1024px) {
  /* 주요 컬럼들의 최적 너비 설정 */
  .data-table th:first-child,
  .data-table td:first-child,
  .bid-list-table th:first-child,
  .bid-list-table td:first-child {
    width: 60px !important; /* 체크박스/번호 컬럼 */
  }

  /* 상태 배지 컬럼 */
  .data-table th:nth-last-child(2),
  .data-table td:nth-last-child(2) {
    width: 100px !important;
    text-align: center !important;
  }

  /* 액션 컬럼 (수정/삭제 버튼) */
  .data-table th:last-child,
  .data-table td:last-child {
    width: 140px !important;
    text-align: center !important;
  }

  /* 날짜/시간 컬럼 */
  .date-cell,
  .time-cell {
    width: 120px !important;
    white-space: nowrap !important;
  }

  /* 가격 컬럼 */
  .price-cell,
  .amount-cell {
    width: 120px !important;
    text-align: right !important;
  }
}

/* 대형 화면에서 더 여유로운 컬럼 너비 */
@media (min-width: 1440px) {
  .data-table th:last-child,
  .data-table td:last-child {
    width: 160px !important;
  }

  .date-cell,
  .time-cell {
    width: 140px !important;
  }

  .price-cell,
  .amount-cell {
    width: 140px !important;
  }
}

/* ===============================================
   강제 최대 폭 활용 (최고 우선순위)
   =============================================== */

/* 모든 기존 max-width 제한을 강제로 제거 */
@media (min-width: 1024px) {
  /* 컨테이너 클래스들의 max-width 완전 제거 */
  .container,
  .container-fluid,
  .main-container,
  .content-container,
  .wrapper,
  .layout-wrapper {
    max-width: none !important;
    width: 100% !important;
  }

  /* 특정 ID들의 max-width 제거 */
  #main-content,
  #page-content,
  #dashboard-content,
  #table-container {
    max-width: none !important;
    width: 100% !important;
  }

  /* 테이블 관련 모든 요소 */
  table,
  .table,
  .table-responsive,
  .table-wrapper {
    max-width: none !important;
    width: 100% !important;
  }

  /* 폼 컨테이너 */
  .form-container,
  .form-wrapper {
    max-width: none !important;
    width: 100% !important;
  }

  /* 카드 컨테이너 */
  .card-container,
  .cards-wrapper {
    max-width: none !important;
    width: 100% !important;
  }
}

/* 추가 보장: 인라인 스타일도 오버라이드 */
@media (min-width: 1024px) {
  [style*='max-width'] {
    max-width: none !important;
  }

  [style*='width'] .table-container,
  [style*='width'] .data-table,
  [style*='width'] .bid-table-wrapper {
    width: 100% !important;
    max-width: none !important;
  }
}

/* ===============================================
   미니멀 박스 스타일 일괄 적용
   =============================================== */

/* 누락된 박스 요소들을 위한 미니멀 스타일 */
.calendar-container,
.stats-grid,
.filter-section,
.search-container,
.form-container,
.content-wrapper {
  background: var(--white) !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  transition: all 0.3s ease !important;
}

/* 캘린더 헤더와 액션 바는 투명 배경 유지 */
.calendar-header,
.action-bar {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* 박스 호버 효과 */
.calendar-container:hover,
.stats-grid:hover,
.filter-section:hover {
  border-color: #d0d0d0 !important;
  box-shadow: none !important;
  transform: none !important;
}

/* 패딩이 없는 박스들에 기본 패딩 추가 */
.search-container,
.form-container,
.content-wrapper {
  padding: 24px !important;
}

/* 이미 패딩이 있는 요소들은 유지 */
.calendar-container,
.stats-grid {
  padding: 0 !important;
}

/* 통계 카드 내부 패딩 재조정 */
.stat-card-content {
  padding: 24px !important;
}

/* 캘린더 내부 컨텐츠 패딩 */
.calendar-content {
  padding: 24px !important;
}

/* 모든 그림자 효과 완전 제거 */
* {
  box-shadow: none !important;
}

/* 호버 시에도 그림자 없음 - 모달 제외 */
*:hover:not(.modal):not(.modal *) {
  box-shadow: none !important;
  transform: none !important;
}

/* ===============================================
   운영진 테이블 관련 스타일
   =============================================== */

/* 운영진 이름 셀 */
.operator-name-cell strong {
  font-weight: 600;
  color: var(--text-color);
}

/* ===============================================
   페이지별 공통 스타일 - 테마 지원
   =============================================== */

/* 기본 카드 스타일 */
.card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.card-header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-secondary);
  color: var(--text-primary);
}

/* 테이블 스타일 */
.table {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.table thead {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.table tbody tr {
  border-bottom: 1px solid var(--border-secondary);
}

.table tbody tr:hover {
  background-color: var(--bg-secondary);
}

/* 버튼 스타일 - 검은색 테마 */
.btn-primary {
  background-color: #000000;
  border-color: #000000;
  color: white;
}

.btn-primary:hover {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
}

.btn-outline-primary {
  color: #000000;
  border-color: #000000;
  background-color: transparent;
}

.btn-outline-primary:hover {
  background-color: #000000;
  color: white;
}

/* 입력 폼 스타일 */
.form-control {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
}

.form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 0.2rem var(--accent-light);
}

/* 모달 기본 스타일 제거됨 (인라인 사용) */

.modal-header {
  border-bottom: 1px solid var(--border-secondary);
}

.modal-footer {
  border-top: 1px solid var(--border-secondary);
}

/* 드롭다운 스타일 */
.dropdown-menu {
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-lg);
}

.dropdown-item {
  color: var(--text-primary);
}

/* 수정 폼 오버레이 스타일 */
.edit-form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.edit-form {
  background: white;
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.edit-form h3 {
  margin: 0 0 24px 0;
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 600;
}

.edit-form .form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.edit-form .form-actions .btn {
  min-width: 80px;
  text-align: center;
  justify-content: center !important;
}

/* 페이지별 공통 스타일 (기존 내용을 CSS 변수로 업데이트) */
