/* =========================================
   OCA RECEIPT MANAGEMENT SYSTEM
   DASHBOARD CSS
   ========================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #eef3f8;
    color: #172554;
}

a {
    text-decoration: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}


/* =========================================
   DASHBOARD LAYOUT
   ========================================= */

.dashboard {
    display: flex;
    min-height: 100vh;
    width: 100%;
}


/* =========================================
   SIDEBAR
   ========================================= */

.sidebar {
    width: 250px;
    min-width: 250px;
    min-height: 100vh;

    background: #082e6b;
    color: #fff;

    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;

    padding: 18px 14px;

    z-index: 1000;
}


/* LOGO AREA */

.sidebar-logo {
    text-align: center;

    padding: 8px 5px 22px;

    border-bottom: 1px solid rgba(255,255,255,.18);
}

.sidebar-logo img {
    width: 80px;
    height: 80px;

    object-fit: contain;

    display: block;

    margin: 0 auto 10px;
}

.sidebar-logo h2 {
    margin: 0;

    font-size: 18px;

    line-height: 1.2;

    color: #fff;
}

.sidebar-logo span {
    display: block;

    margin-top: 10px;

    font-size: 13px;

    color: rgba(255,255,255,.75);
}


/* =========================================
   MENU
   ========================================= */

.menu {
    margin-top: 22px;
}

.menu a {
    display: flex;

    align-items: center;

    width: 100%;

    color: #fff;

    padding: 13px 16px;

    margin-bottom: 6px;

    border-radius: 9px;

    font-size: 15px;

    font-weight: 500;

    transition: all .2s ease;
}

.menu a:hover {
    background: rgba(255,255,255,.12);

    transform: translateX(2px);
}

.menu a.active {
    background: #16803a;

    color: #fff;

    box-shadow: 0 5px 15px rgba(0,0,0,.12);
}


/* =========================================
   MAIN CONTENT
   ========================================= */

.main {
    margin-left: 250px;

    width: calc(100% - 250px);

    min-height: 100vh;

    padding: 24px 26px;
}


/* =========================================
   TOP BAR
   ========================================= */

.topbar {
    background: #fff;

    min-height: 66px;

    padding: 15px 22px;

    border-radius: 14px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    box-shadow: 0 5px 25px rgba(15,23,42,.06);
}

.topbar h1 {
    margin: 0;

    font-size: 25px;

    color: #082e6b;
}

.admin-name {
    background: #eef5ff;

    color: #082e6b;

    padding: 9px 16px;

    border-radius: 30px;

    font-size: 14px;

    font-weight: bold;
}


/* =========================================
   DASHBOARD STATS
   ========================================= */

.stats {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;

    margin-top: 22px;
}

.stat {
    background: #fff;

    padding: 22px;

    border-radius: 14px;

    border-left: 5px solid #082e6b;

    box-shadow: 0 5px 20px rgba(15,23,42,.06);
}

.stat.green {
    border-left-color: #16803a;
}

.stat.gold {
    border-left-color: #e1a900;
}

.stat.red {
    border-left-color: #dc3545;
}

.stat-title {
    color: #64748b;

    font-size: 13px;

    font-weight: 600;
}

.stat-value {
    margin-top: 8px;

    font-size: 27px;

    font-weight: 800;

    color: #172554;
}


/* =========================================
   CARDS
   ========================================= */

.card {
    background: #fff;

    padding: 25px;

    margin-top: 22px;

    border-radius: 15px;

    box-shadow: 0 5px 25px rgba(15,23,42,.06);
}

.card-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 20px;
}

.card-header h2 {
    margin: 0;

    color: #082e6b;

    font-size: 20px;
}


/* =========================================
   BUTTONS
   ========================================= */

.btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    border: none;

    padding: 11px 17px;

    border-radius: 8px;

    cursor: pointer;

    font-size: 14px;

    font-weight: 700;

    transition: all .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: #082e6b;

    color: #fff;
}

