/* Ant Design Styles - Common CSS for FSB Application */

/* Layout Styles */
html,
body {
  height: 100%;
  margin: 0;
}
body {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.ant-layout-content {
  flex: 1;
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  padding-bottom: 120px;
}

.ant-layout-footer {
  text-align: center;
  padding: 16px;
  background: #f0f2f5;
  border-top: 1px solid #e8e8e8;
  margin-top: auto;
  /* flex-shrink: 0; */
}

/* Page Header */
.ant-page-header {
  background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
  color: white;
  padding: 24px 32px;
  margin: 0px 10px 10px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.ant-page-header-heading-title {
  color: white;
  font-size: 28px;
  font-weight: 600;
  margin: 0;
}

.ant-page-header-heading-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  margin: 8px 0 0 0;
  line-height: 1.5;
}

/* Card Styles */
.ant-card {
  box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.08),
    0 3px 6px 0 rgba(0, 0, 0, 0.06), 0 5px 12px 4px rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  background: white;
  transition: all 0.3s ease;
}

.ant-card-body {
  padding: 24px;
}

/* Grid Layouts */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

/* Button Styles */
.ant-btn {
  padding: 8px 16px;
  border: 1px solid;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  min-width: 100px;
  gap: 8px;
}

.ant-btn-primary {
  background: #1890ff;
  border-color: #1890ff;
  color: white;
}

.ant-btn-primary:hover {
  background: #40a9ff;
  border-color: #40a9ff;
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

.ant-btn-success {
  background: #52c41a;
  border-color: #52c41a;
  color: white;
}

.ant-btn-success:hover {
  background: #73d13d;
  border-color: #73d13d;
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3);
}

.ant-btn-warning {
  background: #faad14;
  border-color: #faad14;
  color: white;
}

.ant-btn-warning:hover {
  background: #ffc53d;
  border-color: #ffc53d;
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(250, 173, 20, 0.3);
}

.ant-btn-info {
  background: #13c2c2;
  border-color: #13c2c2;
  color: white;
}

.ant-btn-info:hover {
  background: #36cfc9;
  border-color: #36cfc9;
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(19, 194, 194, 0.3);
}

/* Program status badges */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
}
.status-active {
  color: #3f8600;
  background: #f6ffed;
  border: 1px solid #b7eb8f;
}
.status-inactive {
  color: #cf1322;
  background: #fff1f0;
  border: 1px solid #ffa39e;
}

/* --------------------
   Ant Tabs Styling
   -------------------- */
.ant-tabs {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
}
.ant-tabs-nav {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  gap: 8px;
}
.ant-tabs-tab-btn {
  border: none;
  background: transparent;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.85);
  transition: all 0.2s ease;
}
.ant-tabs-tab-btn:hover {
  background: #f5f5f5;
}
.ant-tabs-tab-active {
  color: #1890ff;
  background: #e6f7ff;
}
/* Bootstrap sẽ thêm .active cho phần tử tab; hỗ trợ cả hai dạng */
.ant-tabs-tab-btn.active {
  color: #1890ff;
  background: #e6f7ff;
}
.ant-tabs-ink-bar {
  position: absolute;
  left: 16px;
  bottom: -1px;
  height: 2px;
  width: 120px;
  background: #1890ff;
}
.ant-tabs-tab-btn .badge {
  background: #e6f7ff;
  color: #1890ff;
  border: 1px solid #91d5ff;
}

/* --------------------
   Tabs Content Visibility (Bootstrap-like fallback)
   -------------------- */
.tab-content > .tab-pane {
  display: none;
}
.tab-content > .active {
  display: block;
}
.tab-pane.fade {
  transition: opacity 0.15s linear;
}
.tab-pane.fade:not(.show) {
  opacity: 0;
}
.tab-pane.fade.show {
  opacity: 1;
}

/* --------------------
   Enhanced table styling for Ant Design tables
   -------------------- */
.ant-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.08),
              0 3px 6px 0 rgba(0, 0, 0, 0.06),
              0 5px 12px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}
