html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard-page {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 40px 25px;
}


/* Header */

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.dashboard-eyebrow {
    color: #2563eb;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 1.6px;
}

.dashboard-header h1 {
    margin: 7px 0 5px;
    color: #0f172a;
    font-size: 32px;
    font-weight: 750;
}

.dashboard-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.dashboard-water-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient( 135deg, #dbeafe, #cffafe );
    font-size: 30px;
}


/* =========================================================
   QUICK ACTIONS
   ========================================================= */

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

.dashboard-action {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    color: #334155;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: .2s ease;
}

    .dashboard-action:hover {
        transform: translateY(-2px);
        border-color: #93c5fd;
        box-shadow: 0 10px 25px rgba(15, 23, 42, .07);
    }

    .dashboard-action.primary {
        color: white;
        background: linear-gradient( 135deg, #2563eb, #0891b2 );
        border: none;
    }

.action-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(255,255,255,.16);
    font-size: 23px;
}

.dashboard-action:not(.primary) .action-icon {
    background: #eff6ff;
}

.action-icon.bottle {
    background: #ecfeff !important;
}

.dashboard-action strong {
    display: block;
    font-size: 14px;
}

.dashboard-action span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    opacity: .75;
}

.dashboard-action b {
    margin-left: auto;
    font-size: 20px;
}


/* =========================================================
   STATISTICS
   ========================================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

    .stat-card span:not(.stat-icon) {
        display: block;
        color: #64748b;
        font-size: 12px;
    }

    .stat-card strong {
        display: block;
        margin-top: 4px;
        color: #0f172a;
        font-size: 23px;
    }

.stat-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    font-size: 19px;
}

    .stat-icon.blue {
        color: #2563eb;
        background: #eff6ff;
    }

    .stat-icon.orange {
        color: #ea580c;
        background: #fff7ed;
    }

    .stat-icon.green {
        color: #16a34a;
        background: #f0fdf4;
    }

    .stat-icon.purple {
        color: #7c3aed;
        background: #f5f3ff;
    }


/* =========================================================
   SECTIONS
   ========================================================= */

.dashboard-section {
    padding: 25px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

    .section-header h2 {
        margin: 0;
        color: #0f172a;
        font-size: 18px;
    }

    .section-header p {
        margin: 5px 0 0;
        color: #64748b;
        font-size: 12px;
    }

    .section-header a {
        color: #2563eb;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
    }


/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-dashboard {
    text-align: center;
    padding: 45px 20px;
}

.empty-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border-radius: 20px;
    background: #eff6ff;
    font-size: 28px;
}

.empty-dashboard h3 {
    margin: 0;
    color: #334155;
    font-size: 16px;
}

.empty-dashboard p {
    margin: 7px 0 18px;
    color: #94a3b8;
    font-size: 13px;
}

.dashboard-button {
    display: inline-block;
    padding: 10px 17px;
    color: white;
    background: #2563eb;
    border-radius: 9px;
    font-size: 13px;
    text-decoration: none;
}


/* =========================================================
   AVAILABILITY
   ========================================================= */

.availability-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    margin-bottom: 25px;
    border-radius: 15px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.availability-left {
    display: flex;
    align-items: center;
    gap: 13px;
}

.availability-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: white;
    background: #16a34a;
}

.availability-left strong {
    display: block;
    color: #166534;
    font-size: 14px;
}

.availability-left span {
    display: block;
    margin-top: 3px;
    color: #4d7c5c;
    font-size: 12px;
}


/* Toggle */

.availability-toggle input {
    display: none;
}

.availability-toggle span {
    display: block;
    width: 48px;
    height: 27px;
    position: relative;
    border-radius: 20px;
    background: #16a34a;
    cursor: pointer;
}

    .availability-toggle span::after {
        content: "";
        position: absolute;
        width: 21px;
        height: 21px;
        top: 3px;
        right: 3px;
        border-radius: 50%;
        background: white;
        box-shadow: 0 2px 5px rgba(0,0,0,.15);
    }


/* =========================================================
   REQUEST COUNT
   ========================================================= */

