/* ========================================
   Custom Admin Styles - Centralized CSS
   ======================================== */
/* =========================
   List Pages - Common Styles
   ========================= */
/* Table Buttons */
#table .btn {
    margin: 0 2px;
}
/* Stats Cards */
.stats-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    padding: 20px;
}
.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.stats-card h3 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}
.stats-card p {
    font-size: 14px;
    margin: 0;
}
.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}
/* =========================
   Form Pages - Common Styles
   ========================= */
/* Map Components */
.map-card {
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
    background: #fff;
    height: 100%;
}
.map-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(180deg, #fafbff, #f6f7fb);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.map-header .title {
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
}
#country-map {
    height: 500px;
    width: 100%;
}
/* Form Sections */
.form-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.form-icon {
    font-size: 1.2rem;
    color: #556ee6;
}
/* Leaflet Geocoder Customization */
.leaflet-control-geocoder {
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08) !important;
    border: 1px solid rgba(0, 0, 0, .06) !important;
    border-radius: 10px !important;
    overflow: hidden;
}
.leaflet-control-geocoder .leaflet-control-geocoder-form input {
    min-width: 320px;
    border: none !important;
    padding: 10px 12px !important;
    font-size: 14px;
}
/* Image Upload Components */
.image-upload-container {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background: #f9fafb;
    transition: all 0.3s ease;
    cursor: pointer;
}
.image-upload-container:hover {
    border-color: #556ee6;
    background: #f0f4ff;
}
.image-upload-container.dragover {
    border-color: #556ee6;
    background: #e0e7ff;
    transform: scale(1.02);
}
.image-preview-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}
.image-preview {
    max-width: 100%;
    max-height: 250px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}
.remove-image-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}
.remove-image-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}
.upload-icon {
    font-size: 48px;
    color: #9ca3af;
    margin-bottom: 10px;
}
.upload-text {
    color: #6b7280;
    font-size: 14px;
}
.upload-text strong {
    color: #556ee6;
}
/* =========================
   Establishment Specific
   ========================= */
/* Service Items */
.service-item {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}
.service-item:hover {
    border-color: #556ee6;
    box-shadow: 0 4px 12px rgba(85, 110, 230, 0.1);
}
.service-item-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
    margin: -20px -20px 15px -20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.btn-add-service {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: transform 0.2s;
}
.btn-add-service:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}
/* =========================
   Dashboard Home
   ========================= */
.dash-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    color: #fff;
}
.dash-header h4 {
    color: #fff;
    font-weight: 600;
    margin: 0;
}
.dash-header .breadcrumb {
    background: rgba(255, 255, 255, 0.12);
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    margin: 0;
}
.dash-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85);
}
.dash-header .breadcrumb-item.active {
    color: #fff;
}
.dash-period-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.35rem;
    border-radius: 10px;
}
.dash-period-pills a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    transition: background 0.2s ease;
    white-space: nowrap;
}
.dash-period-pills a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.dash-period-pills a.active {
    background: #fff;
    color: #667eea;
}
.dash-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    height: 100%;
}
.dash-card .card-body {
    padding: 1.25rem 1.35rem;
}
.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.dash-card-header .card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}
.dash-count-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
}
.dash-count-card .icon-circle {
    width: 52px;
    height: 52px;
    min-width: 52px;
    font-size: 1.35rem;
    border-radius: 12px;
}
.dash-count-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: #0f172a;
}
.dash-count-card p {
    margin: 0.15rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
}
.dash-count-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.dash-count-link:hover .dash-card {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}
.dash-metric-card .metric-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.dash-metric-card .metric-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
}
.dash-metric-card .metric-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}
.dash-metric-card .metric-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0.35rem 0 0;
    line-height: 1.3;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
}
.dash-metric-card .metric-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0.35rem 0 0;
}
.dash-metric-card .metric-sparkline {
    margin-top: 0.65rem;
    display: flex;
    justify-content: flex-end;
    min-height: 35px;
}
.dash-change {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    white-space: nowrap;
}
.dash-change.up {
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
}
.dash-change.down {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}
.dash-change.neutral {
    color: #94a3b8;
    background: #f1f5f9;
}
.dash-status-item {
    text-align: center;
    padding: 0.85rem 0.5rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    height: 100%;
}
.dash-status-item h5 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
}
.dash-status-item span {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}
.dash-panel-table {
    margin: 0;
}
.dash-panel-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    font-weight: 600;
    border-bottom-width: 1px;
    padding: 0.65rem 0.75rem;
    white-space: nowrap;
}
.dash-panel-table tbody td {
    padding: 0.75rem;
    font-size: 0.875rem;
    vertical-align: middle;
    border-color: #f1f5f9;
}
.dash-panel-table tbody tr:last-child td {
    border-bottom: none;
}
.dash-status-pill {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.dash-quick-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    min-height: 130px;
    padding: 1.25rem 1rem;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}
.dash-quick-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}
.dash-quick-tile i {
    font-size: 2rem;
    margin-bottom: 0.65rem;
}
.dash-quick-tile h6 {
    margin: 0 0 0.25rem;
    font-weight: 600;
    font-size: 0.9375rem;
}
.dash-quick-tile small {
    color: #64748b;
    font-size: 0.75rem;
}
.dash-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #94a3b8;
}
.dash-empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}
@media (max-width: 1199.98px) {
    .dash-metric-card .metric-value {
        font-size: 1.2rem;
    }
}
@media (max-width: 767.98px) {
    .dash-header {
        padding: 1.15rem;
    }
    .dash-period-pills {
        width: 100%;
        justify-content: center;
    }
}

/* =========================
   Utility Classes
   ========================= */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
