* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f1eadf;
    color: #333;
}


/* =========================
   LOGIN PAGE
   ========================= */

.login-container {
    width: 360px;
    padding: 35px;
    background: white;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.login-container h1 {
    margin-bottom: 25px;
    font-size: 30px;
}

.fingerprint {
    font-size: 45px;
    margin-bottom: 8px;
}

.classical {
    margin-bottom: 25px;
    color: #777;
    font-size: 14px;
}

.input-box {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ccc;
    margin: 18px 0;
    padding: 5px 0;
}

.input-box span {
    width: 35px;
    font-size: 18px;
}

.input-box input,
.input-box select {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px;
    font-size: 15px;
    background: transparent;
}

.login-container button {
    width: 100%;
    padding: 13px;
    margin-top: 20px;
    border: none;
    border-radius: 5px;
    background: #1d4ed8;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

#login-message {
    margin-top: 15px;
    color: red;
}


/* =========================
   MAIN SCREEN
   ========================= */

.main-screen {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 49% 51%;
    gap: 22px;
    padding: 20px 12px;
}


/* =========================
   LEFT PANEL
   ========================= */

.user-panel {
    background: white;
    border-radius: 6px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    min-height: 490px;
}

.university-title {
    font-size: 23px;
    margin-top: 5px;
}

.best-user-title {
    font-size: 21px;
    margin-top: 8px;
    margin-bottom: 28px;
}

.award-photos {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.award-photo {
    width: 100%;
    height: 128px;
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 16px;
}


/* =========================
   RIGHT PANEL
   ========================= */

.management-panel {
    position: relative;
    text-align: center;
    padding: 0 10px;
}

.management-panel h1 {
    margin: 12px 0 30px;
    font-size: 30px;
    font-weight: normal;
    color: #304d6b;
}

.power-button {
    position: absolute;
    right: 15px;
    top: 8px;
    border: none;
    background: transparent;
    font-size: 25px;
    color: #c000c0;
    cursor: pointer;
}

.staff-name {
    font-size: 22px;
    color: #304d6b;
    margin-bottom: 10px;
}

.scan-input {
    width: 160px;
    height: 25px;
    border: 1px solid #888;
    background: white;
    outline: none;
    text-align: center;
}

.scan-input:focus {
    border-color: #00a9c7;
}

.scan-text {
    margin-top: 85px;
    font-size: 29px;
    font-weight: normal;
    color: #00b6d3;
}


/* =========================
   STATISTICS
   ========================= */

.statistics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 125px;
}

.stat-card {
    position: relative;
    background: white;
    min-height: 130px;
    border-radius: 5px;
    padding: 22px 12px 10px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
}

.stat-card::before {
    content: "";
    position: absolute;
    width: 25px;
    height: 25px;
    top: -15px;
    left: 12px;
    border-radius: 2px;
}

.gentlemen::before {
    background: #16b7c8;
}

.ladies::before {
    background: #df2369;
}

.checked::before {
    background: #4caf50;
}

.day::before {
    background: #ff9800;
}

.stat-title {
    color: #888;
    font-size: 12px;
    text-align: right;
}

.stat-number {
    margin-top: 17px;
    font-size: 22px;
    color: #4d5d70;
    text-align: right;
}

.stat-update {
    margin-top: 18px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 11px;
    text-align: left;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 900px) {

    .main-screen {
        grid-template-columns: 1fr;
    }

    .statistics {
        margin-top: 70px;
    }
}

@media (max-width: 600px) {

    .statistics {
        grid-template-columns: repeat(2, 1fr);
    }

    .university-title {
        font-size: 18px;
    }

    .best-user-title {
        font-size: 17px;
    }

    .management-panel h1 {
        font-size: 24px;
    }
}/* =========================
   ADMIN DASHBOARD
   ========================= */

.admin-screen {
    min-height: 100vh;
    padding: 25px;
    background: #f1eadf;
}

.admin-header {
    background: white;
    padding: 20px 25px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.admin-header h1 {
    margin: 0;
    color: #304d6b;
    font-size: 28px;
}

.admin-header p {
    margin: 6px 0 0;
    color: #777;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #304d6b;
}

.admin-user button {
    border: none;
    background: #304d6b;
    color: white;
    padding: 9px 16px;
    border-radius: 5px;
    cursor: pointer;
}


/* SUMMARY */

.admin-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 22px;
}

.admin-card {
    background: white;
    padding: 22px;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-card span {
    display: block;
    color: #888;
    font-size: 14px;
}

.admin-card strong {
    display: block;
    margin-top: 10px;
    color: #304d6b;
    font-size: 28px;
}


/* MENU */

.admin-menu {
    display: flex;
    gap: 12px;
    margin: 25px 0;
}

.admin-menu button {
    border: none;
    background: #304d6b;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.admin-menu button:hover {
    opacity: 0.85;
}


/* SECTIONS */

.admin-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-section h2 {
    margin-top: 0;
    color: #304d6b;
}

.hidden {
    display: none;
}


/* SEARCH */

#student-search,
#record-search {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
}


/* TABLE */

.admin-section table {
    width: 100%;
    border-collapse: collapse;
}

.admin-section th {
    background: #304d6b;
    color: white;
    padding: 12px;
    text-align: left;
}

.admin-section td {
    padding: 11px;
    border-bottom: 1px solid #eee;
}

.admin-section tr:hover {
    background: #f7f7f7;
}


/* REPORT FILTER */

.report-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.report-filter input {
    padding: 9px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.report-filter button {
    border: none;
    background: #304d6b;
    color: white;
    padding: 9px 16px;
    border-radius: 5px;
    cursor: pointer;
}


/* MOBILE */

@media (max-width: 900px) {

    .admin-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-menu {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {

    .admin-screen {
        padding: 12px;
    }

    .admin-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .admin-summary {
        grid-template-columns: 1fr;
    }

    .admin-section {
        overflow-x: auto;
    }
}/* =========================
   PRN IN / OUT BALLOON
   ========================= */

.scan-result {
    position: fixed;
    top: 50%;
    left: 75%;
    transform: translate(-50%, -50%) scale(0);

    width: 520px;
    min-height: 360px;

    padding: 35px 45px;
    border-radius: 30px;

    background: white;

    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.30);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: left;

    font-size: 20px;
    font-weight: normal;

    z-index: 1000;
    opacity: 0;
    pointer-events: none;
}

.scan-result.show {
    animation: scanBalloon 3.5s ease-in-out forwards;
}

.scan-result.in {
    border: 7px solid #4caf50;
    color: #2e8b3c;
}

.scan-result.out {
    border: 7px solid #df2369;
    color: #df2369;
}


/* IN / OUT heading */

.scan-type {
    width: 100%;
    text-align: center;

    font-size: 42px;
    font-weight: bold;

    margin-bottom: 25px;
}


/* Visitor details */

.scan-details {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 10px;

    font-size: 19px;
    line-height: 1.4;
}

.scan-details strong {
    display: inline-block;
    min-width: 100px;
}

@keyframes scanBalloon {

    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    15% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1;
    }

    25% {
        transform: translate(-50%, -50%) scale(0.95);
    }

    35% {
        transform: translate(-50%, -50%) scale(1);
    }

    75% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
}/* =========================
   SCHOOL OF LAW LIBRARY
   DYNAMIC DASHBOARD
   ========================= */

.university-title {
    font-size: 24px;
    font-weight: bold;
    color: #304d6b;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.university-title span {
    display: block;
    margin-top: 5px;
    font-size: 20px;
    font-weight: normal;
    color: #00a9c7;
}


/* MANAGEMENT TITLE */

.management-panel h1 {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* STAFF */

.staff-name {
    display: inline-block;
    padding: 6px 25px;
    border-radius: 20px;
    background: #304d6b;
    color: white;
    font-size: 16px;
    font-weight: bold;
}


/* SCAN AREA */

.scan-input {
    width: 220px;
    height: 32px;
    margin-top: 12px;
    border: 2px solid #00a9c7;
    border-radius: 5px;
    font-size: 18px;
}


/* SCAN TEXT */

.scan-text {
    margin-top: 75px;
    font-size: 30px;
    font-weight: bold;
    color: #00a9c7;
    letter-spacing: 2px;

    animation: scanPulse 2s ease-in-out infinite;
}


/* PULSING SCAN TEXT */

@keyframes scanPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.55;
        transform: scale(1.03);
    }
}


/* STATISTICS */

.stat-card {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 30px;
    font-weight: bold;
}


/* IMPLEMENTED BY */

.implemented-by {
    margin-top: 45px;
    padding-top: 15px;

    border-top: 1px solid #ddd;

    text-align: center;

    color: #777;
    font-size: 13px;
    line-height: 1.6;
}

.implemented-by strong {
    color: #304d6b;
    font-size: 15px;
}


/* BIG IN / OUT */

.scan-type {
    font-size: 72px;
    font-weight: 900;
    letter-spacing: 3px;
}

.scan-prn {
    margin-top: 15px;
    font-size: 25px;
    font-weight: bold;
    text-align: center;
}

.scan-time {
    margin-top: 12px;
    font-size: 20px;
    text-align: center;
}


/* MOBILE */

@media (max-width: 900px) {

    .scan-result {
        left: 50%;
        width: 90%;
        max-width: 520px;
    }

    .implemented-by {
        margin-top: 30px;
    }
}/* =========================
   SOL LIBRARY FINAL DESIGN
   ========================= */

.main-screen {
    min-height: 100vh;
    padding: 24px;
    gap: 24px;
    background: linear-gradient(135deg, #f1eadf, #e8f4f7);
}


/* LEFT */

.user-panel {
    min-height: calc(100vh - 48px);
    padding: 30px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.university-title {
    font-size: 25px;
    font-weight: 700;
    line-height: 1.4;
    color: #304d6b;
}

.university-title span {
    display: block;
    margin-top: 5px;
    font-size: 21px;
    color: #00a9c7;
}

.best-user-title {
    margin-top: 25px;
    font-size: 23px;
    font-weight: 600;
    color: #304d6b;
}


/* RIGHT */

.management-panel {
    min-height: calc(100vh - 48px);
    padding: 20px 25px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.staff-name {
    order: 1;
    margin-top: 0;
    padding: 7px 28px;
    border-radius: 25px;
    background: #304d6b;
    color: white;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(48, 77, 107, 0.25);
}

.management-panel h1 {
    order: 2;
    margin: 18px 0 20px;
    font-size: 31px;
    color: #304d6b;
    letter-spacing: 1px;
}


/* SCAN */

.scan-area {
    order: 3;
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.scan-input {
    width: 300px;
    height: 55px;
    border: 3px solid #00a9c7;
    border-radius: 10px;
    background: white;
    outline: none;
    text-align: center;
    font-size: 24px;
    box-shadow: 0 5px 18px rgba(0, 169, 199, 0.15);
}

.scan-input:focus {
    box-shadow: 0 0 20px rgba(0, 169, 199, 0.35);
}

.scan-text {
    margin-top: 22px;
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #00a9c7;
    animation: scanPulse 2s ease-in-out infinite;
}


/* STATISTICS */

.statistics {
    order: 4;
    width: 100%;
    margin-top: 70px;
    gap: 18px;
}

.stat-card {
    min-height: 135px;
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 30px;
    font-weight: bold;
}


/* CREDIT */

.implemented-by {
    order: 5;
    margin-top: auto;
    padding-top: 18px;
    width: 100%;
    border-top: 1px solid #d9d9d9;
    text-align: center;
    color: #777;
    font-size: 13px;
    line-height: 1.6;
}

.implemented-by strong {
    color: #304d6b;
    font-size: 16px;
}


/* IN / OUT */

.scan-result {
    width: 430px;
    min-height: 270px;
    padding: 30px;
    border-radius: 28px;

    position: fixed;
    top: 50%;
    left: 75%;

    transform: translate(-50%, -50%) scale(0);

    background: white;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    z-index: 1000;
    opacity: 0;
    pointer-events: none;

    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.scan-result.show {
    animation: scanBalloon 3.5s ease-in-out forwards;
}

.scan-result.in {
    border: 7px solid #4caf50;
    color: #2e8b3c;
}

.scan-result.out {
    border: 7px solid #df2369;
    color: #df2369;
}

.scan-type {
    font-size: 72px;
    font-weight: 900;
    letter-spacing: 3px;
}

.scan-prn {
    margin-top: 18px;
    font-size: 25px;
    font-weight: bold;
}

.scan-time {
    margin-top: 12px;
    font-size: 21px;
}


/* SCAN ANIMATION */

@keyframes scanPulse {

    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.55;
        transform: scale(1.03);
    }
}


/* MOBILE */

@media (max-width: 900px) {

    .main-screen {
        grid-template-columns: 1fr;
    }

    .user-panel,
    .management-panel {
        min-height: auto;
    }

    .scan-result {
        left: 50%;
        width: 90%;
        max-width: 430px;
    }
}

@media (max-width: 600px) {

    .scan-input {
        width: 90%;
    }

    .statistics {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 50px;
    }

    .management-panel h1 {
        font-size: 24px;
    }

    .scan-text {
        font-size: 23px;
    }
}.staff-name {
    background: transparent;
    color: #008b8b;
    padding: 0;
    border-radius: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: none;
}.implemented-by {
    order: 5;
    margin-top: auto;
    width: 100%;
    padding-top: 15px;

    border-top: 1px solid #ddd;

    text-align: left;

    color: #777;
    font-size: 13px;
    line-height: 1.6;
}

.implemented-by strong {
    color: #304d6b;
    font-size: 16px;
}