/* ============================================================
   AYUSHMAN BHARAT MORADABAD
   COMPLETE PORTAL CSS
   Bold + Colorful + Responsive
   ============================================================ */


/* ============================================================
   1. GLOBAL RESET
   ============================================================ */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #f4f7fb;
    color: #1f2937;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 600;
}


/* ============================================================
   2. GLOBAL TEXT
   ============================================================ */

p,
span,
div,
li,
td,
small {
    font-weight: 600;
}

strong,
b {
    font-weight: 900;
}

a {
    color: #0d5cab;
    font-weight: 700;
}


/* ============================================================
   3. HEADINGS
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
}

h1 {
    margin-bottom: 20px;
    color: #0b4f94;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 900 !important;
}

h2 {
    margin-bottom: 16px;
    color: #0d5cab;
    font-size: 22px;
    font-weight: 900 !important;
}

h3 {
    color: #1769aa;
    font-size: 18px;
    font-weight: 900 !important;
}

h4,
h5,
h6 {
    color: #244f73;
    font-weight: 800 !important;
}


/* ============================================================
   4. HEADER
   ============================================================ */

header {
    min-height: 72px;
    padding: 14px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    background: linear-gradient(
        135deg,
        #063b73,
        #0d63b8
    );

    color: #ffffff;

    border-bottom: 4px solid #f2b705;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);

    font-weight: 800;
}

header > div {
    display: flex;
    flex-direction: column;
}

header b {
    color: #ffffff;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 900 !important;
}

header small {
    margin-top: 3px;
    color: #e8f3ff;
    font-size: 13px;
    font-weight: 700 !important;
}


/* ============================================================
   5. ROLE PILL
   ============================================================ */

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 32px;

    padding: 6px 13px;

    border-radius: 50px;

    background: #ffffff;
    color: #075aa8;

    border: 2px solid rgba(255, 255, 255, 0.65);

    font-size: 12px;
    line-height: 1;

    font-weight: 900 !important;

    white-space: nowrap;
}


/* ============================================================
   6. NAVIGATION
   ============================================================ */

nav {
    display: flex;
    align-items: center;
    gap: 5px;

    padding: 8px 18px;

    background: #ffffff;

    border-bottom: 1px solid #dbe4ed;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

    overflow-x: auto;

    scrollbar-width: thin;
}

nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding: 9px 13px;

    border-radius: 7px;

    color: #17466d;

    text-decoration: none;

    font-size: 14px;
    font-weight: 800 !important;

    white-space: nowrap;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

nav a:hover {
    background: #e3f2fd;
    color: #064d8d;
}

nav a:active {
    transform: scale(0.98);
}


/* ============================================================
   7. MAIN CONTENT
   ============================================================ */

main {
    width: 100%;
    max-width: 1450px;

    min-height: calc(100vh - 175px);

    margin: 0 auto;

    padding: 25px 22px 35px;
}


/* ============================================================
   8. GRID
   ============================================================ */

.grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(210px, 1fr)
        );

    gap: 16px;

    margin-bottom: 20px;
}


/* ============================================================
   9. CARD
   ============================================================ */

.card {
    padding: 20px;

    background: #ffffff;

    border: 1px solid #dbe5ef;

    border-radius: 13px;

    box-shadow:
        0 4px 13px
        rgba(31, 66, 104, 0.08);

    font-weight: 600;
}

.card h2 {
    color: #0b5ba7;
    font-weight: 900 !important;
}

.card h3 {
    color: #1769aa;
    font-weight: 900 !important;
}


/* ============================================================
   10. PANEL
   ============================================================ */

.panel {
    margin-bottom: 20px;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #dbe5ef;

    border-radius: 13px;

    box-shadow:
        0 4px 13px
        rgba(31, 66, 104, 0.08);
}

.panel h2 {
    padding-bottom: 9px;

    border-bottom: 2px solid #e3eef8;

    color: #0b5ba7;

    font-weight: 900 !important;
}


/* ============================================================
   11. WELCOME AREA
   ============================================================ */

.welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 20px;

    padding: 17px 20px;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #edf6ff
        );

    border: 1px solid #cfe3f5;

    border-left: 5px solid #0d63b8;

    border-radius: 11px;

    box-shadow:
        0 3px 10px
        rgba(0, 0, 0, 0.05);
}

.welcome-text {
    color: #334155;

    font-size: 16px;

    font-weight: 700 !important;
}

.welcome-text strong {
    color: #075aa8;

    font-weight: 900 !important;
}


/* ============================================================
   12. DASHBOARD STAT CARDS
   ============================================================ */

.stat-card {
    position: relative;

    overflow: hidden;

    min-height: 125px;

    border-top: 4px solid #0d63b8;
}

.stat-card:nth-child(2) {
    border-top-color: #16834b;
}

.stat-card:nth-child(3) {
    border-top-color: #d88700;
}

.stat-card:nth-child(4) {
    border-top-color: #b83232;
}

.stat-label {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 8px;

    color: #475569;

    font-weight: 800 !important;
}

.stat-label .muted {
    color: #475569 !important;

    font-weight: 800 !important;
}

.stat {
    margin-top: 8px;

    color: #075aa8;

    font-size: 32px;
    line-height: 1;

    font-weight: 900 !important;
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 35px;
    height: 35px;

    border-radius: 50%;

    background: #e3f2fd;

    color: #075aa8;

    font-size: 15px;

    font-weight: 900 !important;
}


/* ============================================================
   13. QUICK ACTIONS
   ============================================================ */

.quick-actions {
    margin-top: 20px;
}

.quick-actions h2 {
    color: #075aa8;

    font-weight: 900 !important;
}

.quick-actions .grid {
    margin-bottom: 0;
}

.quick-actions .btn {
    width: 100%;

    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    font-weight: 900 !important;
}


/* ============================================================
   14. FORM GRID
   ============================================================ */

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px, 1fr)
        );

    gap: 16px;
}


/* ============================================================
   15. LABELS
   ============================================================ */

label {
    display: block;

    margin-bottom: 6px;

    color: #263d52;

    font-size: 14px;

    font-weight: 800 !important;
}


/* ============================================================
   16. INPUTS / SELECT / TEXTAREA
   ============================================================ */

input,
select,
textarea {
    width: 100%;

    min-height: 43px;

    padding: 9px 11px;

    background: #ffffff;

    color: #1e293b;

    border: 2px solid #cbd8e5;

    border-radius: 7px;

    outline: none;

    font-family: inherit;
    font-size: 14px;

    font-weight: 700 !important;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

textarea {
    min-height: 90px;

    resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #8bb7dd;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #0d63b8;

    box-shadow:
        0 0 0 3px
        rgba(13, 99, 184, 0.13);
}


/* ============================================================
   17. PLACEHOLDER
   ============================================================ */

input::placeholder,
textarea::placeholder {
    color: #718096;

    opacity: 1;

    font-weight: 600;
}


/* ============================================================
   18. READONLY
   ============================================================ */

input[readonly],
textarea[readonly] {
    background: #fff8df !important;

    color: #c45100 !important;

    border-color: #f0ca75 !important;

    font-weight: 900 !important;
}


/* ============================================================
   19. DISABLED CONTROLS
   ============================================================ */

input:disabled,
select:disabled,
textarea:disabled {
    background: #eef2f6;

    color: #657384;

    cursor: not-allowed;

    opacity: 1;

    font-weight: 700 !important;
}


/* ============================================================
   20. SELECT OPTIONS
   ============================================================ */

select option {
    color: #1f2937;

    background: #ffffff;

    font-weight: 700;
}


/* ============================================================
   21. FILE INPUT
   ============================================================ */

input[type="file"] {
    padding: 7px;

    background: #f8fbff;

    font-weight: 700 !important;
}

input[type="file"]::file-selector-button {
    margin-right: 10px;

    padding: 8px 13px;

    border: 0;

    border-radius: 6px;

    background: #e3f2fd;

    color: #075aa8;

    cursor: pointer;

    font-weight: 800;
}


/* ============================================================
   22. CHECKBOX / RADIO
   ============================================================ */

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    min-height: auto;

    margin-right: 6px;

    accent-color: #0d63b8;
}


