
:root {
    --accent-color: rgba(252, 164, 43);
    --accent-color-light: rgba(253, 182, 85);
}

body {
    font-family: "Poppins", sans-serif;
    background-color: #f5f5f5; /*testing*/
    text-align: center;
    margin: 0;
    align-items: center;
    padding-top: 48px;
}
.side-menu .menu-toggle {
    background: none;
    border: none;
    color: #61605f;
    font-size: 1.5rem;
    margin: 10px;
    cursor: pointer;
}

.side-menu .menu-items {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.side-menu a, .side-menu button.logout-button {
    color: #61605f;
    padding: 10px 15px;
    text-decoration: none;
    font-size: 1rem;
    border: none;
    background: none;
    text-align: left;
}

.side-menu a:hover, .side-menu button.logout-button:hover {
    background: rgba(255, 255, 255, 0.1);
}  


.class-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, 350px); /* changed from auto-fit, minmax(300px, 1fr)*/
    justify-content: center; /*added this line*/
    gap: 20px;
    padding: 20px 0;
}

.class-card {
    background-color: #fff; /*changed color to grey */
    border-radius: 8px;
    box-shadow:  0 6px 12px rgba(0,0,0,0.25); /*added stronger shadow*/ /* changed from 0 2px 4px rgba(0, 0, 0, 0.1)*/
    position: relative; /* for positioning icons */;
    padding: 20px;
    transition: transform 0.2s;
    text-align: center;
    width: 350px; /* Fixed sizing starting here and lines below */
    height: 300px;
    display:flex;
    flex-direction: column;
    justify-content: flex-start; /* changed from space-bewteen*/
    gap: 15px; /* added gap between elements */
}
/*added so that i can change text color of h1 in class card*/
.class-card h1 {
    color: #120900; /* or any color you want */
    font-size: 2.2 rem; /* adjust to your liking */
    margin-bottom: 8px; /* adds spacing */
    /* optional: subtle depth effect */
    text-align: left;
}
/* added so that header and button are aligned */
.class-card-header {
    display: flex;                  /* align children in a row */
    justify-content: space-between; /* title left, button right */
    align-items: center;            /* vertically center them */
    margin-bottom: 10px;            /* spacing under header */
}
.class-card-title {
    display: flex;
    flex-direction: column;  /* stacks title above button */
    align-items: flex-start; /* aligns button to the left */
    margin-bottom: 10px;     /* optional spacing below */
}
/*adding some details for the play and pause buttons*/
/* Icon buttons for run/stop */
.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 10px;
    font-size: 20px;       /* size of the icon */
    color: #555;           /* icon color */
    transition: color 0.2s;
}

.icon-btn:hover {
    color: var(--accent-color);   /* match your theme */
}

.icon-btn i {
    pointer-events: none; /* make icon clicks count as button clicks */
}


.student-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.student-card {
    background-color: #fff; /*changed color to grey */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.2s;
    text-align: center;
}

.student-card h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.student-card h5 {
    margin-top: 16px;
    font-size: 1rem;
    color: #555;
}


.button, button{
    background-color: var(--accent-color);
    color: rgb(227, 221, 110); /*testing*/
    border: none;
    padding: 7px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-block;

}

button:hover , .button:hover, .navbar-links a {
    background-color: var(--accent-color-light);
}
/* Style only the "View Class Page" button inside class cards */
.class-card .button {
    background-color: #2DB0F4;
    color: white;
    border-radius: 8px;
    padding: 8px 16px;
    width: auto;
    display: inline-block;
    margin-top: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.class-card .button:hover {
    background-color: #45a049;
    transform: translateY(-3px);
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.file-card {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
    justify-content: center;
    
}

.file-icon {
    font-size: 32px;
    margin-right: 16px;

}

.file-info {
    flex-grow: 1;
}

.file-name {
    font-weight: 600;
    margin: 0;
}

.upload-date {
    color: #666;
    font-size: 0.9rem;
    margin: 4px 0;
}
/*adding this section for icons in class cards*/
.card-icons {
    position: absolute;
    bottom: 10px;
    right: 20px;
    display: flex;
    gap: 25px;
    font-size: 1.8rem;
    color: #7a7977 /* accent color */
}
.download-link {
    display: inline-block;
    margin-top: 4px;
    background-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    color: white;
    padding: 5px 10px;
    font-size: 0.85rem;
    border-radius: 4px;
    text-decoration: none;
}

.download-link:hover {
    background-color: var(--accent-color-light);
}

.file-section, .upload-section {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 16px; /*changed from 24*/
    margin-top: 16px; /*changed from 24*/
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  }

.upload-block input[type="file"]{
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem
}

.question-block {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.question-block input[type="text"]{
  width: 100%;
  height: 400px;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
  margin-bottom: 12px;
}

.ai-feedback {
    margin-top: 10px;
    background-color: #f2f2f2;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #333;
}

.assignment-card{
    background-color: #ffffff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.response-card{
    background-color: #ffffff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.select2-container {
    width: 75% !important;
}
  
  
.content {
    display: none;
}

.collapsible{
    margin-bottom: 10px;
}


.feed-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.collapsible-card {
    margin-bottom: 24px;
    padding: 0 20px;
}

.content {
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 20px;
}

a {
    text-decoration: none;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    transition: box-shadow 0.3s ease, transform 0.3s ease; /*smooth transition*/
}

.navbar-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
    
}

.navbar-links a{
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 7px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-block;
    align-items: center;
    
}

/* Hover effects for all navbar links and buttons */
.navbar a:hover,
.navbar button:hover,
.navbar-links a:hover,
.logout-button:hover {
    background-color: var(--accent-color-light);
    color: #000; /* makes text darker on hover */
    transform: translateY(-2px); /* slight lift effect */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* stronger shadow */
    transition: all 0.3s ease;
}
/*specific style for view class button*/
.view-class-btn {
    display: inline-block;
    margin-top: 8px;
    background-color: #ff9800;
    color: white;
    padding: 4px 8px;       /* smaller padding = smaller button */
    font-size: 0.85rem;     /* smaller text */
    border-radius: 5px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-class-btn:hover {
    background-color: #ffc366;
    transform: translateY(-2px);
}


.logout-button {
    background: none;
    border: none;
    background-color: var(--accent-color);
    color: white;
    font: inherit;
    cursor: pointer;
    padding: 0.5rem 1rem;
    text-decoration: none;
    margin-left: auto; /*added this*/

}

.editor-container body , #editor-container .body {
    color: black;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: sans-serif;
 }
 /* changing up the control bar. 
 .controls, #controls {
    padding: 10px;
    background: #E5E6E4;
    border-bottom: 1px solid;
 }
    */
 #controls {
    background: #ffffff !important;
}

 
#main, .main {
    flex: 1;
    display: flex;
    flex-direction: row;
    overflow: hidden;
 }
 
 /* Make the editor area a positioned container */
