﻿/*=========================================================
    GARIB JAN KALYAN PRAKOSTHA
    Medical Assistance Management System
=========================================================*/

/*========================
    COLOR PALETTE
========================*/

:root {
    /* Primary Theme */
    --primary: #0F766E; /* Modern Teal */
    --primary-dark: #115E59;
    --primary-light: #CCFBF1;
    /* Accent */
    --secondary: #DC2626; /* Red for alerts */
    --accent: #F59E0B; /* Amber */
    /* Background */
    --bg: #F1F5F9; /* Light grey-blue */
    --white: #FFFFFF;
    --surface: #F8FAFC;
    /* Borders */
    --border: #CBD5E1;
    /* Text */
    --text: #1E293B;
    --text-light: #64748B;
    /* Effects */
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius: 12px;
}

/*========================
    RESET
========================*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*========================
    BODY
========================*/

body {
    font-family: 'Segoe UI',Tahoma,sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
}

/*========================
    LINKS
========================*/

a {
    text-decoration: none;
    color: inherit;
}

/*========================
    PAGE TITLE
========================*/

.gjkp-page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 25px;
}

/*========================
    LOGIN PAGE
========================*/

.gjkp-login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient( 135deg, #edf7ef, #f8faf8);
    padding: 20px;
}

/*========================
    LOGIN CARD
========================*/

.gjkp-login-card {
    width: 100%;
    max-width: 520px;
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/*========================
    LOGIN HEADER
========================*/

.gjkp-login-header {
    background: linear-gradient( 90deg, var(--primary), #0E8B40);
    color: white;
    text-align: center;
    padding: 30px;
    border-bottom: 4px solid var(--secondary);
}

.gjkp-login-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 6px;
    margin-bottom: 12px;
}

.gjkp-login-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.gjkp-login-subtitle {
    font-size: 14px;
    opacity: .95;
}

/*========================
    LOGIN BODY
========================*/

.gjkp-login-body {
    padding: 35px;
}

/*========================
    LABEL
========================*/

.gjkp-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

    .gjkp-label.required::after {
        content: " *";
        color: #DC2626;
    }

/*========================
    INPUT
========================*/

.gjkp-input {
    width: 70%;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 14px;
    font-size: 15px;
    transition: .2s;
}

    .gjkp-input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 .18rem rgba(11,107,47,.15);
    }

/*========================
    BUTTON
========================*/

.gjkp-btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: .25s;
}

    .gjkp-btn:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
    }

/*========================
    ALERT
========================*/

.gjkp-alert {
    border-radius: 10px;
}

/*========================
    FOOTER
========================*/

.gjkp-login-footer {
    background: #f7faf7;
    text-align: center;
    padding: 18px;
    font-size: 13px;
    color: var(--text-light);
    border-top: 1px solid #eee;
}

/*========================
    FORM GROUP
========================*/

.gjkp-form-group {
    margin-bottom: 20px;
}

/*========================
    RESPONSIVE
========================*/

@media(max-width:576px) {

    .gjkp-login-card {
        border-radius: 14px;
    }

    .gjkp-login-body {
        padding: 25px;
    }

    .gjkp-login-title {
        font-size: 20px;
    }

    .gjkp-login-logo {
        width: 60px;
        height: 60px;
    }
}
/*=========================================================
        APPLICATION LAYOUT
=========================================================*/

.gjkp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(90deg,#0F766E,#115E59);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.10);
    z-index: 1030;
}


.gjkp-form-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 25px;
}

.form-heading {
    flex: 1;
}

.fy-box {
    width: 220px;
    flex-shrink: 0;
}

@media (max-width:768px) {

    .gjkp-form-header {
        flex-direction: column;
    }

    .fy-box {
        width: 100%;
    }
}

.gjkp-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.gjkp-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 4px;
}

.gjkp-system-title {
    font-size: 20px;
    font-weight: 700;
}

.gjkp-system-subtitle {
    font-size: 13px;
    opacity: .9;
}

.gjkp-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.gjkp-wrapper {
    display: flex;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

.gjkp-sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
}

.gjkp-role {
    background: var(--primary-dark);
    color: #fff;
    text-align: center;
    padding: 18px;
    font-weight: 700;
}

.gjkp-sidebar nav {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
}

    .gjkp-sidebar nav a {
        padding: 14px 24px;
        color: var(--text);
        font-weight: 600;
        transition: .2s;
    }

        .gjkp-sidebar nav a i {
            width: 24px;
        }

        .gjkp-sidebar nav a:hover,
        .gjkp-sidebar nav a.active {
            background: rgba(11,107,47,.10);
            color: var(--primary);
            border-left: 4px solid var(--primary);
        }

.gjkp-sidebar-footer {
    margin-top: auto;
    padding: 18px;
    background: #f8faf8;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 13px;
}

.gjkp-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    min-width: 0;
}

.gjkp-page {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
}

.gjkp-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #E5E7EB;
}

    .gjkp-section:first-of-type {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

/*=========================================================
    TABLE ACTION BUTTONS
=========================================================*/

.action-buttons {
    white-space: nowrap;
}

    .action-buttons .btn {
        min-width: 82px;
        margin: 2px;
        border-radius: 8px;
        font-weight: 600;
        transition: all .25s ease;
    }

.btn-view {
    background: #0d6efd;
    color: #fff;
    border: 1px solid #0d6efd;
}

    .btn-view:hover {
        background: #0b5ed7;
        border-color: #0b5ed7;
        color: #fff;
        transform: translateY(-1px);
    }

.btn-edit {
    background: #f59e0b;
    color: #fff;
    border: 1px solid #f59e0b;
}

    .btn-edit:hover {
        background: #d97706;
        border-color: #d97706;
        color: #fff;
        transform: translateY(-1px);
    }


/* ==============================
   DESKTOP
================================ */

@media (min-width:992px) {

    .gjkp-sidebar {
        position: static !important;
        transform: none !important;
        visibility: visible !important;
        border-right: 1px solid #E2E8F0;
    }

    .offcanvas-backdrop {
        display: none;
    }
}

/* ==============================
   MOBILE
================================ */

@media (max-width:991.98px) {

    .gjkp-wrapper {
        display: block;
    }

    .gjkp-content {
        width: 100%;
        padding: 20px;
    }

    .gjkp-header {
        padding: 0 15px;
    }

    .gjkp-system-title {
        font-size: 16px;
    }

    .gjkp-system-subtitle {
        display: none;
    }

    .gjkp-user span {
        display: none;
    }

    .gjkp-sidebar {
        width: 260px;
    }
}

@media(max-width:576px) {

    .gjkp-logo {
        width: 38px;
        height: 38px;
    }
}