/* ===== Boutique Plugin Dashboard & Pages ===== */

/* ==== PAGE BACKGROUND ==== */
#wpbody-content {
  background: #f5f8fa !important;
  padding: 20px;
}

/* ==== DASHBOARD CARDS ==== */
.bms-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.bms-card {
  flex: 1;
  min-width: 220px;
  background: linear-gradient(135deg, #ffffff, #fdfdfd);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  font-size: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bms-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* ==== SECTION WRAPPERS ==== */
.bms-section {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  margin-top: 25px;
}

.bms-section h1 {
  font-size: 24px;
  margin-bottom: 20px;
  padding: 12px 15px;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Section Colors */
.bms-section.orders h1 { background: linear-gradient(135deg, #007bff, #00b4ff); }
.bms-section.customers h1 { background: linear-gradient(135deg, #17a2b8, #00d4ff); }
.bms-section.inventory h1 { background: linear-gradient(135deg, #ffc107, #ffda6b); color: #222; }
.bms-section.finance h1 { background: linear-gradient(135deg, #28a745, #5ad36b); }
.bms-section.appointments h1 { background: linear-gradient(135deg, #6f42c1, #9f7be5); }

/* ==== FORMS ==== */
.bms-section form {
  margin-bottom: 25px;
}

.bms-section input,
.bms-section select {
  margin-right: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  outline: none;
  transition: all 0.2s ease;
}
.bms-section input:focus,
.bms-section select:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0,123,255,0.3);
}

/* Buttons */
.bms-btn {
  background: #007bff;
  color: #fff;
  padding: 8px 15px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.bms-btn:hover {
  background: #0056b3;
}

/* ==== CHART AREA ==== */
.bms-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

/* ==== FIX: Chart Size ==== */
canvas {
  max-width: 320px !important;
  max-height: 320px !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 auto;
  display: block;
}

/* ==== TABLE BLOCKS (Below Charts) ==== */
.bms-tables {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.bms-table-block {
  flex: 1;
  min-width: 350px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.bms-table-block h3 {
  margin-bottom: 15px;
}

/* ====== ADD ORDER FORM ====== */
.bms-add-order {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 25px;
  margin-bottom: 25px;
}

.bms-add-order h2 {
  font-size: 20px;
  font-weight: 600;
  color: #007bff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.order-form .form-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.order-form input,
.order-form select {
  flex: 1;
  min-width: 160px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #ccd1d9;
  transition: all 0.2s ease;
  font-size: 14px;
  background: #f9fbfc;
}

.order-form input:focus,
.order-form select:focus {
  border-color: #007bff;
  background: #ffffff;
  box-shadow: 0 0 5px rgba(0,123,255,0.25);
  outline: none;
}

.bms-btn-add {
  background: linear-gradient(135deg, #007bff, #00b4ff);
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.bms-btn-add:hover {
  background: linear-gradient(135deg, #0056b3, #007bff);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,123,255,0.25);
}

/* ====== ORDERS TABLE ====== */
.bms-orders-list {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  margin-top: 25px;
}

.bms-orders-list h2 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.bms-table-container {
  overflow-x: auto;
  border-radius: 10px;
}

/* Table Look */
.pretty-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  font-size: 15px;
}

.pretty-table thead {
  background: linear-gradient(135deg, #007bff, #00b4ff);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.pretty-table th, .pretty-table td {
  padding: 12px 15px;
  text-align: left;
}

.pretty-table tbody tr:nth-child(even) {
  background-color: #f8faff;
}
.pretty-table tbody tr:hover {
  background-color: #eaf3ff;
  transition: 0.2s ease;
}

.pretty-table td strong {
  color: #333;
}

/* Status Badges */
.status {
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  text-align: center;
  font-size: 13px;
}

.status.completed {
  background-color: rgba(40, 167, 69, 0.15);
  color: #28a745;
}
.status.in-progress {
  background-color: rgba(0, 123, 255, 0.15);
  color: #007bff;
}
.status.delayed {
  background-color: rgba(220, 53, 69, 0.15);
  color: #dc3545;
}

/* ==== ACTION BUTTONS ==== */
.bms-edit, .bms-delete {
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 5px;
  font-weight: 500;
}
.bms-edit { background: #ffc107; color: #000; }
.bms-delete { background: #dc3545; color: #fff; }
.bms-edit:hover { background: #ffb700; }
.bms-delete:hover { background: #b71c1c; }



/* ===== DASHBOARD TITLE SECTION ===== */
.bms-header-title {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px 0;
  background: linear-gradient(135deg, #007bff1a, #00b4ff1a);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.bms-glow-title {
  font-size: 36px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #007bff;
  text-shadow: 0 0 10px rgba(0,123,255,0.4), 0 0 20px rgba(0,180,255,0.3);
  animation: flickerGlow 3s infinite ease-in-out;
}

.bms-subtitle {
  font-size: 15px;
  color: #444;
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-top: 5px;
}

/* ==== Glow Animation ==== */
@keyframes flickerGlow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(0,123,255,0.5), 0 0 20px rgba(0,180,255,0.4);
    color: #007bff;
  }
  50% {
    text-shadow: 0 0 5px rgba(0,123,255,0.2), 0 0 10px rgba(0,180,255,0.2);
    color: #00aaff;
  }
}
.bms-header-title {
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeInSlide 1.5s ease forwards;
}

@keyframes fadeInSlide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===== DASHBOARD TITLE SECTION ===== */
.bms-header-title {
  text-align: center;
  margin: 0 auto 25px auto;
  padding: 25px 0;
  background: linear-gradient(135deg, #eaf4ff, #f9fcff);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  max-width: 95%;
  position: relative;
  top: 0;
  z-index: 5;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeInSlide 1.5s ease forwards;
}

.bms-glow-title {
  font-size: 38px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #007bff;
  text-shadow: 0 0 10px rgba(0,123,255,0.4), 0 0 20px rgba(0,180,255,0.3);
  animation: flickerGlow 3s infinite ease-in-out;
  letter-spacing: 1px;
}

.bms-subtitle {
  font-size: 16px;
  color: #444;
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-top: 8px;
}

/* ==== Glow Animation ==== */
@keyframes flickerGlow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(0,123,255,0.5), 0 0 20px rgba(0,180,255,0.4);
    color: #007bff;
  }
  50% {
    text-shadow: 0 0 5px rgba(0,123,255,0.2), 0 0 10px rgba(0,180,255,0.2);
    color: #00aaff;
  }
}

/* ==== Fade In ==== */
@keyframes fadeInSlide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