.btn-primary:hover {
    background: #0b438f;
}

.btn-success {
    background: #16803a;

    color: #fff;
}

.btn-success:hover {
    background: #126c31;
}

.btn-danger {
    background: #dc3545;

    color: #fff;
}

.btn-danger:hover {
    background: #b92d3a;
}


/* =========================================
   TABLE
   ========================================= */

.table-wrapper {
    width: 100%;

    overflow-x: auto;
}

.data-table {
    width: 100%;

    border-collapse: collapse;

    min-width: 750px;
}

.data-table th {
    background: #082e6b;

    color: #fff;

    padding: 13px 12px;

    text-align: left;

    font-size: 13px;
}

.data-table td {
    padding: 13px 12px;

    border-bottom: 1px solid #e5e7eb;

    font-size: 14px;

    color: #334155;
}

.data-table tr:hover {
    background: #f8fafc;
}


/* =========================================
   FORM CARD
   ========================================= */

.form-card {
    background: #fff;

    padding: 30px;

    margin-top: 22px;

    border-radius: 16px;

    box-shadow: 0 5px 25px rgba(15,23,42,.06);
}


/* =========================================
   SECTION TITLE
   ========================================= */

.section-title {
    background: linear-gradient(
        90deg,
        #082e6b,
        #0d5db8
    );

    color: #fff;

    padding: 12px 17px;

    margin: 25px 0 18px;

    border-radius: 8px;

    font-size: 15px;

    font-weight: 700;
}


/* =========================================
   FORM GRID
   ========================================= */

.row {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}

.payment-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 15px;
}


/* =========================================
   FIELD
   ========================================= */

.field {
    margin-bottom: 15px;
}

.field label {
    display: block;

    margin-bottom: 7px;

    color: #334155;

    font-size: 14px;

    font-weight: 600;
}


/* =========================================
   INPUTS
   ========================================= */

.field input,
.field select,
.field textarea,

.form-card input,
.form-card select,
.form-card textarea {
    width: 100%;

    padding: 12px 13px;

    background: #fff;

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    outline: none;

    color: #1e293b;

    font-size: 14px;

    transition: all .2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus,

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    border-color: #0b5db8;

    box-shadow:
        0 0 0 3px rgba(11,93,184,.10);
}

.field textarea,
.form-card textarea {
    min-height: 100px;

    resize: vertical;
}


/* =========================================
   SETTINGS PAGE
   ========================================= */

.settings-card {
    background: #fff;

    padding: 30px;

    margin-top: 22px;

    border-radius: 16px;

    box-shadow: 0 5px 25px rgba(15,23,42,.06);
}

.settings-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}

.settings-grid .full {
    grid-column: 1 / -1;
}

.settings-label {
    display: block;

    margin-bottom: 8px;

    color: #334155;

    font-size: 14px;

    font-weight: 600;
}

.settings-input,
.settings-textarea {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    background: #fff;

    color: #1e293b;

    font-size: 14px;

    outline: none;
}

.settings-textarea {
    min-height: 110px;

    resize: vertical;
}

.settings-input:focus,
.settings-textarea:focus {
    border-color: #0b5db8;

    box-shadow:
        0 0 0 3px rgba(11,93,184,.10);
}






/* =========================================
   OCA LOGIN - TIRANGA THEME 🇮🇳
   ========================================= */

.login-body {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        linear-gradient(
            180deg,
            #ff9933 0%,
            #ff9933 33%,
            #ffffff 33%,
            #ffffff 66%,
            #138808 66%,
            #138808 100%
        );

    position: relative;
    overflow: hidden;
}


/* Soft overlay */

.login-body::before {
    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    border-radius: 50%;

    background: rgba(255,255,255,.18);

    top: -250px;
    right: -180px;

    filter: blur(2px);
}


/* Second decorative circle */

.login-body::after {
    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    border-radius: 50%;

    border: 70px solid rgba(255,255,255,.08);

    bottom: -250px;
    left: -180px;
}