/* ============================================================
   23. BUTTON
   ============================================================ */

.btn,
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 9px 16px;

    background: #0d63b8;

    color: #ffffff !important;

    border: 2px solid #0d63b8;

    border-radius: 7px;

    text-decoration: none;

    font-family: inherit;
    font-size: 14px;

    font-weight: 900 !important;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.1s ease;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: #084e91;

    border-color: #084e91;

    color: #ffffff !important;

    box-shadow:
        0 4px 10px
        rgba(13, 99, 184, 0.20);
}

.btn:active,
button:active {
    transform: translateY(1px);
}


/* ============================================================
   24. DISABLED BUTTON
   ============================================================ */

.btn:disabled,
button:disabled,
input[type="submit"]:disabled {
    background: #94a3b8 !important;

    border-color: #94a3b8 !important;

    color: #ffffff !important;

    cursor: not-allowed;

    opacity: 0.8;
}


/* ============================================================
   25. BUTTON VARIANTS
   ============================================================ */

.btn-success {
    background: #16834b !important;
    border-color: #16834b !important;
}

.btn-success:hover {
    background: #106a3c !important;
    border-color: #106a3c !important;
}

.btn-danger {
    background: #c93636 !important;
    border-color: #c93636 !important;
}

.btn-danger:hover {
    background: #a92727 !important;
    border-color: #a92727 !important;
}

.btn-warning {
    background: #d88700 !important;
    border-color: #d88700 !important;
    color: #ffffff !important;
}

.btn-secondary {
    background: #546e7a !important;
    border-color: #546e7a !important;
}


/* ============================================================
   26. TABLE WRAPPER
   ============================================================ */

.table-wrap {
    width: 100%;

    overflow-x: auto;

    border-radius: 9px;

    border: 1px solid #d7e1eb;
}


/* ============================================================
   27. TABLE
   ============================================================ */

table {
    width: 100%;

    border-collapse: collapse;

    background: #ffffff;

    color: #263238;

    font-size: 14px;

    font-weight: 700;
}

table th,
table td {
    padding: 11px 12px;

    border-bottom: 1px solid #dce5ed;

    vertical-align: middle;

    text-align: left;
}


/* ============================================================
   28. TABLE HEADER
   ============================================================ */

table thead th,
table th {
    background: #0d63b8;

    color: #ffffff !important;

    border-right: 1px solid rgba(255, 255, 255, 0.20);

    font-weight: 900 !important;

    white-space: nowrap;
}


/* ============================================================
   29. TABLE DATA
   ============================================================ */

table tbody td,
table td {
    color: #263238;

    font-weight: 700 !important;
}

table tbody tr:nth-child(even) {
    background: #f5f9fd;
}

table tbody tr:hover {
    background: #eaf4fc;
}


/* ============================================================
   30. TABLE BUTTON
   ============================================================ */

table .btn {
    min-height: 34px;

    padding: 5px 10px;

    font-size: 12px;

    font-weight: 900 !important;
}


/* ============================================================
   31. ALERT
   ============================================================ */

.alert {
    margin-bottom: 18px;

    padding: 12px 15px;

    border-radius: 8px;

    border: 1px solid transparent;

    font-weight: 800 !important;
}


/* SUCCESS */

.alert.success,
.alert-success {
    background: #e7f7ed;

    color: #126838;

    border-color: #a8dfbc;
}


/* ERROR */

.alert.error,
.alert-danger {
    background: #fdeaea;

    color: #a91e1e;

    border-color: #efb4b4;
}


/* WARNING */

.alert.warning,
.alert-warning {
    background: #fff5d9;

    color: #855600;

    border-color: #efd38c;
}


/* INFO */

.alert.info,
.alert-info {
    background: #e6f3ff;

    color: #075a9f;

    border-color: #a9d2f4;
}


/* ============================================================
   32. MUTED TEXT
   ============================================================ */