.ant-table:hover {
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.08),
              0 9px 28px 0 rgba(0, 0, 0, 0.05),
              0 12px 48px 16px rgba(0, 0, 0, 0.03);
}
.ant-table th {
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  font-weight: 600;
  color: rgba(0, 0, 0, 0.85);
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid #e8e8e8;
  font-size: 14px;
  position: relative;
}
.ant-table th::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #e8e8e8;
}
.ant-table td {
  padding: 16px 12px;
  border-bottom: 1px solid #f0f0f0;
  color: rgba(0, 0, 0, 0.85);
  font-size: 14px;
  transition: all 0.2s ease;
}
.ant-table tbody tr {
  transition: all 0.2s ease;
}
.ant-table tbody tr:hover {
  background-color: #fafafa !important;
  transform: translateY(-1px);
}
.ant-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}
.ant-table tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

/* Enhanced table container for program details */
.program-details-table {
  margin: 0;
  border: none;
  box-shadow: none;
}
.program-details-table .ant-table {
  border-radius: 8px;
  overflow: hidden;
}

/* Action buttons in tables */
.ant-table .action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}
.ant-table .ant-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ant-table .ant-btn i {
  margin-right: 4px;
  font-size: 12px;
}

/* Icon and Card Elements */
.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: white;
  font-size: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: rgba(0, 0, 0, 0.85);
  text-align: center;
}

.card-description {
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 16px;
  font-size: 14px;
  text-align: center;
  line-height: 1.4;
}

/* Stat Cards */
.stat-card {
  background: #f0f5ff;
  border: 1px solid #d6e4ff;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.15);
}

.stat-number {
  color: #1890ff;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.stat-label {
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 0;
  font-size: 14px;
}

/* Welcome Card */
.welcome-card {
  background: #e6f7ff;
  border: 1px solid #91d5ff;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  margin: 32px auto;
  max-width: 600px;
}