.request-count {
    padding: 6px 10px;
    border-radius: 20px;
    color: #2563eb;
    background: #eff6ff;
    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   ADMIN
   ========================================================= */

.admin-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.admin-action {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    color: #334155;
    text-decoration: none;
    transition: .2s ease;
}

    .admin-action:hover {
        border-color: #93c5fd;
        background: #f8fbff;
    }

    .admin-action > span {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 11px;
        background: #eff6ff;
        font-size: 18px;
    }

    .admin-action strong {
        display: block;
        font-size: 13px;
    }

    .admin-action small {
        display: block;
        margin-top: 3px;
        color: #94a3b8;
        font-size: 11px;
    }

    .admin-action b {
        margin-left: auto;
    }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {

    .dashboard-page {
        padding: 25px 15px;
    }

    .dashboard-header h1 {
        font-size: 26px;
    }

    .dashboard-actions {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .admin-actions {
        grid-template-columns: 1fr;
    }

    .dashboard-water-icon {
        display: none;
    }
}

@media (max-width: 450px) {

    .dashboard-section {
        padding: 18px;
    }

    .availability-card {
        align-items: flex-start;
    }
}


.water-request-page {
    min-height: calc(100vh - 70px);
    background: #f8fafc;
    padding: 45px 20px;
}

.request-container {
    max-width: 850px;
    margin: auto;
}

.request-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
}

.request-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient( 135deg, #2563eb, #06b6d4 );
    color: white;
    font-size: 28px;
    box-shadow: 0 12px 30px rgba(37, 99, 235, .2);
}

.request-heading span {
    color: #2563eb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.request-heading h1 {
    margin: 3px 0;
    color: #0f172a;
    font-size: 30px;
    font-weight: 750;
}

.request-heading p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.request-card {
    padding: 25px;
    margin-bottom: 18px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(15, 23, 42, .03);
}

    .request-card h2 {
        margin: 0;
        color: #0f172a;
        font-size: 17px;
        font-weight: 700;
    }

.request-help {
    margin: 5px 0 18px;
    color: #94a3b8;
    font-size: 12px;
}

.quantity-wrapper {
    max-width: 400px;
}

.quantity-input {
    position: relative;
}

    .quantity-input label {
        color: #334155;
        font-size: 12px;
        font-weight: 600;
    }

    .quantity-input input {
        padding-right: 80px;
    }

.quantity-unit {
    position: absolute;
    right: 15px;
    bottom: 14px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.no-address {
    padding: 30px;
    text-align: center;
    background: #f8fafc;
    border-radius: 14px;
}

    .no-address strong {
        display: block;
        margin-top: 8px;
        color: #334155;
    }

    .no-address p {
        color: #64748b;
        font-size: 13px;
    }

.request-info {
    display: flex;
    gap: 15px;
    padding: 18px;
    margin-bottom: 20px;
    border-radius: 15px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
}

.info-icon {
    font-size: 25px;
}

.request-info strong {
    color: #1e3a8a;
    font-size: 13px;
}

.request-info p {
    margin: 4px 0 0;
    color: #475569;
    font-size: 12px;
}

.request-submit {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

    .request-submit .btn-primary {
        padding-left: 28px;
        padding-right: 28px;
        border: none;
        background: linear-gradient( 135deg, #2563eb, #0891b2 );
    }

        .request-submit .btn-primary span {
            margin-left: 8px;
        }

@media (max-width: 650px) {

    .water-request-page {
        padding: 25px 15px;
    }

    .request-heading {
        align-items: flex-start;
    }

        .request-heading h1 {
            font-size: 24px;
        }

    .request-icon {
        width: 52px;
        height: 52px;
    }

    .request-submit {
        flex-direction: column-reverse;
    }

        .request-submit .btn {
            width: 100%;
        }
}

/* =========================================================
   CUSTOMER ADDRESSES
   ========================================================= */

.address-page {
    min-height: calc(100vh - 70px);
    background: #f8fafc;
    padding: 45px 20px;
}

.address-container {
    max-width: 900px;
    margin: auto;
}

.address-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.back-button {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #475569;
    background: white;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: .2s;
}

    .back-button:hover {
        background: #eff6ff;
        color: #2563eb;
    }

.address-heading-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: linear-gradient( 135deg, #2563eb, #06b6d4 );
    color: white;
    font-size: 25px;
    box-shadow: 0 10px 25px rgba(37, 99, 235, .2);
}

.address-eyebrow {
    color: #2563eb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.address-heading h1,
.address-list-header h1 {
    margin: 3px 0;
    color: #0f172a;
    font-size: 29px;
    font-weight: 750;
}

.address-heading p,
.address-list-header p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}


/* Cards */

.address-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 18px;
    box-shadow: 0 5px 20px rgba(15, 23, 42, .03);
}

    .address-card h2 {
        margin: 0;
        color: #0f172a;
        font-size: 16px;
        font-weight: 700;
    }

.address-help {
    margin: 5px 0 20px;
    color: #94a3b8;
    font-size: 12px;
}

.address-card .form-label {
    color: #334155;
    font-size: 12px;
    font-weight: 600;
}


/* Default */

.default-address {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

    .default-address strong {
        display: block;
        color: #334155;
        font-size: 13px;
    }

    .default-address small {
        display: block;
        margin-top: 3px;
        color: #94a3b8;
        font-size: 11px;
    }


/* Actions */

.address-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

    .address-actions .btn-primary {
        padding-left: 25px;
        padding-right: 25px;
        border: none;
        background: linear-gradient( 135deg, #2563eb, #0891b2 );
    }

    .address-actions span {
        margin-left: 7px;
    }


/* Address list */

.address-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

    .address-list-header .btn {
        white-space: nowrap;
    }


.address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.saved-address-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(15, 23, 42, .03);
    transition: .2s;
}

    .saved-address-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(15, 23, 42, .07);
    }

.saved-address-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.saved-address-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #eff6ff;
    font-size: 21px;
}

.saved-address-top h3 {
    margin: 0 0 5px;
    color: #0f172a;
    font-size: 15px;
}

.default-badge {
    padding: 3px 8px;
    border-radius: 20px;
    color: #166534;
    background: #dcfce7;
    font-size: 9px;
    font-weight: 700;
}

.saved-address-body {
    padding: 18px 20px;
}

    .saved-address-body p {
        margin: 0 0 4px;
        color: #475569;
        font-size: 12px;
    }

.saved-address-footer {
    padding: 12px 20px;
    background: #f8fafc;
}

.coordinates {
    color: #94a3b8;
    font-size: 10px;
}


/* Empty state */

.empty-address {
    padding: 70px 20px;
    text-align: center;
    background: white;
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
}

.empty-address-icon {
    font-size: 45px;
    margin-bottom: 10px;
}

.empty-address h2 {
    color: #334155;
    font-size: 20px;
}

.empty-address p {
    margin-bottom: 20px;
    color: #94a3b8;
    font-size: 13px;
}


/* Mobile */

@media (max-width: 700px) {

    .address-page {
        padding: 25px 15px;
    }

    .address-list-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

        .address-list-header .btn {
            width: 100%;
        }

    .address-grid {
        grid-template-columns: 1fr;
    }

    .address-heading h1 {
        font-size: 24px;
    }

    .address-actions {
        flex-direction: column-reverse;
    }

        .address-actions .btn {
            width: 100%;
        }
}