/* =========================================
   LOGIN CARD
   ========================================= */

.login-box {
    width: 420px;

    max-width: 95%;

    padding: 38px 35px;

    background: rgba(255,255,255,.97);

    border-radius: 22px;

    text-align: center;

    position: relative;

    z-index: 5;

    border-top: 6px solid #ff9933;

    border-bottom: 6px solid #138808;

    box-shadow:
        0 25px 60px rgba(0,0,0,.25);

    backdrop-filter: blur(10px);
}


/* Top tricolour line */

.login-box::before {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    top: 0;

    height: 5px;

    background: linear-gradient(
        90deg,
        #ff9933 0%,
        #ff9933 33%,
        #ffffff 33%,
        #ffffff 66%,
        #138808 66%,
        #138808 100%
    );

    border-radius: 22px 22px 0 0;
}


/* =========================================
   LOGO
   ========================================= */

.login-logo {
    width: 105px;
    height: 105px;

    object-fit: contain;

    display: block;

    margin: 5px auto 15px;

    border-radius: 50%;

    background: #fff;

    padding: 4px;

    box-shadow:
        0 5px 18px rgba(0,0,0,.15);
}


/* =========================================
   TITLE
   ========================================= */

.login-box h1 {
    margin: 0;

    font-size: 27px;

    font-weight: 800;

    color: #082e6b;

    letter-spacing: .5px;
}

.login-box p {
    margin: 7px 0 25px;

    color: #555;

    font-size: 14px;

    font-weight: 600;
}


/* =========================================
   ASHOKA CHAKRA
   ========================================= */

.login-box h1::after {
    content: "☸";

    display: block;

    margin: 10px auto;

    font-size: 28px;

    color: #000080;

    animation: chakraRotate 12s linear infinite;
}

@keyframes chakraRotate {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* =========================================
   INPUTS
   ========================================= */

.login-box input {
    width: 100%;

    height: 48px;

    padding: 0 15px;

    margin: 7px 0;

    border: 1px solid #d6dbe2;

    border-radius: 9px;

    background: #fff;

    color: #172554;

    font-size: 14px;

    outline: none;

    transition: .25s;
}

.login-box input:focus {
    border-color: #138808;

    box-shadow:
        0 0 0 3px rgba(19,136,8,.10);
}


/* =========================================
   LOGIN BUTTON
   ========================================= */

.login-box button {
    width: 100%;

    height: 49px;

    margin-top: 13px;

    border: none;

    border-radius: 9px;

    background: linear-gradient(
        90deg,
        #ff9933,
        #138808
    );

    color: #fff;

    font-size: 15px;

    font-weight: 800;

    cursor: pointer;

    transition: .25s;

    box-shadow:
        0 7px 18px rgba(19,136,8,.22);
}

.login-box button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(19,136,8,.30);
}


/* =========================================
   ERROR
   ========================================= */

.login-box .error {
    background: #fff1f0;

    color: #b42318;

    border: 1px solid #ffccc7;

    padding: 10px;

    border-radius: 8px;

    margin-bottom: 12px;

    font-size: 13px;
}


/* =========================================
   FOOTER
   ========================================= */

.login-footer {
    margin-top: 22px;

    padding-top: 15px;

    border-top: 1px solid #e5e7eb;

    color: #555;

    font-size: 12px;

    font-weight: 600;
}

.login-footer::before {
    content: "🇮🇳 ";

}

.login-footer::after {
    content: " 🇮🇳";
}




/* =========================================
   DEVELOPER CREDIT
   ========================================= */

