*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  background: url('baba.png') no-repeat center center fixed;
  background-size: cover;
  position: relative;
}

.bg-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10, 10, 10, 0.65); /* Darkens the image so text pops */
  z-index: 0;
}

.dashboard-wrapper { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100vh; }

.dash-header { padding: 24px 32px; display: flex; justify-content: flex-end; }
.user-info { display: flex; align-items: center; gap: 16px; }
.btn-logout {
  background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 16px; border-radius: 6px; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 500; transition: all 0.2s ease;
}
.btn-logout:hover { background: #dc2626; border-color: #dc2626; }

.dashboard-box {
  background: rgba(100, 100, 100, 0.8); /* 80% transparent white */
  backdrop-filter: blur(8px); /* Frosted glass effect */
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid #D4AF37; /* Gold border */
  border-radius: 16px;
  padding: 40px; /* Slightly reduced padding to save vertical space */
  max-width: 1200px; /* Increased from 800px to fit 3 columns side-by-side */
  width: 90%;
  margin: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  text-align: center;
  color: #0a0a0a;
}

.welcome-section { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid rgba(212, 175, 55, 0.3); }
.luxury-title { 
  font-family: 'Playfair Display', serif; 
  margin: 0; 
  font-size: 36px; 
  font-weight: 700; 
  letter-spacing: -0.01em; 
  color: #ffffff; 
}
.luxury-title span { color: #D4AF37; } /* Gold name */
.luxury-sub { margin: 0; color: #4b5563; font-size: 16px; font-style: italic; }

.nav-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.nav-card {
  border: 1px solid rgba(212, 175, 55, 0.2); /* Subtle gold border */
  border-radius: 12px; 
  padding: 24px 16px; 
  text-align: center;
  text-decoration: none; 
  color: #0a0a0a; 
  transition: all 0.2s ease; 
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.55); /* 55% transparent white (more transparent than the box) */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.nav-card svg { color: #D4AF37; margin-bottom: 4px; } /* Gold icons */
.nav-card strong { font-size: 16px; font-weight: 600; }
.nav-card span { font-size: 13px; color: #4b5563; }
.nav-card:hover { 
  border-color: #D4AF37; 
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2); 
  transform: translateY(-2px); 
  background: rgba(255, 255, 255, 0.75); /* Brightens slightly on hover */
}

/* PREMIUM LIST LAYOUT */
.nav-list-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Forces exactly 3 columns side-by-side */
    gap: 40px;
    text-align: left;
    margin-top: 10px;
}

.nav-category h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #D4AF37; /* Gold */
    margin: 0 0 20px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 10px;
}

.nav-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-category ul li {
    margin-bottom: 14px; /* Slightly reduced to fit on screen better */
}

.nav-category ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-bottom: 4px;
}

/* Gold Underline Hover Effect */
.nav-category ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 4px;
    right: 0;
    background: #D4AF37;
    transition: width 0.3s ease;
}

.nav-category ul li a:hover::after {
    width: 100%;
    left: 0;
    background: #D4AF37;
}

.nav-category ul li a:hover {
    color: #D4AF37;
}

/* Responsive fallback for smaller screens */
@media (max-width: 900px) {
    .nav-list-container {
        grid-template-columns: 1fr; /* Stacks vertically on mobile/small screens */
    }
    .dashboard-box {
        max-height: 85vh; /* Allows scrolling on small screens if needed */
        overflow-y: auto;
    }
}
/* KODO CHATBOT */
.kodo-chatbot {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 350px;
    height: 500px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid #D4AF37;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    transition: height 0.3s ease;
}
.kodo-chatbot.minimized {
    height: 50px;
}

.kodo-header {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid #D4AF37;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.kodo-title { display: flex; align-items: center; gap: 8px; }
.kodo-title h3 { 
    margin: 0; 
    color: #D4AF37; 
    font-family: 'Playfair Display', serif; 
    font-size: 18px; 
}
.kodo-status-dot { 
    width: 8px; height: 8px; 
    background-color: #10b981; 
    border-radius: 50%; 
    box-shadow: 0 0 5px #10b981;
}
.kodo-toggle-btn { 
    background: none; border: none; color: #D4AF37; 
    font-size: 18px; cursor: pointer; line-height: 1; 
}

.kodo-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.kodo-body::-webkit-scrollbar { width: 5px; }
.kodo-body::-webkit-scrollbar-thumb { background: #D4AF37; border-radius: 10px; }

.kodo-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
}
.kodo-msg.bot {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}
.kodo-msg.user {
    background: #D4AF37;
    color: #000;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    font-weight: 500;
}

.kodo-input-area {
    padding: 12px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    gap: 8px;
}
.kodo-input-area input {
    flex: 1;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
}
.kodo-input-area input::placeholder { color: #aaa; }
.kodo-input-area input:focus { outline: none; border-color: #D4AF37; }
.kodo-input-area button {
    padding: 0 16px;
    background: #D4AF37;
    color: #000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}
.kodo-input-area button:hover { background: #fff; }
/* PREMIUM LIST LAYOUT - 4 COLUMN GRID */
.nav-list-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Forces 4 columns side-by-side */
    gap: 24px;
    text-align: left;
    margin-top: 10px;
}

/* Responsive fallback for tablet */
@media (max-width: 1024px) {
    .nav-list-container {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid on tablet */
    }
}

/* Responsive fallback for mobile */
@media (max-width: 600px) {
    .nav-list-container {
        grid-template-columns: 1fr; /* Stacks vertically on small screens */
    }
}