@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');

:root {
  --max-width: 1100px;
  --sidebar-width: 40px;
  --header-height: 44px;
  --border-radius: 12px;
  --font-mono: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono",
    "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro",
    "Fira Mono", "Droid Sans Mono", "Courier New", monospace;

  --foreground-rgb: 0, 0, 0;
  /* --background-start-rgb: 214, 219, 220; */
  --background-end-rgb: 255, 255, 255;

  --primary-glow: conic-gradient(from 180deg at 50% 50%,
      #16abff33 0deg,
      #0885ff33 55deg,
      #54d6ff33 120deg,
      #0071ff33 160deg,
      transparent 360deg);
  --secondary-glow: radial-gradient(rgba(255, 255, 255, 1),
      rgba(255, 255, 255, 0));

  --tile-start-rgb: 239, 245, 249;
  --tile-end-rgb: 228, 232, 233;
  --tile-border: conic-gradient(#00000080,
      #00000040,
      #00000030,
      #00000020,
      #00000010,
      #00000010,
      #00000080);

  --callout-rgb: 238, 240, 241;
  --callout-border-rgb: 172, 175, 176;
  --card-rgb: 180, 185, 188;
  --card-border-rgb: 131, 134, 135;
  --font-fredoka: 'Fredoka One', cursive;
}

@media (prefers-color-scheme: dark) {
  :root {
    --foreground-rgb: 255, 255, 255;
    --background-start-rgb: 0, 0, 0;
    --background-end-rgb: 0, 0, 0;

    --primary-glow: radial-gradient(rgba(1, 65, 255, 0.4), rgba(1, 65, 255, 0));
    --secondary-glow: linear-gradient(to bottom right,
        rgba(1, 65, 255, 0),
        rgba(1, 65, 255, 0),
        rgba(1, 65, 255, 0.3));

    --tile-start-rgb: 2, 13, 46;
    --tile-end-rgb: 2, 5, 19;
    --tile-border: conic-gradient(#ffffff80,
        #ffffff40,
        #ffffff30,
        #ffffff20,
        #ffffff10,
        #ffffff10,
        #ffffff80);

    --callout-rgb: 20, 20, 20;
    --callout-border-rgb: 108, 108, 108;
    --card-rgb: 100, 100, 100;
    --card-border-rgb: 200, 200, 200;
  }
}

/* html, body,  
* {  
  font-family: var(--font-fredoka) !important;  
  font-weight: 100 !important;
} */

/* 1) Full-page background behind everything */

/* iSTAR Logo rgbs
Dark Blue
background-color: rgba(0,81,185);
Red 
background-color: rgba(232,2,13);
*/

.dashboard-container {
  display: flex;
  height: 100vh;
  background: 
  linear-gradient(
    rgba(0,0,0,0.25),
    rgba(0,0,0,0.15)
  ),
  url('/images/white-background.png')
  center/cover no-repeat fixed;
}
  
.sidebar {
  width: 220px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid white;
}

@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
  .sidebar {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background-color: rgba(0,81,185,0.5);
  }
}
  
.logo-container {
  text-align: center;
  padding: 25px;
  background-color: #a8a8a8;
  background-color: rgb(240, 240, 240);
  margin: 3px 3px 3px 5px;
  border-bottom: none;
  box-shadow: rgba(232,2,13, 0.7) 0px 13px 27px -5px, rgba(232,2,13, 0.5) 0px 8px 16px -8px;
}
  
.logo {
  height: 90px;
  width: 150px;
}
  
.nav-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 75%;
  padding: 15px;
  margin: 0 auto;
  border-radius: 8px;
  color: #fff !important;
  font-size: 14px;
  text-align: left;
  transition: background 0.2s;
  text-decoration: none !important;
  cursor: pointer;
}

.nav-button.active {
  background-color: rgba(255, 255, 255, 0.2) !important;
}

.nav-menu a{
  text-decoration: none !important;
}

.nav-icon {
  min-height: 16px;
  min-width: 16px;
}