.developer-credit {
    position: absolute;

    left: 15px; 
    right: 15px;
    bottom: 18px;

    padding-top: 15px;

    border-top: 1px solid rgba(255,255,255,.18);

    text-align: center;

    color: rgba(255,255,255,.70);

    font-size: 11px;

    line-height: 1.5;

}
.developer-credit img{
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.developer-credit span {
    display: block;

    font-size: 10px;

    color: rgba(255,255,255,.55);

    margin-bottom: 3px;
}

.developer-credit strong {
    display: block;

    color: #fff;

    font-size: 12px;

    font-weight: 700;
}





.settings-save {
    margin-top: 20px;

    background: #16803a;

    color: #fff;

    border: none;

    padding: 12px 20px;

    border-radius: 8px;

    font-weight: 700;

    cursor: pointer;
}


/* =========================================
   SUCCESS / ERROR
   ========================================= */

.success-message {
    background: #d1e7dd;

    color: #0f5132;

    border: 1px solid #badbcc;

    padding: 12px 15px;

    border-radius: 8px;

    margin-bottom: 20px;

    font-weight: 600;
}

.error {
    background: #fee2e2;

    color: #991b1b;

    padding: 11px 14px;

    border-radius: 8px;

    margin: 12px 0;
}


/* =========================================
   LOGIN PAGE
   ========================================= */

.login-body {
    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #082e6b,
            #16803a
        );
}

.login-box {
    width: 400px;

    max-width: 92%;

    background: #fff;

    padding: 35px;

    border-radius: 20px;

    text-align: center;

    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.login-logo {
    width: 100px;

    height: 100px;

    object-fit: contain;

    display: block;

    margin: 0 auto 15px;
}

.login-box h1 {
    margin: 0;

    color: #082e6b;
}

.login-box p {
    color: #64748b;
}

.login-box input {
    width: 100%;

    padding: 13px;

    margin: 7px 0;

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    outline: none;
}

.login-box input:focus {
    border-color: #0b5db8;
}

.login-box button {
    width: 100%;

    padding: 13px;

    margin-top: 10px;

    border: none;

    border-radius: 8px;

    background: #082e6b;

    color: #fff;

    font-weight: bold;

    cursor: pointer;
}

.login-footer {
    margin-top: 20px;

    color: #64748b;

    font-size: 13px;
}

.clickable-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.clickable-image:hover {
    transform: scale(1.05);
}


/* Big Image Popup */

.image-modal {
    display: none;

    position: fixed;
    z-index: 99999;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.88);

    align-items: center;
    justify-content: center;

    padding: 30px;
}

.image-modal img {
    max-width: 90%;
    max-height: 90vh;

    object-fit: contain;

    border-radius: 10px;

    box-shadow: 0 10px 50px rgba(0,0,0,.5);

    animation: imageZoom .25s ease;
}

@keyframes imageZoom {

    from {
        transform: scale(.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }

}


/* Close Button */

.image-modal-close {
    position: absolute;

    top: 20px;
    right: 30px;

    color: white;

    font-size: 40px;

    font-weight: bold;

    cursor: pointer;

    line-height: 1;
}

.image-modal-close:hover {
    color: #ff9933;
}


/* =========================================
   TOTAL BOX
   ========================================= */

.total-box {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 16px 18px;

    margin-top: 10px;

    background: #effaf2;

    border: 2px solid #16803a;

    border-radius: 9px;

    color: #126c31;

    font-size: 19px;

    font-weight: 700;
}


/* =========================================
   BUTTON AREA
   ========================================= */

.button-area {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 22px;
}


/* =========================================
   MOBILE
   ========================================= */

@media(max-width: 1100px) {

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .payment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media(max-width: 800px) {

    .sidebar {
        width: 210px;

        min-width: 210px;
    }

    .main {
        margin-left: 210px;

        width: calc(100% - 210px);

        padding: 18px;
    }

    .row {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-grid .full {
        grid-column: auto;
    }

}

@media(max-width: 600px) {

    .dashboard {
        display: block;
    }

    .sidebar {
        position: relative;

        width: 100%;

        min-width: 100%;

        min-height: auto;
    }

    .main {
        margin-left: 0;

        width: 100%;

        padding: 15px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .payment-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;

        align-items: flex-start;
    }

    .card,
    .form-card,
    .settings-card {
        padding: 18px;
    }

}