/* =========================================
   STYLE.CSS - GIAO DIỆN KHUNG TEDDY V3.0
   ========================================= */
body { font-family: 'Segoe UI', Roboto, sans-serif; margin: 0; overflow-x: hidden; background-color: #f4f6f8; }

/* --- 1. TRANG ĐĂNG NHẬP (INDEX.HTML) --- */
.login-body { 
    background: linear-gradient(135deg, rgba(27,94,32,0.8), rgba(0,0,0,0.8)), url('https://images.pexels.com/photos/12233494/pexels-photo-12233494.jpeg?q=80&w=2070') center/cover; 
    height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; 
}
#particles-js { position: absolute; width: 100%; height: 100%; top: 0; left: 0; z-index: 0; }
.login-card { background: white; border-radius: 16px; padding: 40px; box-shadow: 0 15px 35px rgba(0,0,0,0.5); width: 100%; max-width: 400px; animation: popIn 0.4s ease-out; position: relative; z-index: 10; }
@keyframes popIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.login-card .form-control { border-radius: 8px; padding: 12px 15px; background: #f8f9fa; border: 1px solid #dee2e6; }
.login-card .form-control:focus { box-shadow: none; border-color: #198754; background: white; }
.btn-login { background: #198754; border: none; padding: 12px; border-radius: 8px; font-weight: bold; width: 100%; transition: 0.2s; color: white;}
.btn-login:hover { background: #146c43; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(25,135,84,0.3); }
.logo-circle { 
    width: 180px; 
    height: 180px; 
    background: #ffffff;
    border: 5px solid #ffffff;
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: -95px auto 20px; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.2); 
    overflow: hidden; 
    position: relative;
    z-index: 20;
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
}
/* --- 2. GIAO DIỆN HOME (SIDEBAR DARK - MAIN LIGHT) --- */
#sidebar { width: 260px; height: 100vh; position: fixed; top: 0; left: 0; background-color: #212529; color: white; z-index: 1000; display: flex; flex-direction: column; box-shadow: 2px 0 10px rgba(0,0,0,0.1); }
.sidebar-brand { padding: 20px; font-size: 20px; font-weight: 900; letter-spacing: 1px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.05); color: #4caf50; }
.user-panel { padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); text-align: center; }
.user-badge { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 20px; padding: 6px 15px; font-size: 13px; font-weight: bold; color: #fff; display: inline-block; }

.sidebar-menu { flex-grow: 1; padding: 20px 15px; overflow-y: auto; }
.menu-item { display: flex; align-items: center; padding: 12px 15px; color: #adb5bd; text-decoration: none; border-radius: 8px; margin-bottom: 5px; transition: 0.2s; font-weight: 600; font-size: 14px; cursor: pointer; border: none; background: none; width: 100%; text-align: left; }
.menu-item i { width: 25px; text-align: center; font-size: 16px; margin-right: 10px; }
.menu-item:hover { background-color: rgba(255,255,255,0.05); color: white; }
.menu-item.active { background-color: #198754; color: white; box-shadow: 0 4px 10px rgba(25, 135, 84, 0.3); }

.sidebar-footer { padding: 20px 15px; border-top: 1px solid rgba(255,255,255,0.05); }

/* Vùng nội dung Tool */
#main-wrapper { margin-left: 260px; min-height: 100vh; position: relative; }
#app-content { padding: 30px; padding-bottom: 80px; }