/* Custom PDMA Directory Styles */
:root {
  --pdma-lime: #cde86f;
  --pdma-lime-dark: #b6d94c;
  --pdma-green: #8bc34a;
  --pdma-blue: #7ec6c7;
  --pdma-yellow: #ffe066;
  --pdma-gray: #f8fafd;
  --pdma-shadow: 0 4px 24px 0 rgba(0,0,0,0.06);
  --pdma-radius: 18px;
}

body {
  background: var(--pdma-gray);
}

.navbar {
  box-shadow: var(--pdma-shadow);
}

.navbar-brand svg {
  margin-right: 8px;
}

.btn-lime, .btn-lime:focus {
  background: var(--pdma-lime);
  color: #222;
  border: none;
  border-radius: 8px;
  font-weight: 600;
}
.btn-lime:hover {
  background: var(--pdma-lime-dark);
  color: #222;
}

.btn-signin {
  background: var(--pdma-lime-dark);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  border: none;
}
.btn-signin:hover {
  background: var(--pdma-green);
  color: #fff;
}

.card, .dashboard-card {
  border-radius: var(--pdma-radius);
  box-shadow: var(--pdma-shadow);
  border: none;
}

.dashboard-card {
  background: #f8faf5;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(205, 232, 111, 0.10);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
  transition: box-shadow 0.15s;
}
.dashboard-card:hover {
  box-shadow: 0 4px 24px 0 rgba(205, 232, 111, 0.18);
}

.badge-pdma {
  border-radius: 12px;
  font-size: 0.95em;
  font-weight: 600;
  padding: 0.35em 1em;
  display: inline-block;
}
.badge-active {
  background: #e6f9c7;
  color: #4caf50;
}
.badge-prov {
  background: #e3f2fd;
  color: #2196f3;
}
.badge-lapsed {
  background: #fff9c4;
  color: #fbc02d;
}

.table-pdma th, .table-pdma td {
  vertical-align: middle;
  border: none;
}
.table-pdma th {
  background: #f8faf5 !important;
  border-top: none;
  border-bottom: 2px solid #f1f5e8;
  color: #7c9c2c;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.98rem;
}
.table-pdma tr {
  border-radius: 12px;
  transition: background 0.2s;
}
.table-pdma tr:hover {
  background: #f4fbe8;
}

.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: #fcfcfc;
}

input[type="date"]::-webkit-input-placeholder { color: #bbb; }
input[type="date"]::-moz-placeholder { color: #bbb; }
input[type="date"]:-ms-input-placeholder { color: #bbb; }
input[type="date"]::placeholder { color: #bbb; }

.pdma-header-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.pdma-header-desc {
  color: #6c757d;
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.pdma-table-action {
  background: #f4fbe8;
  color: var(--pdma-green);
  border-radius: 8px;
  font-weight: 600;
  border: none;
  padding: 0.3em 1.2em;
  display: flex;
  align-items: center;
  gap: 0.3em;
  transition: background 0.2s;
}
.pdma-table-action:hover {
  background: var(--pdma-lime);
  color: #222;
}

/* Dashboard upload button */
.btn-upload-file {
  background: #cde86f;
  color: #222;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  box-shadow: 0 1px 4px 0 rgba(205, 232, 111, 0.08);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  display: inline-block;
}
.btn-upload-file:hover, .btn-upload-file:focus {
  background: #b6d94c;
  color: #222;
  text-decoration: none;
}

/* Custom icon color for dashboard */
.pdma-icon-green {
  color: #7c9c2c;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdma-icon-lime {
  color: #b6d94c;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .dashboard-card { min-width: 100%; margin-bottom: 1rem; }
}

.search-card-custom {
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(60, 120, 0, 0.10), 0 1.5px 6px 0 rgba(205, 232, 111, 0.10);
    background: #fff;
    padding: 2.2rem 2.2rem 1.5rem 2.2rem;
}
.search-card-custom .input-group-text {
    background: #fff;
    border-right: 0;
    color: #adb5bd;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}
.search-card-custom .form-control, .search-card-custom .form-select {
    border-radius: 10px;
    font-size: 1.08rem;
    min-height: 48px;
}
.search-card-custom label.form-label {
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.search-card-custom .input-group .form-control {
    border-left: 0;
}
@media (max-width: 991px) {
    .search-card-custom {
        padding: 1.2rem 0.7rem 1rem 0.7rem;
    }
}

.practitioners-card-custom {
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(60, 120, 0, 0.10), 0 1.5px 6px 0 rgba(205, 232, 111, 0.10);
    background: #fff;
    padding: 2.2rem 2.2rem 1.5rem 2.2rem;
}
.practitioners-table {
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}
.practitioners-table th {
    letter-spacing: 0.04em;
    font-size: 0.98rem;
    background: #f8faf5 !important;
    border-top: none;
    border-bottom: 2px solid #f1f5e8;
    border-right: none;
    border-left: none;
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}
.practitioners-table td {
    border-top: none;
    border-bottom: 1.5px solid #f1f5e8;
    border-right: none;
    border-left: none;
    background: transparent;
    vertical-align: middle;
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}
.practitioner-row-custom {
    transition: background 0.15s;
}
.bg-practitioner-alt {
    background: #fcfdf7 !important;
}
.badge-pdma {
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.35em 1.1em;
    box-shadow: 0 1px 4px 0 rgba(205, 232, 111, 0.08);
    border: none;
    display: inline-block;
}
.badge-active {
    background: #e8fbe0;
    color: #3a7c2c;
}
.badge-prov {
    background: #eaf6f8;
    color: #3a6c7c;
}
.badge-lapsed {
    background: #fdf7e0;
    color: #a88c1c;
}
.btn-outline-lime {
    border: 2px solid #b6d94c;
    color: #7c9c2c;
    background: #fff;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s, border 0.15s;
}
.btn-outline-lime:hover, .btn-outline-lime:focus {
    background: #f8fbe8;
    color: #5c6e2f;
    border-color: #cde86f;
}
@media (max-width: 991px) {
    .practitioners-card-custom {
        padding: 1.2rem 0.7rem 1rem 0.7rem;
    }
}
