/* RESET CƠ BẢN */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #0f172a;
    color: #e5e7eb;
    line-height: 1.6;
}

/* MENU (kế thừa header.php) */
.menu {
    background: #020617;
    padding: 15px;
    text-align: center;
}

.menu a {
    color: #e5e7eb;
    margin: 0 12px;
    text-decoration: none;
    font-weight: bold;
}

.menu a:hover {
    color: #38bdf8;
}

/* HERO */
.hero {
    background: linear-gradient(135deg, #020617, #020617dd),
                url('https://images.unsplash.com/photo-1542751371-adc38448a05e') center/cover;
    padding: 80px 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 25px;
    color: #cbd5f5;
}

/* BUTTON */
.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin: 5px;
}

.btn-primary {
    background: #38bdf8;
    color: #020617;
}

.btn-outline {
    border: 2px solid #38bdf8;
    color: #38bdf8;
}

.btn-sm {
    background: #1e293b;
    color: #e5e7eb;
    padding: 8px 12px;
    font-size: 14px;
}

.btn:hover {
    opacity: 0.85;
}

/* CONTAINER */
.container {
    width: 1100px;
    max-width: 95%;
    margin: auto;
}

/* SECTION */
.section {
    margin: 60px 0;
}

.section-title {
    font-size: 28px;
    margin-bottom: 15px;
    border-left: 5px solid #38bdf8;
    padding-left: 10px;
}

.section-desc {
    color: #cbd5f5;
}

/* GRID */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.col {
    width: calc(33.333% - 14px);
}

/* CARD */
.card {
    background: #020617;
    border-radius: 10px;
    border: 1px solid #1e293b;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.price {
    color: #38bdf8;
    font-weight: bold;
    margin: 10px 0;
}

/* FEATURES */
.features {
    display: flex;
    gap: 20px;
}

.feature {
    flex: 1;
    background: #020617;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #1e293b;
    text-align: center;
}

.feature h4 {
    margin-bottom: 10px;
    color: #38bdf8;
}

/* FOOTER (footer.php) */
footer, p {
    text-align: center;
    color: #94a3b8;
}
/* ================= HEADER ================= */
.header {
    background: #020617;
    border-bottom: 1px solid #1e293b;
}

.header-container {
    max-width: 1100px;
    margin: auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #38bdf8;
}

