﻿/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Segoe UI,Arial;
    font-size: 14px;
    background: #f4f6f9;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

.clear {
    clear: both;
}


/* =========================
   LAYOUT
========================= */

.wrapper {
    width: 95%;
    margin: auto;
    background: #fff;
    min-height: 600px;
}

.header {
    background: #003366;
    color: white;
    padding-left: 10px;
}

.nameHR {
    font-size: 24px; /* to hơn */
    font-weight: 700;
    color: #1d4ed8;
    margin: 5px 0 5px 0; /* tạo khoảng thở */
    padding: 12px 18px;
}


/* =========================
   MENU
========================= */

.main_menu {
    background: #00A69B;
}

    .main_menu ul {
        display: flex;
    }

        .main_menu ul li {
            position: relative;
        }

            .main_menu ul li a {
                display: block;
                padding: 11px 22px;
                color: #fff;
                font-weight: 500;
            }

            .main_menu ul li:hover {
                background: #5F5C5C;
            }

            /* submenu */

            .main_menu ul li ul {
                display: none;
                position: absolute;
                background: #00A69B;
                top: 100%;
                left: 0;
                min-width: 200px;
            }

            .main_menu ul li:hover ul {
                display: block;
            }

            .main_menu ul li ul li {
                border-bottom: 1px dotted #ccc;
            }

                .main_menu ul li ul li a {
                    padding: 8px 12px;
                }


/* =========================
   GRIDVIEW
========================= */

