/* =========================
   GENERAL SETTINGS
========================= */
body {
    font-family:
        "Segoe UI",
        -apple-system,
        BlinkMacSystemFont,
        "Helvetica Neue",
        Arial,
        sans-serif;
    background-color: #f8f9fa;
    /* Light gray background */
    color: #212529;
}

a {
    text-decoration: none;
}


h1 {
    font-size: 1.75rem;
    font-weight: 500;
}

h2 {
    font-size: 1.5rem;
    font-weight: 500;
}

h3 {
    font-size: 1.25rem;
    font-weight: 500;
}

h4,
h5,
h6 {
    font-weight: 400;
}


/* =========================
   NAVBAR
========================= */
.navbar {
    background-color: #ffffff;
}

.navbar-brand {
    color: #0d6efd;
}

.navbar .btn-outline-secondary {
    color: #495057;
    border-color: #ced4da;
}

.navbar .btn-outline-secondary:hover {
    background-color: #e9ecef;
}


/* =========================
   SIDEBAR
========================= */
.list-group-item {
    border-radius: 0;
    border: 0;
    color: #495057;
    font-weight: 500;
}

.list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.list-group-item:hover:not(.active) {
    background-color: #e9ecef;
}


/* =========================
   CARDS
========================= */
.card {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
}

.card-title {
    font-weight: 600;
}


/* =========================
   BUTTONS
========================= */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-outline-secondary {
    color: #495057;
    border-color: #ced4da;
}

.btn-outline-secondary:hover {
    background-color: #e9ecef;
}

.btn-sm {
    font-size: 0.8rem;
}


/* =========================
   FORMS
========================= */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}


/* =========================
   COMPACT FORMS / EDIT PAGES
========================= */

/* Smaller labels */
.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 2px;
}

/* Smaller input text */
.form-control-sm,
.form-select-sm {
    font-size: 0.85rem;
}

/* Slightly smaller text in input groups */
.input-group-text {
    font-size: 0.85rem;
}

/* Compact form card sections */
.form-section .card-body {
    padding: 1rem 1.2rem;
}

/* Section headers inside forms */
.form-section .card-title {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

/* Reduce spacing between form rows */
.form-section .mb-3 {
    margin-bottom: 0.6rem !important;
}

.form-section .mb-2 {
    margin-bottom: 0.35rem !important;
}


/* Optional: sticky action bar for save buttons */
.form-actions-top {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    padding-bottom: 10px;
    z-index: 10;
}


/* =========================
   TABLES
========================= */
.table-hover tbody tr:hover {
    background-color: #f1f3f5;
}

.table th {
    font-weight: 600;
}

.table td,
.table th {
    vertical-align: middle;
}


/* =========================
   FOOTER
========================= */
footer {
    background-color: #ffffff;
    color: #6c757d;
    font-size: 0.875rem;
}


/* =========================
   ALERTS / FLASH MESSAGES
========================= */
.alert {
    border-radius: 0.5rem;
}


/* =========================
   UTILITY CLASSES (Optional)
========================= */
.mt-4 {
    margin-top: 1.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}


/* =========================
   CUSTOM BILLING TABLES
========================= */

/* Smaller font for the entire table content */
.custom-billing-table {
    font-size: 0.85rem;
    width: 100% !important;
}

/* Header styling */
.custom-billing-table thead th {
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    vertical-align: middle;
    white-space: normal !important;
    line-height: 1.2;
    text-align: center !important;
    background-color: #f8f9fa;
    color: #495057;
}

/* Alignment helpers */
.custom-billing-table .text-end {
    text-align: right !important;
    padding-right: 15px !important;
}

.custom-billing-table .text-center {
    text-align: center !important;
}

/* Description wrapping */
.custom-billing-table td.text-wrap {
    word-break: break-word;
    min-width: 150px;
    white-space: normal;
}

/* Monospace numbers */
.font-monospace {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
    font-variant-numeric: tabular-nums;
}

/* Compact action buttons */
.custom-billing-table .btn-sm {
    padding: 0.15rem 0.35rem !important;
    font-size: 0.75rem;
    line-height: 1;
}

/* Zebra rows */
.custom-billing-table tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.01);
}


/* =========================
   CARD SECTION HEADERS
========================= */

.card-header h5 {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}


/* =========================
   AGREEMENT HEADER COMPACT
========================= */

#header-section p {
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

#header-section strong {
    font-weight: 600;
    color: #495057;
}

#header-section h6 {
    font-size: 0.85rem;
    margin-top: 0.8rem;
    margin-bottom: 0.4rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

#header-section hr {
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
}

#header-section p strong {
    display: inline-block;
    min-width: 160px;
}

.hero-section {
    padding: 90px 0;
}

.section-light {
    background: #f8f9fb;
    padding: 80px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.section-normal {
    padding: 80px 0;
}

.section-cta {
    padding: 90px 0;
    background: #ffffff;
}

.hero-image {
    max-width: 520px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.dashboard-preview {
    max-width: 900px;
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.feature-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.step-number {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0d6efd;
}

.feature-image {
    max-width: 420px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.brand-text {
    color: #000;
    /* pure black */
    font-weight: 300;
    /* lighter weight */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.5rem;
    /* adjust size as needed */
    margin-left: 0.5rem;
    /* space between logo and text */
}

/* Compact columns for last reading */


.custom-billing-table th.reading-value,
.custom-billing-table td:nth-child(6) {
    width: 90px;
    text-align: right;
    white-space: nowrap;
}

/* .custom-billing-table {
    table-layout: fixed;
} */

/* this is to prevent headbar shifting */
html {
    overflow-y: scroll;
}

/* to ensure the layout fills the screen nicely */

body {
    min-height: 100vh;
}

.form-section .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.form-section .form-label {
    font-weight: 500;
    color: #555;
}

.form-section .row {
    margin-bottom: 0.4rem;
}

/* light grey for placeholders */
.form-control::placeholder,
.form-select::placeholder {
    color: #adb5bd;
    opacity: 1;
}

/* to make Data Utworzenia less visually dominant in the agreement list */
/* Target it specifically within the table to beat Bootstrap specificity */
.custom-billing-table td.text-muted-soft {
    color: #adb5bd !important;
    /* A lighter, softer grey */
}

/* This is to make font small on forms entry fields */
.form-control {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

.form-select {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

/* This is for making table row clickable */
.clickable-row {
    cursor: pointer;
}

.clickable-row:hover {
    background-color: rgba(0, 0, 0, 0.03);
}