.slogan {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

.nav a {
    color: #e5e7eb;
    margin-left: 20px;
    text-decoration: none;
    font-weight: bold;
}

.nav a:hover {
    color: #38bdf8;
}

/* ================= FOOTER ================= */
.footer {
    background: #020617;
    border-top: 1px solid #1e293b;
    margin-top: 60px;
}

.footer-container {
    max-width: 1100px;
    margin: auto;
    padding: 30px 20px;
    text-align: center;
}

.footer-title {
    font-size: 20px;
    color: #38bdf8;
    margin-bottom: 8px;
}

.footer-desc {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-copy {
    font-size: 13px;
    color: #64748b;
}
/* CARD IMAGE */
.card-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* NOTE */
.note {
    color: #facc15;
    font-size: 14px;
    margin: 8px 0;
}
/* ===== ACCOUNT DETAIL ===== */
.detail-card {
    display: flex;
    gap: 30px;
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 20px;
}

.detail-img img {
    width: 380px;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
}

.detail-content h2 {
    margin-bottom: 10px;
}

.detail-content .desc {
    margin: 15px 0;
    color: #cbd5f5;
    line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .detail-card {
        flex-direction: column;
    }

    .detail-img img {
        width: 100%;
        height: 220px;
    }
}
/* ===== BLOG ===== */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-card {
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.2s;
}

.post-card:hover {
    transform: translateY(-4px);
}

.post-title a {
    color: #38bdf8;
    text-decoration: none;
    font-size: 22px;
}

.post-title a:hover {
    text-decoration: underline;
}

.post-excerpt {
    color: #cbd5f5;
    margin: 10px 0 15px;
    line-height: 1.6;
}
/* ===== POST DETAIL ===== */
.post-detail {
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 30px;
}

.post-detail-title {
    font-size: 32px;
    color: #38bdf8;
    margin-bottom: 20px;
}

.post-detail-content {
    font-size: 16px;
    color: #e5e7eb;
    line-height: 1.8;
}

.post-detail-content p {
    margin-bottom: 15px;
}

.post-detail-back {
    margin-top: 30px;
}
/* ===== LOGIN ADMIN ===== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #020617, #020617ee);
}

.login-card {
    width: 360px;
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 30px;
}

.login-card h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #38bdf8;
}

.login-card label {
    display: block;
    margin: 10px 0 5px;
    font-size: 14px;
    color: #cbd5f5;
}

.login-card input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #1e293b;
    background: #020617;
    color: #e5e7eb;
}

.login-card input:focus {
    outline: none;
    border-color: #38bdf8;
}

.btn-block {
    width: 100%;
    margin-top: 15px;
}

.login-error {
    color: #f87171;
    text-align: center;
    margin-bottom: 10px;
}

.login-warning {
    color: #facc15;
    text-align: center;
    margin-bottom: 10px;
}

.login-note {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 15px;
}
/* ===== ADMIN LAYOUT ===== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: #0f172a;
}

/* SIDEBAR */
.admin-sidebar {
    width: 240px;
    background: #020617;
    border-right: 1px solid #1e293b;
    padding: 20px;
}

.admin-logo {
    color: #38bdf8;
    text-align: center;
    margin-bottom: 30px;
}

.admin-menu a {
    display: block;
    padding: 10px 15px;
    color: #e5e7eb;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 8px;
}

.admin-menu a:hover,
.admin-menu a.active {
    background: #1e293b;
    color: #38bdf8;
}

/* MAIN */
.admin-main {
    flex: 1;
    padding: 30px;
}

.admin-main h1 {
    margin-bottom: 10px;
}

.admin-welcome {
    color: #94a3b8;
    margin-bottom: 30px;
}

/* STATS */
.admin-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    flex: 1;
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-card h3 {
    font-size: 36px;
    color: #38bdf8;
    margin-bottom: 5px;
}

.stat-card p {
    color: #94a3b8;
}

/* ACTIONS */
.admin-actions a {
    margin-right: 10px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .admin-wrapper {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
    }

    .admin-stats {
        flex-direction: column;
    }
}
/* ===== ADMIN FORM ===== */
.admin-form {
    max-width: 600px;
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 25px;
}

.admin-form label {
    display: block;
    margin: 12px 0 6px;
    color: #cbd5f5;
    font-size: 14px;
}

.admin-form input,
.admin-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #1e293b;
    background: #020617;
    color: #e5e7eb;
}

.admin-form input:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: #38bdf8;
}

.admin-form button {
    margin-top: 20px;
}

.admin-success {
    color: #4ade80;
    margin-bottom: 15px;
}
/* ===== ADMIN TABLE ===== */
.admin-section {
    margin-top: 40px;
}

.admin-section h2 {
    margin-bottom: 15px;
    color: #38bdf8;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #020617;
    border: 1px solid #1e293b;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #1e293b;
    text-align: left;
}

.admin-table th {
    background: #020617;
    color: #94a3b8;
}

.admin-table tr:hover {
    background: #1e293b;
}
.class-icon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-right: 6px;
}
.detail-content .class-icon {
    width: 40px;
    height: 40px;
    margin-right: 8px;
}
/* ===== ACCOUNT GALLERY ===== */
.thumb-list {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.thumb-list img {
    width: 70px;
    height: 55px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumb-list img:hover {
    border-color: #38bdf8;
}
/* ===== CONTACT BUTTONS ===== */
.contact-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
/* ===== FOOTER LINKS ===== */
.footer-links {
    margin: 12px 0;
}

.footer-links a {
    color: #94a3b8;
    margin: 0 10px;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #38bdf8;
}