/* ===== GRIDVIEW ===== */
.mGrid {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    /* HEADER */
    .mGrid th {
        background: #e8d9b5;
        color: #333;
        padding: 10px;
        text-align: center;
        border: 1px solid #d8caa5;
        font-weight: 600;
    }

    /* CELL */
    .mGrid td {
        border: 1px solid #e1e1e1;
        padding: 6px 6px;
        vertical-align: middle;
    }

        /* CỘT NGÀY */
        .mGrid td:nth-child(1) {
            background: #fafafa;
            font-weight: 600;
          
        }

        /* CỘT BUỔI */
        .mGrid td:nth-child(2) {
         
            font-weight: 500;
        }

        /* Ô công việc */
        .mGrid td div {
            line-height: 1.6;
           
        }

    /* Hover */
    .mGrid tr:hover {
        background: #f6faff;
    }

/* Highlight ngày hôm nay */
.today {
    background: #e8f4ff !important;
}

/* Tên công việc */
.cv-title {
    font-weight: 600;
    margin-bottom: 2px;
}

/* Nội dung */
.cv-nd {
    padding-left: 3px;
    color: #444;
    font-size: 14px;
    line-height: 1.6;
}

/* Địa điểm */
.cv-dd {
    padding-left: 3px;
    color: #777;
    font-size: 13px;
    line-height: 1.6;
}

    /* icon cách chữ */
    .cv-nd i,
    .cv-dd i {
        margin-right: 4px;
    }

/* Card công việc */
.cv-box {
    background: #f9fbff;
    padding: 2px 2px;
    border-radius: 4px;
    margin-bottom: 4px;
}
.thu2 {
    background-color: #4FC3F7;
  
}
/* xanh dương sáng */
.thu3 {
  

}
/* cam tươi */
.thu4 {
    background-color: #4FC3F7;
}
/* xanh lá */
.thu5 {
   
  
}
/* vàng đậm */
.thu6 {
    background-color: #4FC3F7;
}
/* đỏ nhạt */
.thu7 {
    background-color: #90A4AE;
}
/* tím */
.cn {
    background-color: #90A4AE;
}
/* xám xanh */

/* =========================
   BUTTON
========================= */

.button {
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    background: #2b7cff;
    color: #fff;
    cursor: pointer;
}

    .button:hover {
        background: #1a5fe0;
    }

.mGrid input[type=submit] {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.mGrid input[value="Sửa"] {
    background: #ffc107;
}

.mGrid input[value="Lưu"] {
    background: #28a745;
    color: #fff;
}

.mGrid input[value="Hủy"] {
    background: #dc3545;
    color: #fff;
}
/* =========================
   INPUT
========================= */

.textbox {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

    .textbox:focus {
        border-color: #0078d4;
        outline: none;
    }

.selectbox {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

    .selectbox:focus {
        border-color: #0078d4;
        outline: none;
    }

.txt-date {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}


/* =========================
   THÔNG TIN
========================= */

.thongtin {
    padding-left: 5px;
    line-height: 19px;
}

.thongtin_center {
    text-align: center;
}

.thongtin_right {
    text-align: right;
    padding-right: 5px;
}
.thongtin_left {
    text-align: left;
    padding-right: 5px;
}


/* =========================
   TABS
========================= */

.tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 10px;
}

.tab {
    padding: 8px 15px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

    .tab:hover {
        color: #2b7cff;
    }

    .tab.active {
        border-bottom: 3px solid #2b7cff;
        color: #2b7cff;
    }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }


/* =========================
   LỊCH CÔNG TÁC
========================= */

.phongHeader {
    background: #2c3e50;
    color: #fff;
    padding: 8px;
    margin-top: 12px;
    font-weight: bold;
}

.bangTuan {
    width: 100%;
    border-collapse: collapse;
}

    .bangTuan th {
        background: #34495e;
        color: #fff;
        padding: 6px;
    }

    .bangTuan td {
        border: 1px solid #ddd;
        padding: 6px;
    }

.tennv {
    background: #f1f5f9;
    font-weight: bold;
}


/* =========================
   CÔNG VIỆC
========================= */

.cv {
    padding: 4px;
    border-radius: 4px;
    margin-bottom: 3px;
}

.cv-sang {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.cv-chieu {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
}


/* =========================
   BUTTON NHỎ
========================= */

.btn-small {
    padding: 4px 8px;
    font-size: 12px;
}

.btn-info {
    background-color: #17a2b8;
    color: #fff;
    border: 1px solid #17a2b8;
    padding: 6px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

    .btn-info:hover {
        background-color: #138496;
        border-color: #117a8b;
    }

    .btn-info:active {
        background-color: #117a8b;
    }
.search-bar {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 10px 0;
}
.textbox-multiline {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit; /* kế thừa font của parent, GridView hoặc body */
    font-size: 14px;
    color: #333;
    background-color: #fff;
    line-height: 1.4;
    resize: vertical;
    transition: border 0.3s, box-shadow 0.3s;
}

    .textbox-multiline:focus {
        border-color: #4A90E2;
        box-shadow: 0 0 4px rgba(74,144,226,0.4);
        outline: none;
    }

    .textbox-multiline::placeholder {
        color: #999;
        font-style: italic;
        font-family: inherit; /* placeholder cùng font */
    }
.same-day {
    border-bottom: 1px dashed #999;
}

.new-day {
    border-bottom: 2px solid #000;
}
/* ===== KHUNG LOGIN ===== */
.login-wrapper {
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    width: 360px;
    background: #ffffff;
    border-radius: 12px;
    padding: 35px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    animation: fadeIn 0.5s ease;
}

    /* ===== TITLE ===== */
    .login-box h2 {
        margin-bottom: 25px;
        color: #0f4c81;
        font-weight: 600;
    }

    /* ===== INPUT ===== */
    .login-box input {
        width: 100%;
        padding: 12px;
        margin: 10px 0;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 14px;
        transition: 0.3s;
    }

        .login-box input:focus {
            border-color: #18a999;
            box-shadow: 0 0 5px rgba(24,169,153,0.4);
            outline: none;
        }

/* ===== BUTTON ===== */
.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #18a999, #0f4c81);
    border: none;
    color: #fff;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }



/* ===== HEADER RIGHT ===== */
.header-right {
    float: right;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    padding: 10px 15px;
    font-size: 14px;
}

/* ===== DATE ===== */
.date-area {
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.9;
}

/* ===== USER AREA ===== */
.user-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== LOGIN BUTTON ===== */
#lnkLogin {
    color: white;
    background: rgba(255,255,255,0.15);
    padding: 6px 12px;
    border-radius: 6px;
    transition: 0.3s;
}

    #lnkLogin:hover {
        background: #18a999;
    }

/* ===== USER PANEL ===== */
#pnlUser {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

/* ===== USER NAME ===== */
#lblUser {
    font-weight: bold;
    color: #ffd700;
}

.btn-logout {
    background-color: #e74c3c;
    color: #fff !important;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

    .btn-logout:hover {
        background-color: #c0392b;
    }

    .btn-logout i {
        margin-right: 5px;
    }
.change-password-box {
    width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

    .change-password-box h2 {
        text-align: center;
        color: #1e73be;
        margin-bottom: 20px;
    }

.form-group {
    margin-bottom: 15px;
}

    .form-group label {
        display: block;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .form-group input {
        width: 100%;
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

.btn-change {
    width: 100%;
    padding: 10px;
    background: #1e73be;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

    .btn-change:hover {
        background: #155a96;
    }