﻿
/* =====================================================
   AIIMS RAIPUR HR MANAGEMENT SYSTEM
   Design based on the supplied reference screenshot
===================================================== */

:root {
    --navy: #073f78;
    --blue: #0873ce;
    --blue-dark: #0758a8;
    --green: #079b7f;
    --page-bg: #f4f3ef;
    --panel-bg: #fbfaf7;
    --text: #183d64;
    --muted: #6b7b8b;
    --border: #e6e6e1;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    margin: 0;
    overflow-x: clip;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    overflow-x: clip;
    background: #eef7ff;
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

form#form1 {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    margin: 0;
}

a {
    color: inherit;
}

img,
svg {
    max-width: 100%;
}

/* =====================================================
   HEADER
===================================================== */
.site-header {
    background: linear-gradient(110deg, #06477f, #0870ca);
    color: #ffffff;
    border-bottom: 3px solid #72c5f6;
    box-shadow: 0 3px 12px rgba(0, 37, 75, 0.12);
}
/*.site-header {
    width: 100%;
    color: #fff;
    background: linear-gradient(110deg, #07447f 0%, #0879ce 100%);
    border-bottom: 4px solid #21a6d9;
    box-shadow: 0 3px 12px rgba(0, 37, 75, 0.12);
}*/

.header-inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1600px;
    min-width: 0;
    min-height: 140px;
    margin: 0 auto;
    padding: 18px 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    min-width: 0;
}