#main {
    position: relative;
}

/* Floating run/stop controls */
#editor-controls {
    position: absolute;
    top: 10px;     /* small offset inside the editor */
    left: 10px;    /* aligns with the editor's left edge */
    display: flex;
    gap: 10px;
    z-index: 9999;
}


/* Icon-only buttons (no background, no box) */
.icon-btn {
    background: none !important;   /* removes ALL background */
    border: none !important;       /* removes outline box */
    box-shadow: none !important;   /* removes subtle shadows */
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-size: 22px;               /* icon size */
    color: #444;                   /* icon color */
}

.icon-btn:focus {
    outline: none !important;      /* removes dotted focus outline */
}


#editor, .editor {
    flex: 1;
    min-width: 0;
    border-right: 1px solid #444;
    text-align: left;
    position: relative;   /* ← add this */
}

 #console, .console {
    width: 40%;
    background: #111;
    color: white;
    padding: 10px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-wrap;
    text-align: left;
 }
 
#userInput, .userInput{
    background-color: #111;
    border: none;
    color: white;
    text-decoration: none;
}
 
#graphics-container.hidden, .graphics-container.hidden {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
}
.assignment-context {
    background: #fff7e6;
    border: 1px solid #ffd18b;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
}


/* ===== Light File Sidebar ===== */
/*
.side-menu{
  background: #ffffff;
  border-right: 1px solid rgba(0,0,0,0.08);
  box-shadow: 4px 0 12px rgba(0,0,0,0.04);
  padding: 12px 8px;
}

.side-menu .menu-toggle{
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
  color: #444;
  cursor: pointer;
}

.side-menu .menu-toggle:hover{
  background: rgba(0,0,0,0.06);
}
*/

.side-menu{
  position: fixed;
  left: 0; top: 0;
  width: 140px;
  height: 100vh;
  z-index: 2000;
}

.page-bubble {
    position: fixed;
    top: calc(56px + 4vh);
    right: 4vh;
    bottom: 4vh;
    left: 140px;
  
    padding: 32px;
    background: #fff;
    border-radius: 18px;
    z-index: 1000;
  }  

/* Menu content */
.side-menu .menu-items{
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 70px);
}

/* File list container */
.files-list{
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Scrollbar */
.files-list::-webkit-scrollbar{
  width: 8px;
}
.files-list::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,0.15);
  border-radius: 999px;
}

/* Individual file */
.file-item{
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #333;
  font-size: 0.95rem;
  transition: background 0.15s ease,
              border-color 0.15s ease,
              transform 0.12s ease;
}

/* File icon */
.file-item i{
  color: rgba(0,0,0,0.45);
  width: 18px;
  text-align: center;
}

/* Hover */
.file-item:hover{
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.10);
  transform: translateY(-1px);
}

/* Active file */
.file-item.active{
  background: rgba(252,164,43,0.16);
  border-color: rgba(252,164,43,0.45);
}

.file-item.active i{
  color: rgba(252,164,43,0.95);
}

/* Empty state */
.files-empty{
  color: rgba(0,0,0,0.55);
  font-size: 0.9rem;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0,0,0,0.03);
  border: 1px dashed rgba(0,0,0,0.15);
}
/* =========================
   Top Navigation (Right-Aligned)
========================= */

.top-nav {
    position: fixed;
    top: 0;
    left: 140px; /* after sidebar */
    right: 0;
    height: 56px;
  
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 24px;
  
    z-index: 1500;
  }
  
  .top-nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  
  /* Nav links */
  .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
  }
  
  .nav-link:hover {
    background: rgba(0,0,0,0.05);
  }
  
  /* Active page */
  .nav-link.active {
    background: rgba(252,164,43,0.18);
    color: #000;
  }
  
  /* Divider between nav and user info */
  .nav-divider {
    width: 1px;
    height: 22px;
    background: rgba(0,0,0,0.12);
    margin: 0 4px;
  }
  
  /* User name */
  .user-name {
    font-size: 0.85rem;
    color: rgba(0,0,0,0.65);
    white-space: nowrap;
  }
  
  /* Logout button */
  .nav-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 6px 14px;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: background 0.2s ease, transform 0.15s ease;
  }
  
  .nav-btn:hover {
    background-color: var(--accent-color-light);
    transform: translateY(-1px);
  }
  