/*
Theme Name: CTVCTT Theme
Theme URI: https://ctvctt.edu.vn
Author: Edward Nguyen
Author URI: https://edsofts.io.vn
Description: Theme phục vụ ứng dụng ctvctt.
Version: 1.2 (Light Mode Edition)
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* --- CẤU HÌNH BIẾN MÀU SẮC (LIGHT MODE TONE SÁNG SỦA) --- */
:root {
    --bg-color: #f4f7f9;         /* Nền tổng thể xám/xanh rất nhạt */
    --card-bg: #ffffff;          /* Nền thẻ trắng tinh */
    --text-primary: #1e293b;     /* Chữ chính màu xám đen */
    --text-secondary: #64748b;   /* Chữ phụ màu xám dịu */
    --border-color: #e2e8f0;     /* Viền thẻ mờ */
    
    /* Màu icon */
    --blue: #2563eb;
    --purple: #9333ea;
    
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* --- RESET & GLOBAL --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Thêm dòng này để làm chuẩn vị trí cho footer */
}

a { text-decoration: none; color: inherit; }

/* --- DASHBOARD LAYOUT --- */
.dashboard-wrapper {
    width: 100%;
    max-width: 800px; 
    padding: 40px 20px 80px 20px; /* Tăng khoảng cách đệm phía dưới (80px) */
    text-align: center;
}

/* --- LOGO --- */
.dashboard-logo {
    max-width: 140px; 
    height: auto;
    margin-bottom: 20px;
    /* Không cần hiệu ứng drop-shadow phát sáng nữa vì nền đã sáng */
}

.dashboard-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    color: #0f172a; /* Nhấn mạnh màu đen cho tiêu đề */
}

.dashboard-header p {
    color: var(--text-secondary);
    margin-bottom: 45px;
    font-size: 1.1rem;
}

/* --- FOOTER --- */
.dashboard-footer {
    position: absolute;
    bottom: 20px; /* Cách lề dưới 20px cho đẹp */
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- GRID SYSTEM --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 24px;
}

/* --- CARD DESIGN --- */
.card-item {
    background: var(--card-bg);
    padding: 35px 25px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border-color);
}

/* Hiệu ứng di chuột (Nổi lên và viền xanh mờ) */
a.card-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: #bfdbfe; /* Viền xanh lơ nhạt khi hover */
}

/* Thẻ bị vô hiệu hóa (Coming soon) */
.card-item.disabled {
    cursor: default;
    background-color: #fafafa; /* Nền hơi xám cho thẻ chưa kích hoạt */
    border: 1px dashed #cbd5e1;
}

/* --- ICON BOX --- */
.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 20px; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
}

/* Nền mờ cho icon (dùng nền màu nhạt tươi tắn) */
.color-blue { color: var(--blue); background: #eff6ff; }
.color-purple { color: var(--purple); background: #faf5ff; }

/* --- TYPOGRAPHY --- */
.card-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- NHÃN COMING SOON --- */
.badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #a855f7, #7e22ce);
    border-radius: 30px;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(168, 85, 247, 0.2);
}

/* --- FOOTER --- */
/* --- LOGO --- */
.dashboard-logo {
    max-width: 140px; 
    height: auto;
    margin-bottom: 20px;
    mix-blend-mode: multiply; /* Dòng CSS thần thánh giúp xóa phông trắng, hòa trộn vào nền */
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 600px) {
    .dashboard-wrapper { padding-top: 20px; }
    .card-grid { grid-template-columns: 1fr; }
    .card-item { 
        flex-direction: row; 
        text-align: left; 
        padding: 24px; 
    }
    .icon-box { 
        margin-bottom: 0; 
        margin-right: 20px; 
        width: 60px; 
        height: 60px; 
        font-size: 24px; 
        border-radius: 16px;
    }
}
/* Màu nền đặc trưng của UniCore App */
.unicore-magic-card {
    background: #1e293b !important; /* Màu card-item trong App */
    border: 1px solid #334155 !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.unicore-magic-card:hover {
    border-color: #10b981; /* Màu xanh emerald của App */
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.2);
}

/* Container chứa 2 logo */
.unicore-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    gap: 10px;
}

/* Ô chứa logo nhỏ */
.logo-mini-box {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-mini-box.white-bg { background: #ffffff; }
.logo-mini-box.dark-bg { background: #1e1b4b; } /* Màu nền logo UniCore */

.logo-mini-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Dấu sao phép thuật ✦ */
.magic-star {
    color: #ffffff;
    font-size: 20px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    animation: pulse-star 2s infinite;
}

@keyframes pulse-star {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Nội dung chữ */
.unicore-magic-card h3 {
    color: #f8fafc !important;
    margin-bottom: 4px;
}

.unicore-magic-card p {
    color: #94a3b8 !important;
    font-size: 0.85rem;
}

/* Badge Đang hoạt động */
.badge-active {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    border: 1px solid rgba(16, 185, 129, 0.3);
}