@charset "UTF-8";
/* CSS Document */

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f6f8fa;
    margin: 0;
}

h1 {
    text-align: center;
    color: #1976d2;
    margin-top: 28px;
    font-size: 2.1rem;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.container {
    max-width: 950px;
    margin: 36px auto 32px auto;
    background: #fff;
    border-radius: 13px;
    box-shadow: 0 4px 24px #1976d22a;
    padding: 30px 8px 24px 8px;  /* thu nhỏ lề trái */
    overflow-x: auto;
}

form {
    margin-bottom: 34px;
}

.msg {
    color: #1caf3d;
    margin: 0 0 18px 0;
    font-weight: 500;
    text-align: center;
    font-size: 1.09rem;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 14px;
    background: #f8fbff;
    border-radius: 9px;
    overflow: hidden;
    box-shadow: 0 1px 6px #0001;
    table-layout: fixed;
    word-break: break-word;
}

th, td {
    border: 1px solid #e3e8f0;
    padding: 10px 12px;
    text-align: left;
    font-size: 1.01rem;
    vertical-align: middle;
    max-width: 180px;
    overflow-wrap: break-word;
    word-break: break-word;
}

th {
    background: linear-gradient(90deg,#2196f3 0%,#21cbf3 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1.08rem;
    border-bottom: 2px solid #1560a7;
}

tr:nth-child(even) {
    background: #f8fbff;
}

tr:hover {
    background: #e3f1fb;
}

img {
    max-width: 85px;
    max-height: 70px;
    border-radius: 7px;
    box-shadow: 0 1px 6px #0001;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.action-btn {
    background: #1976d2;
    color: #fff;
    border: none;
    padding: 7px 14px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 5px;
    transition: background 0.18s, box-shadow 0.13s;
    box-shadow: 0 2px 8px #1976d215;
}

.action-btn:last-child { margin-right: 0; }

.action-btn:hover {
    background: #1560a7;
    box-shadow: 0 4px 18px #1976d235;
}

.inline-edit {
    background: #fffbe9;
}

.flex {
    display: flex;
    gap: 9px;
    align-items: center;
    flex-wrap: wrap;
}

.input {
    padding: 6px 11px;
    border-radius: 7px;
    border: 1.5px solid #b8c9e7;
    font-size: 1rem;
    outline: none;
    transition: border 0.18s;
    background: #f8fbff;
}

.input:focus {
    border: 1.5px solid #1976d2;
    background: #fff;
}

.inline-edit .input {
    min-width: 80px;
    max-width: 140px;
    width: 100%;
    margin-bottom: 3px;
    box-sizing: border-box;
}
.inline-edit img {
    display: block;
    margin: 0 auto 5px auto;
    max-width: 85px;
    max-height: 70px;
}
.inline-edit input[type="file"] {
    display: block;
    margin: 0 auto;
    padding: 0;
    border: none;
    background: none;
    font-size: 0.97rem;
}
.inline-edit form {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
    margin: 0;
    padding: 0;
}
.inline-edit button, .inline-edit a.action-btn {
    min-width: 52px;
    padding: 6px 14px;
    font-size: 0.96rem;
}
.col-id    { width: 38px; min-width: 30px; max-width: 45px; text-align: center; }
.col-time  { width: 60px; min-width: 50px; max-width: 75px; text-align: center; }
.col-hint  { min-width: 160px; max-width: 290px; }
.col-action{ min-width: 120px; max-width: 220px; text-align: center;}
		
.header-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 18px;
    gap: 0;              /* Hoặc thử gap: 4px; nếu muốn hơi tách */
    margin-left: 0 !important;
    padding-left: 0 !important;
}


.logo-admin {
    height: 38px;
    width: auto;
    border-radius: 6px;
    box-shadow: 0 1px 6px #1976d215;
    background: #fff;
    padding: 2px 4px;    /* Hoặc 0 nếu muốn dính sát hoàn toàn */
    margin-right: 0;
}

.backhome-btn {
    background: #f6f8fa;
    color: #1976d2;
    border: 1.5px solid #1976d2;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    padding: 7px 16px;
    text-decoration: none;
    margin-right: 0;
    transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.14s;
    box-shadow: 0 2px 8px #1976d212;
    display: flex;
    align-items: center;
    gap: 5px;
}
.backhome-btn:hover {
    background: #1976d2;
    color: #fff;
    border-color: #1560a7;
    box-shadow: 0 4px 12px #1976d22a;
}

/* Modal Giới thiệu */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
.modal-admin {
    position: fixed; z-index: 9999; left:0; top:0; width:100vw; height:100vh;
    background: rgba(23,37,61,0.44); display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity .35s;
    font-family: 'Montserrat', Arial, sans-serif;
}
.modal-admin.show { opacity: 1; pointer-events: auto; }
.modal-admin-content {
    background: #fff; border-radius: 16px; max-width: 430px; width: 95vw;
    box-shadow: 0 4px 32px #1976d251; padding: 30px 26px 22px 26px; position: relative;
    animation: adminModalZoomIn .45s cubic-bezier(.34,1.56,.64,1);
}
@keyframes adminModalZoomIn {
  0% { transform: scale(.7); opacity:0; }
  70% { transform: scale(1.06); opacity:1; }
  100% { transform: scale(1); }
}
.modal-admin-title {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700; font-size: 1.4em; text-align: center;
    margin-bottom: 10px; color: #1976d2; letter-spacing: 0.01em;
}
.modal-admin-body {
    font-size: 1.08em; color: #1a237e; line-height: 1.65;
    margin: 0 0 4px 0;
}
.modal-admin-body ul {
    padding-left: 16px; margin: 0;
}
.modal-admin-body li {
    margin-bottom: 7px; font-size: 1em;
}
.modal-admin-ok {
    background: linear-gradient(90deg, #1976d2 70%, #2196f3 100%);
    border: none; border-radius: 8px; padding: 9px 34px;
    font-size: 1.1em; color: #fff; cursor: pointer; font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600; transition: background .15s;
}
.modal-admin-ok:hover { background: #1769aa; }
.modal-admin-close {
    position: absolute; right: 18px; top: 12px;
    background: none; border: none; color: #222; font-size: 1.4em; cursor: pointer; font-weight: bold;
    transition: color .12s;
}
.modal-admin-close:hover { color: #1976d2; }

@media (max-width: 900px) {
    .container { max-width: 99vw; padding: 2vw; }
    table { font-size: 0.95rem; }
    th, td { padding: 8px 5px; max-width: 90vw; }
}

@media (max-width: 650px) {
    .container { padding: 2vw 2vw 10vw 2vw; }
    th, td { font-size: 0.97rem; }
    img { max-width: 60vw; }
}
@media (max-width: 650px) {
    .inline-edit form { flex-direction: column; align-items: stretch; gap: 4px; }
}
@media (max-width: 650px) {
    .col-hint { min-width: 80px; max-width: 98vw; }
    .col-action { min-width: 75px; max-width: 99vw;}
}