.muted {
    color: #5c6f82 !important;

    font-weight: 700 !important;
}

small {
    font-weight: 700 !important;
}


/* ============================================================
   33. FORM HELP TEXT
   ============================================================ */

form small,
.help-text {
    display: block;

    margin-top: 4px;

    color: #60758a;

    font-size: 12px;

    font-weight: 700 !important;
}


/* ============================================================
   34. NUMBER FIELDS
   ============================================================ */

input[type="number"] {
    color: #145b33;

    font-weight: 900 !important;
}


/* ============================================================
   35. DATE FIELD
   ============================================================ */

input[type="date"] {
    color: #1e4e79;

    font-weight: 800 !important;
}


/* ============================================================
   36. SEARCH BOX
   ============================================================ */

input[type="search"] {
    background: #ffffff;

    border-color: #a8bfd5;

    font-weight: 700 !important;
}


/* ============================================================
   37. LINKS INSIDE TABLE
   ============================================================ */

table a:not(.btn) {
    color: #075aa8;

    text-decoration: none;

    font-weight: 800;
}

table a:not(.btn):hover {
    text-decoration: underline;
}


/* ============================================================
   38. FORM SECTION
   ============================================================ */

.form-section {
    margin-bottom: 20px;

    padding: 18px;

    background: #ffffff;

    border: 1px solid #dce6ef;

    border-radius: 10px;
}


/* ============================================================
   39. HR
   ============================================================ */

hr {
    margin: 20px 0;

    border: 0;

    border-top: 1px solid #d9e3ec;
}


/* ============================================================
   40. BADGES
   ============================================================ */

.badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    border-radius: 20px;

    background: #e3f2fd;

    color: #075aa8;

    font-size: 12px;

    font-weight: 900 !important;
}

.badge-success {
    background: #dff4e8;
    color: #126838;
}

.badge-danger {
    background: #fde5e5;
    color: #a91e1e;
}

.badge-warning {
    background: #fff0ca;
    color: #855600;
}


/* ============================================================
   41. STATUS
   ============================================================ */

.status {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 900 !important;
}

.status-open {
    background: #fff0ca;
    color: #855600;
}

.status-progress,
.status-in-progress {
    background: #e3f2fd;
    color: #075aa8;
}

.status-closed,
.status-approved {
    background: #dff4e8;
    color: #126838;
}

.status-rejected {
    background: #fde5e5;
    color: #a91e1e;
}


/* ============================================================
   42. CAMP REPORT SPECIAL
   ============================================================ */

#remaining_cards {
    background: #fff5d9 !important;

    color: #d25b00 !important;

    border-color: #efc765 !important;

    font-weight: 900 !important;
}

#cards_created {
    background: #f3fff7;

    color: #14703c !important;

    border-color: #9ed5b2;

    font-weight: 900 !important;
}

#submitCampButton {
    background: #0d63b8;

    color: #ffffff;

    font-weight: 900 !important;
}


/* ============================================================
   43. LOGIN PAGE
   ============================================================ */

.login-page {
    min-height: calc(100vh - 100px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px 15px;
}

.login-card {
    width: 100%;
    max-width: 460px;

    border-top: 5px solid #0d63b8;
}

.login-title {
    color: #075aa8;

    font-weight: 900 !important;
}

.login-subtitle {
    color: #60758a;

    font-weight: 700 !important;
}

.login-button {
    width: 100%;

    font-weight: 900 !important;
}


/* ============================================================
   44. PASSWORD BOX
   ============================================================ */

.password-box {
    position: relative;
}

.password-box input {
    padding-right: 75px;
}

.show-password {
    position: absolute;

    right: 5px;
    top: 50%;

    min-height: auto;

    padding: 6px 8px;

    transform: translateY(-50%);

    background: transparent !important;

    border: 0 !important;

    color: #075aa8 !important;

    box-shadow: none !important;

    font-size: 12px;

    font-weight: 900 !important;
}


/* ============================================================
   45. FOOTER
   ============================================================ */

footer {
    width: 100%;

    padding: 17px 15px;

    background: #063b73;

    color: #ffffff;

    text-align: center;

    font-size: 13px;

    font-weight: 800 !important;

    border-top: 3px solid #f2b705;
}


/* ============================================================
   46. SCROLLBAR
   ============================================================ */

::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track {
    background: #edf2f7;
}

::-webkit-scrollbar-thumb {
    background: #9bb4ca;

    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #718da6;
}


/* ============================================================
   47. FOCUS ACCESSIBILITY
   ============================================================ */

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
}


