﻿/* หน้าแรก (ปฏิทิน + เข้าสู่ระบบ) */
body {
    width: 100%;
    margin-top: 5px;
    background-color: #f5f6f8;
}

.form-control {
    font-weight: 500;
}

.card {
    border-radius: 0;
}

.stylebody {
    background-color: #fff;
    border: none;
    box-shadow: 0 .46875rem 2.1875rem rgba(90,97,105,.1), 0 .9375rem 1.40625rem rgba(90,97,105,.1), 0 .25rem .53125rem rgba(90,97,105,.12), 0 .125rem .1875rem rgba(90,97,105,.1);
}

.navbar {
    position: relative;
    z-index: 1000;
    min-height: 50px;
    margin-bottom: 1px;
    border: 1px solid transparent;
    flex-wrap: unset;
    background-image: linear-gradient(to bottom, #ade7f9 0, #fff 100%);
}

.navbar.navbar-plain {
    background-image: none;
    background-color: #fff;
}

.login-error {
    color: #c00;
    margin-left: 8px;
    white-space: nowrap;
}

/* กล่องลอยด้านขวา */
.float-box {
    position: fixed;
    right: 0;
    width: 170px;
    padding: 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    box-shadow: 2px 2px 5px 0 rgba(50, 50, 50, .52);
}

.float-box.legend { top: 200px; }
.float-box.survey { top: 320px; text-align: center; }
.float-box .title { text-decoration: underline; }

.legend-row { display: flex; align-items: center; margin-bottom: 2px; }

/* สีสถานะ (ใช้ทั้งในคำอธิบายและจุดบนปฏิทิน) */
.legend-swatch,
.event-warning,
.event-success {
    display: block;
    width: 19px;
    height: 20px;
    margin-right: 4px;
    margin-bottom: 2px;
    box-shadow: inset 0 0 5px 0 rgba(0, 0, 0, .4);
    border-radius: 4px;
    border: 1px solid #fff;
    background-color: #c3c3c3;
}

.event-warning { background-color: #e3bc08; }
.event-success { background-color: #006400; }
