/* DENTAL-MEDIKA Smart Service */

:root {
  --navy: #061b3a;
  --blue: #0875e1;
  --turquoise: #00bfd0;
  --green: #08b77a;
  --orange: #ff9828;
  --white: #ffffff;
  --background: #eef5fb;
  --text: #102344;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--background);
  color: var(--text);
}

.dm-header {
  background: linear-gradient(110deg, #061b3a, #0875e1, #00bfd0);
  color: white;
  padding: 28px;
  text-align: center;
}

.dm-header h1 {
  margin: 0;
  font-size: 32px;
}

.dm-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 270px;
  gap: 20px;
  max-width: 1600px;
  margin: 24px auto;
  padding: 0 20px;
}

.dm-sidebar {
  background: var(--navy);
  color: white;
  padding: 24px;
  border-radius: 18px;
}

.dm-main {
  min-width: 0;
}

.dm-card {
  background: white;
  padding: 25px;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(0, 30, 70, 0.09);
}

.dm-button {
  display: inline-block;
  background: linear-gradient(120deg, #0875e1, #00bfd0);
  color: white;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: bold;
  margin: 6px;
}

.dm-button:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.dm-ad {
  background: linear-gradient(145deg, #0875e1, #061b3a);
  color: white;
  padding: 24px;
  border-radius: 18px;
  margin-bottom: 20px;
}

.dm-ad h3 {
  color: #65f4ff;
}

.dm-status {
  display: inline-block;
  background: #d9fff0;
  color: #087c55;
  padding: 8px 14px;
  border-radius: 30px;
  font-weight: bold;
}

@media (max-width: 1000px) {
  .dm-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .dm-header h1 {
    font-size: 24px;
  }

  .dm-card {
    padding: 18px;
  }
}
/* DENTAL-MEDIKA - Professional Layout */

.dm-card,
.dm-ad {
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 24px auto;
}

.dm-card {
    border: 1px solid #dce9f5;
    border-top: 5px solid #00bfd0;
}

.dm-ad {
    border: 1px solid #0875e1;
    box-shadow: 0 10px 30px rgba(0, 40, 90, 0.18);
}

@media (max-width: 600px) {
    .dm-card,
    .dm-ad {
        width: calc(100% - 24px);
        padding: 20px;
        margin: 16px auto;
    }

    .dm-button {
        display: block;
        text-align: center;
        margin: 10px 0;
    }
}
/* Final dashboard width correction */

@media (min-width: 1001px) {
    .dm-card,
    .dm-ad {
        width: 90%;
        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;
    }
}
/* DENTAL-MEDIKA - Promotional Cards */

.dm-promotions {
    width: 90%;
    max-width: 1100px;
    margin: 24px auto 40px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.dm-promo-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    border-top: 5px solid #00bfd0;
    box-shadow: 0 8px 24px rgba(0, 40, 90, 0.10);
}

.dm-promo-card h3 {
    color: #061b3a;
    margin-top: 0;
    font-size: 22px;
}

.dm-promo-card p {
    color: #40566f;
    line-height: 1.6;
}

@media (max-width: 800px) {
    .dm-promotions {
        grid-template-columns: 1fr;
    }
}
/* DENTAL-MEDIKA - Product Image */

.dm-product-image {
    display: block;
    width: 100%;
    max-width: 260px;
    height: 220px;
    object-fit: contain;
    margin: 15px auto;
}
/* DENTAL-MEDIKA - Weekly Offers Table */

.dm-offers-table {
    width: 95%;
    max-width: 1200px;
    margin: 30px auto;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 40, 90, 0.12);
}
/* Weekly Offers - Table Header */

.dm-offers-table thead {
    background: #061b3a;
    color: #ffffff;
}

.dm-offers-table th {
    padding: 18px 14px;
    text-align: left;
    font-weight: 700;
    border-bottom: 4px solid #00bfd0;
}
/* Weekly Offers - Table Rows */

.dm-offers-table td {
    padding: 16px 14px;
    border-bottom: 1px solid #e2edf5;
    font-size: 15px;
    vertical-align: middle;
}

.dm-offers-table tbody tr:hover {
    background: #65dce8;
}
/* DENTAL-MEDIKA - Weekly Offer Action Buttons */

.dm-btn-enable,
.dm-btn-disable {
    padding: 12px 20px;
    border: none;
    border-radius: 9px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dm-btn-enable {
    background: #008f88;
}

.dm-btn-enable:hover {
    background: #006b66;
}

.dm-btn-disable {
    background: #e36b16;
}

.dm-btn-disable:hover {
    background: #b94d08;
}

/* DENTAL-MEDIKA - Edit Weekly Offer */

.dm-edit-wrap {
    max-width: 760px;
    margin: 40px auto;
    padding: 32px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 30, 60, 0.08);
}

.dm-edit-wrap form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dm-edit-wrap label {
    display: block;
    font-weight: 600;
    margin-top: 8px;
}
.dm-edit-wrap input,
.dm-edit-wrap textarea,
.dm-edit-wrap select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: #ffffff;
    color: #0a2342;
}
/* Edit Weekly Offer - Save Button */

.dm-edit-wrap button[type="submit"] {
    background: #008f88;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 16px;
    transition: background 0.2s ease;
}

.dm-edit-wrap button[type="submit"]:hover {
    background: #006b66;
}

/* Edit Weekly Offer - Back Link */

.dm-edit-wrap .back {
    display: inline-block;
    margin-top: 18px;
    color: #008f88;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.dm-edit-wrap .back:hover {
    text-decoration: underline;
}
/* Dental-Medika - Weekly Offer Card */
.offer-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    padding: 28px;
    margin: 25px auto;
    max-width: 850px;
    box-shadow: 0 8px 24px rgba(0, 35, 75, 0.10);
}
/* Weekly Offer - Price Label */
.offer-card .offer-price-label {
    color: #008f88;
    font-size: 24px;
    font-weight: 700;
}
/* Weekly Offer - Price Value */
.offer-card .offer-price-value {
    color: #008f88;
    font-size: 28px;
    font-weight: 800;
}
/* Weekly Offer - Validity Date */
.offer-card .offer-validity {
    display: inline-block;
    background: #e6f7f6;
    color: #006b66;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 12px;
}

/* Weekly Offer - Discount Badge */
.offer-card .offer-discount {
    display: inline-block;
    background: #ff6b35;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
}