/* ============================================================
   48. MOBILE - TABLET
   ============================================================ */

@media (max-width: 900px) {

    header {
        padding: 13px 16px;
    }

    main {
        padding: 20px 14px 30px;
    }

    .grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .form-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    nav {
        padding-left: 10px;
        padding-right: 10px;
    }
}


/* ============================================================
   49. MOBILE
   ============================================================ */

@media (max-width: 650px) {

    body {
        font-size: 14px;

        font-weight: 600;
    }


    /* HEADER */

    header {
        min-height: 65px;

        padding: 11px 12px;
    }

    header b {
        font-size: 17px;
    }

    header small {
        font-size: 11px;
    }

    header .pill {
        font-size: 10px;

        padding: 5px 8px;
    }


    /* NAVIGATION */

    nav {
        gap: 3px;

        padding: 7px 8px;
    }

    nav a {
        min-height: 36px;

        padding: 7px 10px;

        font-size: 12px;

        font-weight: 800 !important;
    }


    /* MAIN */

    main {
        padding: 16px 10px 25px;
    }


    /* HEADINGS */

    h1 {
        font-size: 23px;

        font-weight: 900 !important;
    }

    h2 {
        font-size: 19px;

        font-weight: 900 !important;
    }

    h3 {
        font-size: 16px;

        font-weight: 800 !important;
    }


    /* WELCOME */

    .welcome {
        align-items: flex-start;

        padding: 14px;
    }

    .welcome-text {
        font-size: 14px;
    }


    /* GRID */

    .grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .form-grid {
        grid-template-columns: 1fr;

        gap: 13px;
    }


    /* CARD */

    .card,
    .panel {
        padding: 15px;

        border-radius: 10px;
    }


    /* STAT */

    .stat-card {
        min-height: auto;
    }

    .stat {
        font-size: 28px;
    }


    /* FORM */

    label {
        font-size: 13px;

        font-weight: 800 !important;
    }

    input,
    select,
    textarea {
        font-size: 14px;

        font-weight: 700 !important;
    }


    /* BUTTON */

    .btn,
    button,
    input[type="submit"],
    input[type="button"] {
        font-weight: 900 !important;
    }


    /* TABLE */

    .table-wrap {
        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 720px;

        font-size: 12px;
    }

    table th {
        padding: 9px 8px;

        font-weight: 900 !important;
    }

    table td {
        padding: 9px 8px;

        font-weight: 700 !important;
    }


    /* QUICK ACTION */

    .quick-actions .btn {
        min-height: 45px;

        font-size: 14px;
    }


    /* FOOTER */

    footer {
        padding: 14px 10px;

        font-size: 12px;

        font-weight: 800 !important;
    }
}


/* ============================================================
   50. VERY SMALL MOBILE
   ============================================================ */

@media (max-width: 400px) {

    header b {
        font-size: 15px;
    }

    header small {
        font-size: 10px;
    }

    h1 {
        font-size: 21px;
    }

    .welcome {
        flex-direction: column;
    }

    .stat {
        font-size: 26px;
    }
}


/* ============================================================
   51. PRINT
   ============================================================ */

@media print {

    body {
        background: #ffffff;

        color: #000000;
    }

    header,
    nav,
    footer,
    .quick-actions,
    button,
    .btn {
        display: none !important;
    }

    main {
        max-width: none;

        margin: 0;

        padding: 0;
    }

    .card,
    .panel {
        box-shadow: none;

        border: 1px solid #999999;
    }

    table th {
        background: #eeeeee !important;

        color: #000000 !important;
    }

    table td {
        color: #000000 !important;
    }
}