.nav-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.notifications-panel {
  width: 400px !important; 
  background-color:#eee;
  background: 
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3)),
    url('/images/notification-panel-background.png') 
    center/cover no-repeat;
}

.notification-panel-heading {
  color: white;
}

.announcement-block {
  padding: 12px;
  margin-bottom: 10px;
  background: #f8f9fade;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  overflow: hidden;
}

.announcement-block:hover {
  background: #e9ecef;
}

.announcement-block .ann-header {
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.announcement-block p {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-button.logout {
  margin-bottom: 10px;
}

.footer {
  text-align: center;
  font-size: 10px;
  color: #fff;
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.sidebar-folder {
  position: relative;
  width: 100%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  clip-path: polygon(
    0% 20%, 40% 20%, 45% 0%, 55% 0%, 60% 20%,
    100% 20%, 100% 100%, 0% 100%
  );
  transition: all 0.3s ease;
  color: #fff;
}

.expandable-card.expanded {
  clip-path: polygon(
    0%   20px,
    40%  20px,
    45%   0%,
    55%   0%,
    60%  20px,
    100% 20px,
    100% 100%,
    0%  100%
  );
  padding: 20px 0;
}

/* Specific expanded height for chatbot */
#expandable-card-chatbot.expanded {
  height: 400px;
  background-color: rgb(35, 68, 105);
}

#expandable-card-manage-students.expanded {
  height: 230px;
  background-color: rgb(205, 50, 58);
}

#expandable-card-manage-instructors.expanded {
  height: 170px;
  background-color: rgb(205, 50, 58);
}

#expandable-card-manage-families.expanded {
  height: 230px;
  background-color: rgb(205, 50, 58);
}

.expandable-card.expanded .cutout-arrow {
  top: 0;
}

.collapsed-view {
  display: flex;
  text-align: center;   
}

.cutout-arrow {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  border-radius: 2px;
}

.manage-text {
  margin-top: 10px;
  font-size: 14px;
  color: #fff;
  width: 100%;           
}

.chatbot-card-container {
  margin-bottom: -30px;
  z-index: 1;
  position: relative;
}

.chatbot-card {
  height: 70px;
  background-color: rgb(35, 68, 105);
}

.manage-card {
  height: 60px;
  background-color: rgb(205, 50, 58);
}

.expandable-card-container.manage {
  z-index: 2;
  position: relative;
}

.expandable-card-container.chatbot {
  z-index: 2;
  margin-bottom: -24px;
  position: relative;
}

.expanded-buttons {
  display: flex;
  flex-direction: column;
}

.expanded-buttons .nav-button {
  display: flex;
  align-items: center;
  width: 150px;
  text-align: left;
  color: #fff !important;
}

.chatbox-area {
  display: flex;
  flex-direction: column;
  padding: 10px;
  height: 100%;
  gap: 8px;
  background-color: #1e1e1e;
  border-radius: 6px;
}

.chat-history {
  flex: 1;
  overflow-y: auto;
  background: #2e2e2e;
  padding: 6px;
  border-radius: 4px;
  color: white;
  font-size: 12px;
}

.chat-message {
  margin-bottom: 6px;
}

.chat-input {
  border: none;
  border-radius: 4px;
  padding: 6px;
  font-size: 12px;
}

.audio-control-section {
  width: 100%;
  display: flex;
  justify-content: center;
}

.audio-control-button {
  color: white;
  background-color: transparent;
  border-radius: 7px;
  border: 1px Solid white;
  padding: 7px 10px;
  margin: 2px 5px;
  cursor: pointer;
}

.audio-control-button:hover {
  border: 1px Solid white;
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: white;
}

.nav-buttons-tab {
  width: 100%;
  background-color: rgb(35, 68, 105);
  padding: 5px;
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

.dash {
  height: 2px;
  width: 95%;
  background-color: white;
  margin: 16px auto;
  border: none;
}

.dash-activity {
  height: 2px;
  width: 100%;
  background-color: white;
  margin: 20px auto;
  border: none;
}