body {
    background-color: #f5f7fa;
}

.hero {
    background: linear-gradient(rgba(31, 111, 155, 0.85), rgba(31, 111, 155, 0.85)),
        url("https://images.unsplash.com/photo-1509395176047-4a66953fd231");
    background-size: cover;
    color: #fff;
}

.home-page .hero {
    background: linear-gradient(120deg, rgba(14, 70, 126, 0.92), rgba(33, 121, 176, 0.88)),
        url("https://images.unsplash.com/photo-1509395176047-4a66953fd231");
    background-size: cover;
    background-position: center;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-welcome-banner {
    max-width: 40rem;
    padding: 0.9rem 1.15rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 6px 18px rgba(8, 47, 73, 0.15);
}

.hero-welcome-line {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.4;
    color: #ffffff;
    margin: 0;
}

.hero-welcome-line span,
.hero-welcome-name {
    font-size: inherit;
    font-weight: inherit;
}

.hero-welcome-name {
    font-weight: 700 !important;
    color: #ffe082;
}

.hero-welcome-sub {
    font-size: 0.95rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.86);
}

.hero-welcome-badge {
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0f172a;
    background: #ffc107;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
}

@media (max-width: 575.98px) {
    .hero-welcome-banner {
        padding: 0.75rem 1rem;
    }

    .hero-welcome-line {
        font-size: 1.15rem;
    }

    .hero-welcome-sub {
        font-size: 0.88rem;
    }
}

.navbar .nav-link {
    font-weight: 500;
}

.navbar .nav-link:hover {
    opacity: 0.9;
}

.search-card {
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
}

.map-radius-control {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
    border-radius: 10px;
    padding: 8px 10px 10px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 120px;
    border: 1px solid #e2e8f0;
}

.map-radius-control-label {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.map-radius-control select {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    padding: 4px 8px;
    background: #f8fafc;
    cursor: pointer;
}

.map-radius-control select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.map-card .card-body {
    padding-bottom: 1.2rem;
}

.map-box {
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.well-chip-marker--stacked {
    border-color: #f59e0b;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.35);
}

.well-chip-marker--stacked .well-chip-dot {
    background: #d97706;
}

.stacked-wells-info a {
    color: #1d4ed8;
    text-decoration: none;
}

.stacked-wells-info a:hover {
    text-decoration: underline;
}

.well-chip-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #ffffff;
    border-radius: 999px;
    border: 1px solid #dbe3ef;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
    padding: 0.18rem 0.45rem 0.18rem 0.25rem;
    white-space: nowrap;
    cursor: pointer;
    z-index: 3;
}

.well-chip-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
}

.well-chip-text {
    color: #111827;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

#wellsTable th,
#wellsTable td {
    vertical-align: middle;
}

#listingSection .card-header {
    padding: 1rem 1.25rem;
}

#listingSection .table-responsive {
    padding: 0.4rem 0.85rem 0.9rem;
}

#wellsTable thead th {
    background: #f8fafc;
    color: #374151;
    border-top: 0;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    padding: 0.72rem 0.65rem;
}

#wellsTable tbody td {
    padding: 0.72rem 0.65rem;
    border-top: 1px solid #eef2f7;
}

#wellsTable tbody tr:hover {
    background-color: #f8fbff;
}

#wellsTable_wrapper .dataTables_filter input {
    border: 1px solid #ced4da;
    border-radius: 6px;
    margin-left: 0.4rem;
    padding: 0.3rem 0.55rem;
}

#wellsTable_wrapper .dataTables_length select {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0.2rem 1.4rem 0.2rem 0.5rem;
}

#wellsTable_wrapper .dataTables_filter,
#wellsTable_wrapper .dataTables_length {
    padding-top: 0.25rem;
}

#wellsTable_wrapper .dataTables_info,
#wellsTable_wrapper .dataTables_paginate {
    padding-top: 0.75rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0;
    border-bottom: 1px solid #eef2f7;
}

.summary-item span {
    color: #6b7280;
}

.summary-item strong {
    color: #0f172a;
}

#wellHistory {
    max-height: 260px;
    overflow-y: auto;
    line-height: 1.4;
}

.well-history-empty {
    color: #6b7280;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 0.7rem 0.75rem;
}

.well-history-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    padding: 0.65rem 0.7rem;
}

.well-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.55rem;
}

.well-history-title {
    font-weight: 700;
    color: #0f172a;
}

.well-history-chip {
    background: #e0f2fe;
    color: #0c4a6e;
    border-radius: 999px;
    padding: 0.12rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
}

.well-history-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.34rem 0;
    border-top: 1px solid #f1f5f9;
}

.well-history-row:first-of-type {
    border-top: 0;
}

.well-history-row span {
    color: #64748b;
    min-width: 86px;
}

.well-history-row strong {
    color: #111827;
    text-align: right;
    font-weight: 600;
    word-break: break-word;
}

.well-file-name {
    font-size: 0.78rem;
}

.footer-section {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.footer-section a {
    color: #2563eb;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.admin-content {
    flex: 1;
    min-width: 0;
}

@media (max-width: 991px) {
    .admin-shell {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .map-box {
        height: 380px;
    }
}

.admin-records-card,
.admin-stat-card {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.admin-records-card .card-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

.admin-records-card .table-responsive {
    padding: 0.75rem 0.75rem 1rem;
}

.admin-records-card .border-bottom {
    border: 1px solid #e9ecef !important;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    padding: 0.75rem 0.85rem !important;
    background-color: #f8fafc !important;
}

#recordsTable th,
#recordsTable td {
    vertical-align: middle;
}

#recordsTable thead th {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

#recordsTable tbody td {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

#recordsTable tbody tr:hover {
    background-color: #f4f9ff;
}

#recordsTable td:last-child {
    min-width: 130px;
}

.action-icons {
    gap: 0.35rem;
    flex-wrap: nowrap;
}

.action-icon-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
}

.action-icon-btn i {
    font-size: 0.9rem;
    line-height: 1;
}

#recordsTable_wrapper .row:first-child {
    margin-bottom: 0.5rem;
}

#recordsTable_wrapper .row:last-child {
    margin-top: 0.5rem;
}

#recordsTable_wrapper .dataTables_info,
#recordsTable_wrapper .dataTables_paginate {
    padding-top: 0.75rem;
}

#recordsTable_wrapper .dataTables_filter input {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 0.38rem 0.65rem;
    min-width: 260px;
    margin-left: 0.4rem;
}

#recordsTable_wrapper .dataTables_length select {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 0.25rem 1.75rem 0.25rem 0.5rem;
}

#bulkDeleteBtn {
    min-width: 140px;
    font-weight: 600;
}

@media (max-width: 767px) {
    .admin-records-card .card-header {
        padding: 0.85rem 1rem;
    }

    .admin-records-card .table-responsive {
        padding: 0.5rem 0.5rem 0.85rem;
    }

    #recordsTable_wrapper .dataTables_filter input {
        min-width: 170px;
    }
}