.institute-logo {
    display: block;
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.brand-text {
    flex: 1 1 auto;
    min-width: 0;
}

    .brand-text h1 {
        margin: 0;
        color: #fff;
        font-size: clamp(19px, 2.1vw, 29px);
        font-weight: 750;
        line-height: 1.3;
        letter-spacing: 0.1px;
        overflow-wrap: anywhere;
    }

    .brand-text p {
        margin: 5px 0 3px;
        color: #fff;
        font-size: 15px;
        font-weight: 650;
        letter-spacing: 1px;
    }

    .brand-text span {
        display: block;
        margin-top: 2px;
        color: #e5f3ff;
        font-size: 13px;
        overflow-wrap: anywhere;
    }

/* =====================================================
   MAIN TWO-COLUMN LAYOUT
===================================================== */

.main-container {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 20px;
    width: 100%;
    max-width: 1600px;
    min-width: 0;
    margin: 0 auto;
    padding: 18px 24px 24px;
    flex: 1 0 auto;
}

.left-section,
.login-section {
    width: 100%;
    min-width: 0;
}

.left-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* =====================================================
   WELCOME PANEL
===================================================== */


.welcome-banner {
    min-height: 145px;
    display: flex;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    background-color: #d8edff;
    /*
       Optional: place the AIIMS campus image at:
       images/aiims-campus.jpg
    */
    background-image: linear-gradient(90deg, rgba(238, 248, 255, .98) 0%, rgba(238, 248, 255, .88) 35%, rgba(238, 248, 255, .08) 100%), url("../images/aiims-campus.jpg");
    background-position: center, center;
    background-size: cover;
    background-repeat: no-repeat;
}


.welcome-content {
    padding: 28px 30px;
    position: relative;
    z-index: 1;
}

.welcome-label {
    display: block;
    font-size: 25px;
    color: #0759a4;
    margin-bottom: 4px;
}

.welcome-content h2 {
    margin: 0;
    font-size: clamp(25px, 2.2vw, 35px);
    line-height: 1.18;
    color: #07437d;
    font-weight: 750;
}

.welcome-content p {
    margin: 12px 0 0;
    font-size: 17px;
    line-height: 1.55;
    color: #315c83;
}

/*.welcome-banner {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 195px;
    padding: 26px 30px;
    overflow: hidden;
    background: #efeee9;
    border: 1px solid #e9e7e0;
    border-radius: 12px;
}*/
/*
.welcome-content {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
}

.welcome-label {
    display: block;
    margin-bottom: 8px;
    color: #587086;
    font-size: 21px;
    font-weight: 400;
}

.welcome-content h2 {
    margin: 0;
    color: #103f76;
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.3px;
    overflow-wrap: anywhere;
}

.welcome-content p {
    margin: 12px 0 0;
    color: #687987;
    font-size: 15px;
    line-height: 1.7;
}*/

/* =====================================================
   NOTICE BOARD CARD
===================================================== */

.notice-card {
    position: relative;
    z-index: 2;
    margin-top: -2px;
    padding: 18px 20px;
  /*  background: rgba(255, 255, 255, .97);*/
    border: 1px solid #d9eaff;
    border-radius: 15px;
    box-shadow: 0 6px 22px rgba(24, 86, 140, .09);
}


.notice-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.notice-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notice-icon {
    font-size: 29px;
    line-height: 1;
}

/*.notice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    font-size: 23px;
}*/

.notice-title h2 {
    margin: 0;
    color: #174a7c;
    font-size: 21px;
    font-weight: 750;
    line-height: 1.35;
}

.view-all {
    flex: 0 0 auto;
    color: var(--blue-dark);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

    .view-all:hover {
        text-decoration: underline;
    }

/* =====================================================
   SCROLLABLE ASP.NET DATAGRID
===================================================== */

.notice-table-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Scroll only the notice list, not the full page */

.notice-scroll-panel,
.pnlHeight {
    display: block;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    height: 430px;
    max-height: 55vh;
    overflow-x: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #9ab8d1 #e9eef2;
    -webkit-overflow-scrolling: touch;
}

    .notice-scroll-panel::-webkit-scrollbar,
    .pnlHeight::-webkit-scrollbar {
        width: 9px;
        height: 9px;
    }

    .notice-scroll-panel::-webkit-scrollbar-track,
    .pnlHeight::-webkit-scrollbar-track {
        background: #e9eef2;
    }

    .notice-scroll-panel::-webkit-scrollbar-thumb,
    .pnlHeight::-webkit-scrollbar-thumb {
        background: #9ab8d1;
        border: 2px solid #e9eef2;
        border-radius: 8px;
    }

/* DataGrid table */

.notice-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.notice-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 13px;
}

    .notice-table thead {
        background: #e8f3ff;
        color: #285a89;
    }

    .notice-table th {
        text-align: left;
        font-weight: 700;
        padding: 10px 9px;
    }

    .notice-table td {
        padding: 9px;
        border: 1px solid #e2edf7;
        vertical-align: middle;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .notice-table tbody tr:hover {
        background: #f4f9ff;
    }

    .notice-table tbody tr:last-child td {
        border-bottom: none;
    }

    .notice-table th:first-child,
    .notice-table td:first-child {
        text-align: center;
    }

    .notice-table th:nth-child(1) {
        width: 9%;
    }

    .notice-table th:nth-child(2) {
        width: 19%;
    }

    .notice-table th:nth-child(3) {
        width: 51%;
    }

    .notice-table th:nth-child(4) {
        width: 21%;
    }

    .notice-table td:last-child {
        white-space: nowrap;
    }

    .notice-table a {
        color: #174e85;
    }

.category {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
}

.circular {
    background: #dceeff;
    color: #006bce;
}

.establishment {
    background: #ddf6e7;
    color: #16804b;
}

 

    /* Circular titles */

    .notice-table td a {
        color: #076bc2;
        text-decoration: none;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

        .notice-table td a:hover {
            color: #034d91;
            text-decoration: underline;
        }

/* =====================================================
   LOGIN PANEL
===================================================== */
.login-section {
    min-width: 0;
    padding: 34px 28px;
    border: 1px solid #d8eaff;
    border-radius: 17px;
    background: radial-gradient(circle at top right, #e0f2ff 0, transparent 42%), linear-gradient(145deg, #ffffff, #f3faff);
    box-shadow: 0 6px 24px rgba(24, 86, 140, .08);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.login-intro {
    text-align: center;
    color: #0758a7;
    font-size: 20px;
    font-weight: 650;
    font-style: italic;
    margin: 22px 0 46px;
}

.intro-divider {
    margin: 0 12px;
    color: #75a8d8;
}

.intro-underline {
    width: 46px;
    height: 3px;
    background: #2886f1;
    margin: 20px auto 0;
    border-radius: 5px;
}

/* Your Work | Our Progress */
/*
.login-intro {
    position: relative;
    margin: 0 0 12px;
    padding: 0 0 17px;
    color: #174c7b;
    font-size: 17px;
    font-style: italic;
    font-weight: 750;
    letter-spacing: 0.2px;
    text-align: center;
}

.intro-divider {
    margin: 0 12px;
    color: #8b9bab;
}*/

/*.intro-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 44px;
    height: 3px;
    background: #147dc3;
    border-radius: 4px;
    transform: translateX(-50%);
}*/

/* =====================================================
   LOGIN CARDS
===================================================== */

.login-tile {
    width: 100%;
    min-height: 158px;
    display: flex;
    align-items: center;
    padding: 25px 24px;
    gap: 20px;
    color: #ffffff;
    border-radius: 17px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 7px 16px rgba(0, 81, 159, .12);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

    .login-tile::before {
        content: "";
        position: absolute;
        z-index: -1;
        width: 240px;
        height: 240px;
        right: -80px;
        bottom: -175px;
        border: 22px solid rgba(255, 255, 255, .10);
        border-radius: 50%;
    }

    .login-tile:hover {
        transform: translateY(-4px);
        box-shadow: 0 13px 25px rgba(0, 65, 125, .22);
        filter: brightness(1.04);
    }

    .login-tile:focus-visible,
    .footer-links a:focus-visible,
    .view-all:focus-visible {
        outline: 3px solid #ffcf55;
        outline-offset: 4px;
    }

.admin-tile {
    background: linear-gradient(120deg, #0865ca, #087ee8);
}

.employee-tile {
    margin-top: 28px;
    background: linear-gradient(120deg, #079d91, #22b49a);
}

 

/* Icon area */
.tile-icon {
    width: 88px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .tile-icon svg {
        width: 65px;
        height: 65px;
    }

.tile-divider {
    width: 1px;
    height: 66px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, .55);
}

.tile-text {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

    .tile-text strong {
        font-size: clamp(20px, 1.7vw, 27px);
        font-weight: 700;
        line-height: 1.2;
    }

    .tile-text small {
        font-size: 15px;
        line-height: 1.45;
    }

.tile-arrow {
    margin-left: auto;
    flex-shrink: 0;
    width: 43px;
    height: 43px;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 29px;
    line-height: 1;
    transition: transform .2s ease;
}

.login-tile:hover .tile-arrow {
    transform: translateX(4px);
}

/* =====================================================
   SECURE HR SERVICES
===================================================== */

.login-help {
    margin-top: auto;
    padding: 28px 8px 8px;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    color: #285782;
}

.help-symbol {
    width: 31px;
    height: 31px;
    border: 2px solid #2480d5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0872d4;
    font-size: 17px;
    font-weight: 700;
    flex-shrink: 0;
}

.login-help strong {
    font-size: 14px;
}

.login-help p {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: #597a9b;
}


/* =====================================================
   FOOTER
===================================================== */

.site-footer {
    background: linear-gradient(110deg, #073f70, #0b548e);
    color: #ffffff;
    margin-top: 0;
}

.footer-inner {
    max-width: 1600px;
    min-height: 66px;
    margin: auto;
    padding: 16px 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

    .footer-inner p {
        margin: 0;
        font-size: 12px;
        line-height: 1.6;
    }

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    white-space: nowrap;
}

    .footer-links a:hover {
        text-decoration: underline;
        color: #c8e6ff;
    }

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1050px) {
    .header-inner {
        min-height: 120px;
        padding: 16px 22px;
    }

    .institute-logo {
        flex-basis: 66px;
        width: 66px;
        height: 66px;
    }

    .brand {
        gap: 17px;
    }

    .main-container {
        grid-template-columns: minmax(0, 1.3fr) minmax(270px, 1fr);
        gap: 14px;
        padding: 16px;
    }

    .welcome-banner {
        min-height: 170px;
        padding: 22px;
    }

    .notice-card {
        padding: 13px;
    }

    .login-section {
        gap: 14px;
        padding: 23px 15px 18px;
    }

    .login-tile {
        min-height: 115px;
        gap: 12px;
        padding: 16px;
    }

    .tile-icon {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
    }

    .tile-arrow {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
    }

    .notice-scroll-panel,
    .pnlHeight {
        height: 340px;
    }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 760px) {
    .header-inner {
        min-height: auto;
        padding: 14px;
    }

    .brand {
        gap: 12px;
    }

    .institute-logo {
        flex-basis: 55px;
        width: 55px;
        height: 55px;
    }

    .brand-text h1 {
        font-size: 16px;
        line-height: 1.35;
    }

    .brand-text p {
        font-size: 11px;
        letter-spacing: 0.7px;
    }

    .brand-text span {
        font-size: 11px;
    }

    .main-container {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 14px 12px 22px;
    }

    .left-section {
        gap: 13px;
    }

    .welcome-banner {
        min-height: 145px;
        padding: 20px;
    }

    .welcome-label {
        font-size: 16px;
    }

    .welcome-content h2 {
        font-size: 25px;
    }

    .notice-card {
        padding: 13px;
    }

    .notice-title h2 {
        font-size: 19px;
    }

    .notice-scroll-panel,
    .pnlHeight {
        height: 320px;
        max-height: 48vh;
    }

    .notice-table th,
    .notice-table td {
        padding: 8px 5px;
        font-size: 11px;
    }

    .login-section {
        gap: 14px;
        padding: 20px 16px;
    }

    .login-intro {
        margin-bottom: 4px;
        font-size: 16px;
    }

    .login-tile {
        min-height: 105px;
        padding: 15px;
    }

    .tile-icon {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }

    .tile-text strong {
        font-size: 18px;
    }

    .footer-inner {
        padding: 14px;
    }
}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 420px) {
    .header-inner {
        padding: 11px 9px;
    }

    .brand {
        gap: 9px;
    }

    .institute-logo {
        flex-basis: 43px;
        width: 43px;
        height: 43px;
    }

    .brand-text h1 {
        font-size: 12px;
    }

    .brand-text p {
        font-size: 9px;
    }

    .brand-text span {
        font-size: 9px;
    }

    .main-container {
        gap: 12px;
        padding: 10px 8px 18px;
    }

    .welcome-banner {
        min-height: 125px;
        padding: 16px;
    }

    .welcome-label {
        font-size: 14px;
    }

    .welcome-content h2 {
        font-size: 21px;
    }

    .notice-card {
        padding: 9px;
    }

    .notice-heading {
        gap: 6px;
    }

    .notice-icon {
        flex-basis: 27px;
        width: 27px;
        height: 27px;
        font-size: 19px;
    }

    .notice-title {
        gap: 7px;
    }

        .notice-title h2 {
            font-size: 17px;
        }

    .notice-table th,
    .notice-table td {
        padding: 7px 3px;
        font-size: 10px;
    }

    .login-section {
        padding: 17px 10px;
    }

    .login-tile {
        min-height: 91px;
        gap: 8px;
        padding: 11px 9px;
        border-radius: 12px;
    }

    .tile-icon {
        flex-basis: 37px;
        width: 37px;
        height: 37px;
    }

    .tile-divider {
        height: 39px;
    }

    .tile-text strong {
        font-size: 14px;
    }

    .tile-text small {
        font-size: 10px;
    }

    .tile-arrow {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
        border-width: 1px;
        font-size: 17px;
    }

    .login-help {
        gap: 9px;
        padding: 12px 2px 0;
    }

        .login-help p {
            font-size: 11px;
        }

    .footer-inner p {
        font-size: 10px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .login-tile {
        transition: none;
    }

        .login-tile:hover {
            transform: none;
        }
}