.welcome-title {
  color: #1890ff;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.welcome-text {
  color: rgba(0, 0, 0, 0.65);
  margin-bottom: 16px;
  line-height: 1.5;
}

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ant-page-header {
    padding: 16px 24px;
    margin-bottom: 24px;
  }

  .ant-page-header-heading-title {
    font-size: 24px;
  }

  .ant-card-body {
    padding: 16px;
  }
}

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

  .ant-btn {
    min-width: 80px;
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* Menu Styles */
.ant-menu-item {
  padding: 12px 16px;
  margin: 0;
  border: none;
  height: auto;
  line-height: 1.5;
}

.ant-menu-item-selected {
  background-color: #e6f7ff;
  color: #1890ff;
}

.ant-menu-submenu {
  margin: 0 4px;
  display: flex;
  align-items: center;
  position: relative;
}

.ant-menu-submenu-title {
  color: rgba(0, 0, 0, 0.85);
  cursor: pointer;
  padding: 0 16px;
  height: 64px;
  line-height: 64px;
  border: none;
  display: flex;
  align-items: center;
}

.ant-menu-submenu-arrow {
  margin-left: 4px;
  transform: rotate(0deg);
  transition: transform 0.3s;
}

.ant-menu-vertical {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12),
    0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  padding: 4px 0;
  z-index: 1000;
  display: none;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.ant-form-item-label {
  font-weight: 500;
  margin-bottom: 4px;
  display: block;
  color: #262626;
}

.ant-input-group {
  display: flex;
  align-items: center;
}

.ant-input-group-addon {
  background: #fafafa;
  border: 1px solid #d9d9d9;
  border-right: none;
  padding: 4px 11px;
  border-radius: 6px 0 0 6px;
  color: #8c8c8c;
}

.ant-input {
  flex: 1;
  padding: 4px 11px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  outline: none;
  transition: all 0.2s ease;
}

.ant-input:focus {
  border-color: #40a9ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.button-group {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.ant-btn {
  padding: 4px 11px;
  border: 1px solid;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  min-width: 80px;
}

.ant-btn-primary {
  background: #1890ff;
  border-color: #1890ff;
  color: white;
}

.ant-btn-primary:hover {
  background: #40a9ff;
  border-color: #40a9ff;
  opacity: 0.8;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ant-btn-default {
  background: white;
  border-color: #d9d9d9;
  color: rgba(0, 0, 0, 0.85);
}

.ant-btn-default:hover {
  border-color: #1890ff;
  color: #1890ff;
  opacity: 0.8;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ant-btn-success {
  background: #52c41a;
  border-color: #52c41a;
  color: white;
}

.ant-btn-success:hover {
  background: #73d13d;
  border-color: #73d13d;
  opacity: 0.8;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ant-btn-sm {
  font-size: 12px;
  height: 28px;
}

.table-container {
  overflow-x: auto;
  margin-bottom: 24px;
}

.data-table {
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: 6px;
  box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.08),
    0 3px 6px 0 rgba(0, 0, 0, 0.06), 0 5px 12px 4px rgba(0, 0, 0, 0.04);
  width: 100%;
}

.data-table th {
  padding: 12px 8px;
  border-bottom: 1px solid #e8e8e8;
  font-weight: 500;
  text-align: left;
  background: #fafafa;
  color: #262626;
  font-size: 13px;
}

.data-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #e8e8e8;
  color: #262626;
  font-size: 13px;
  transition: all 0.2s ease;
}

.data-table tr {
  transition: all 0.2s ease;
}

.data-table tr:hover {
  background-color: #f5f5f5 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.data-table tr:nth-child(even) {
  background: #fafafa;
}

.data-table tr:nth-child(odd) {
  background: white;
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
}

.status-paid {
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  color: #52c41a;
}

.status-pending {
  background: #fffbe6;
  border: 1px solid #ffe58f;
  color: #faad14;
}

.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.ant-pagination-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: white;
  color: rgba(0, 0, 0, 0.85);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ant-pagination-item:hover {
  border-color: #1890ff;
  color: #1890ff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
}

.ant-pagination-item-active {
  border-color: #1890ff;
  background: #1890ff;
  color: white !important;
}

.empty-state {
  padding: 24px;
  text-align: center;
  color: #8c8c8c;
}

select.ant-input {
  background: white;
  cursor: pointer;
}

select.ant-input:focus {
  border-color: #40a9ff;
}

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

  .button-group {
    justify-content: center;
  }

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

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

  .table-container {
    margin: 16px -16px;
    border-radius: 0;
  }

  .data-table {
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #f0f0f0;
  }

  .pagination-container ul {
    gap: 4px;
  }

  .ant-pagination-item {
    min-width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .status-badge {
    font-size: 10px;
    padding: 1px 4px;
  }

  .ant-card-body {
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .data-table {
    font-size: 11px;
  }

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

  .ant-pagination-item {
    min-width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .ant-btn-sm {
    height: 28px;
    padding: 0 8px;
    font-size: 12px;
  }
}

/* Print Styles */
@media print {
  .search-grid,
  .button-group,
  .pagination-container {
    display: none !important;
  }

  .data-table {
    box-shadow: none !important;
    border: 1px solid #000 !important;
  }

  .data-table th,
  .data-table td {
    border: 1px solid #000 !important;
    background: white !important;
    color: black !important;
  }
}

/* --------------------------------------------------
   Student Details Page Styles (migrated from Details.cshtml)
   - Card header, info grid, labels and values
   -------------------------------------------------- */
.ant-card {
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #f0f0f0;
  margin-bottom: 24px;
}

.ant-card-head {
  border-bottom: 1px solid #f0f0f0;
  padding: 16px 24px;
  background: #fafafa;
}

.ant-card-head-title {
  font-size: 16px;
  font-weight: 600;
  color: #262626;
}

.ant-card-body {
  padding: 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.info-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.info-label {
  font-weight: 500;
  color: #595959;
  font-size: 12px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 14px;
  color: #262626;
  padding: 8px 12px;
  background: #fafafa;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
  min-height: 38px;
  display: flex;
  align-items: center;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: #1890ff;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1890ff;
}

.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-end;
}

.empty-value {
  color: #bfbfbf;
  font-style: italic;
}

/* --------------------------------------------------
   Form Layout Enhancements (migrated from Edit.cshtml)
   - Standardizes spacing, widths, and paddings for Ant Design forms
   - Applies consistent layout for 12/24 column grids
   -------------------------------------------------- */
.ant-form .ant-row.ant-form-item {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  margin-bottom: 16px;
}

.ant-form .ant-col {
  padding: 0 8px;
}

.ant-form .ant-col.ant-col-12 {
  flex: 0 0 calc(50% - 8px);
  max-width: calc(50% - 8px);
}

.ant-form .ant-col.ant-col-24 {
  flex: 0 0 100%;
  max-width: 100%;
}

.ant-form .inline-field {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ant-input {
  padding: 8px 12px;
}

.ant-form .ant-form-item-control-input .ant-input,
.ant-form .ant-form-item-control-input textarea.ant-input {
  width: 100%;
  box-sizing: border-box;
}

.ant-card {
  padding: 0;
}

.ant-card-body {
  padding: 16px;
}

.ant-page-header {
  margin-bottom: 12px;
}

/* Cải thiện bố cục và khoảng cách giữa các input */
.ant-form .ant-row.ant-form-item {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  margin-bottom: 16px;
}

.ant-form .ant-col {
  padding: 0 8px;
}

.ant-form .ant-col.ant-col-12 {
  flex: 0 0 calc(50% - 8px);
  max-width: calc(50% - 8px);
}

.ant-form .ant-col.ant-col-24 {
  flex: 0 0 100%;
  max-width: 100%;
}

.ant-form .inline-field {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ant-input {
  padding: 8px 12px;
}

.ant-form .ant-form-item-control-input .ant-input,
.ant-form .ant-form-item-control-input textarea.ant-input {
  width: 100%;
  box-sizing: border-box;
}

.ant-card {
  padding: 0;
}

.ant-card-body {
  padding: 16px;
}

.ant-page-header {
  margin-bottom: 12px;
}

/* --------------------------------------------------
   Global Grid System for Ant Design-like layout
   - Enables 24-column grid outside of .ant-form contexts
   - Fixes width for .ant-col-12 to split 50/50
   -------------------------------------------------- */
.ant-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -8px;
  margin-right: -8px;
}

.ant-col {
  position: relative;
  min-height: 1px;
  padding-left: 8px;
  padding-right: 8px;
  box-sizing: border-box;
}

.ant-col-24 {
  flex: 0 0 100%;
  max-width: 100%;
}

.ant-col-12 {
  flex: 0 0 50%;
  max-width: 50%;
}

.ant-col-16 {
  flex: 0 0 66.6667%;
  max-width: 66.6667%;
}

.ant-col-8 {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
}

/* Stack columns on small screens */
@media (max-width: 576px) {
  .ant-col-12,
  .ant-col-16,
  .ant-col-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
.ant-menu-item a {
  text-decoration: none;
}
/* Pagination styles tuned to Ant Design look */
.ant-pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  margin-bottom: 100px;
  padding: 8px 0;
  overflow-x: auto;
}
.ant-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.ant-pagination > li {
  display: inline-flex;
}
.ant-pagination-item-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 32px;
  padding: 0 10px;
  color: #333;
  background: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
}
.ant-pagination-item:hover .ant-pagination-item-link,
.ant-pagination-prev:hover .ant-pagination-item-link,
.ant-pagination-next:hover .ant-pagination-item-link {
  border-color: #1677ff;
  color: #1677ff;
}
.ant-pagination-item-active .ant-pagination-item-link,
.ant-pagination-item-active span.ant-pagination-item-link {
  background: #1677ff;
  color: #fff;
}
.ant-pagination-disabled .ant-pagination-item-link {
  color: #bfbfbf;
  background: #f5f5f5;
  border-color: #e5e5e5;
  cursor: not-allowed;
}
.ant-pagination-item-ellipsis {
  color: #999;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
}
@media (max-width: 576px) {
  .ant-pagination {
    gap: 6px;
  }
  .ant-pagination-item-link {
    height: 30px;
    min-width: 30px;
    padding: 0 8px;
  }
}
/* Tags (Ant Design-like) */
.ant-tag {
  display: inline-block;
  box-sizing: border-box;
  border: 1px solid #d9d9d9;
  background: #fafafa;
  color: #595959;
  border-radius: 4px;
  padding: 0 7px;
  line-height: 22px;
  font-size: 12px;
}

.ant-tag-sm {
  line-height: 20px;
  font-size: 12px;
  padding: 0 6px;
}

.ant-tag-success {
  color: #1f7a12;
  background: #f6ffed;
  border-color: #b7eb8f;
}

.ant-tag-warning {
  color: #ad6800;
  background: #fff7e6;
  border-color: #ffe58f;
}

.ant-tag-default {
  color: #595959;
  background: #f5f5f5;
  border-color: #d9d9d9;
}

/* Cards */
.ant-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  margin-bottom: 16px;
}

.ant-card-header {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ant-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f1f1f;
}

.ant-card-extra {
  display: flex;
  gap: 8px;
}

.ant-card-body {
  padding: 16px;
}

/* Descriptions */
.ant-descriptions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 16px;
}

@media (min-width: 768px) {
  .ant-descriptions-two-column {
    grid-template-columns: 1fr 1fr;
  }
}

.ant-descriptions-item {
  display: block;
}
.ant-descriptions-item-label {
  color: #8c8c8c;
  font-weight: 500;
  margin-right: 12px;
}
.ant-descriptions-item-content {
  color: #262626;
}
.ant-descriptions-item-full {
  grid-column: 1 / -1;
}

/* Alerts */
.ant-alert {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #f0f0f0;
}
.ant-alert-info {
  background: #e6f7ff;
  border-color: #91d5ff;
  color: #0958d9;
}
.ant-alert-default {
  background: #fafafa;
  border-color: #d9d9d9;
  color: #595959;
}
.ant-modal-mask {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
}

.ant-modal {
  position: fixed;
  top: 100px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1001;
  overflow: auto;
  outline: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.3s ease-out;
}

.ant-modal-content {
  position: relative;
  background-color: #fff;
  background-clip: padding-box;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15),
    0 5px 15px -3px rgba(0, 0, 0, 0.1), 0 15px 35px 5px rgba(0, 0, 0, 0.08);
  width: 800px;
  max-width: 92vw;
  margin: 0 auto;
  transform: translateY(0);
  animation: modalSlideUp 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.ant-modal-header {
  padding: 16px 24px;
  color: rgba(0, 0, 0, 0.88);
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ant-modal-title {
  margin: 0;
  color: rgba(0, 0, 0, 0.88);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  align-items: center;
}

.ant-modal-close {
  position: static;
  top: 0;
  right: 0;
  z-index: 1010;
  padding: 0;
  color: rgba(0, 0, 0, 0.45);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  background: transparent;
  border: 0;
  outline: 0;
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.ant-modal-close:hover {
  color: rgba(0, 0, 0, 0.88);
  background-color: rgba(0, 0, 0, 0.06);
}

.ant-modal-body {
  padding: 0;
  font-size: 14px;
  line-height: 1.5715;
  word-wrap: break-word;
}

.ant-modal-footer {
  padding: 16px 24px;
  text-align: right;
  background: transparent;
  border-top: 1px solid #f0f0f0;
  border-radius: 0 0 8px 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(4px);
  }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ant-modal-mask {
  backdrop-filter: blur(4px);
  transition: backdrop-filter 0.3s ease;
}

@media (max-width: 768px) {
  .ant-modal-content {
    width: 95vw;
    margin: 20px auto;
    max-width: 96vw;
  }

  .ant-modal {
    align-items: center;
    padding: 15px;
    justify-content: center;
  }

  .ant-modal-body {
    padding: 16px;
  }
}
