/* ========================== */
/* 🌍 GLOBAL STYLES */
/* ========================== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    overflow: hidden; /* Prevent full-page scrolling */
    display: flex;
    flex-direction: column;
}

/* ========================== */
/* 🎯 TOP BANNER */
/* ========================== */
#top-banner {
    height: 30px;
    background-color: #2c3e50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

/* ✅ Styled Login Button (Left Side) */
#login-button {
    position: absolute;
    left: 15px; /* Align to the left */
    background: #f39c12; /* Orange button */
    border: none;
    color: white;
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* ✅ Button Hover Effect */
#login-button:hover {
    background: #e67e22; /* Darker orange */
}

/* ✅ Scrollable content below the fixed banner */
#content-container {
    margin-top: 60px; /* Prevents content from being hidden under banner */
    padding: 20px 30px; /* Adds space on left & right */
    height: calc(100vh - 60px);
    overflow-y: auto;
    background: #f8f9fa;
    max-width: 900px;  /* Optional: Prevent content from stretching too wide */
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px; /* Optional: Adds a soft edge look */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Optional: Light shadow for aesthetics */
}


#app-title {
    font-size: 20px;  /* ✅ Adjust as needed */
    font-weight: bold;
    text-align: center;
    color: white;
    margin: 0;
    padding: 5px;
    flex-grow: 1; /* Makes the title take up remaining space */

}

/* ========================== */
/* 💬 CHAT CONTAINER (FULL HEIGHT) */
/* ========================== */
#chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 50px); /* Fill screen minus banner */
    width: 100%;
    position: fixed;
    top: 50px;
    bottom: 0;
    overflow: hidden;
}

/* ========================== */
/* 📨 CHATBOX (SCROLLABLE) */
/* ========================== */
#chat-box {
    flex-grow: 1;
    padding: 15px;
    border: 2px solid #3498db;
    border-radius: 10px;
    background-color: white;
    overflow-y: auto; /* Enable scrolling */
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;

    /* 🛠 Prevent last messages from being covered */
    padding-bottom: 80px; /* Same height as message box */
}

/* Chat messages: User & Bot */
.user-message {
    text-align: right;
    background-color: #e0f7fa;
    padding: 10px;
    margin: 5px 0;
    border-radius: 10px;
    max-width: 70%;
    margin-left: auto;
    border: 1px solid #2ecc71;
    word-wrap: break-word;

    /* 🔹 FONT STYLING */
    font-size: 12px; /* Set font size */
    font-family: 'Arial', sans-serif; /* Use clean, readable font */
    font-weight: 500; /* Slightly bold for better readability */
    color: #2c3e50; /* Darker text for contrast */
}

.bot-reply {
    text-align: left;
    background-color: #f4f4f4;
    padding: 5px;
    margin: 5px 0;
    border-radius: 10px;
    max-width: 70%;
    margin-right: auto;
    border: 1px solid #3498db;
    word-wrap: break-word;

    /* 🔹 FONT STYLING */
    font-size: 12px; /* Ensure consistency with user messages */
    font-family: 'Arial', sans-serif; /* Same font as user */
    font-weight: 400; /* Normal weight for bot responses */
    color: #333; /* Slightly darker for contrast */

}

/* ✅ Reduce indentation for unordered lists inside the chatbot */
.bot-reply ul {
    margin-left: 2px;  /* ✅ Reduce left margin */
    padding-left: 5px; /* ✅ Reduce padding */
    list-style-position: inside; /* ✅ Keeps bullets closer to text */
}

.bot-reply li {
    margin-bottom: 2px; /* ✅ Adjust spacing between list items */
}

/* ========================== */
/* 📩 MESSAGE BOX (ALWAYS VISIBLE) */
/* ========================== */
#message-box-section {
    height: 70px;
    padding: 10px;
    border-top: 2px solid #3498db;
    background-color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 10;
}

#message-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ✅ Topic Entry Box */
.topic-entry {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
}

/* ✅ Toggle Button */
.toggle-btn {
    font-size: 12px;
    padding: 5px 8px;
    margin-bottom: 5px;
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

.toggle-btn:hover {
    background-color: #ddd;
}

/* ✅ Hidden Section for Topic Details */
.topic-details {
    display: none;
    margin-top: 10px;
    padding-left: 10px;
    border-left: 2px solid #ccc;
}

/* ✅ Form Container */
.topic-form {
    font-size: 12px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    margin-bottom: 10px;
}

/* ✅ Text Area for System Prompt */
.small-textarea {
    width: 100%;
    padding: 5px;
    font-size: 12px;
    border: 1px solid #aaa;
    border-radius: 4px;
}

/* ✅ Score Inputs */
.score-input {
    width: 50px;
    font-size: 10px;
    padding: 3px;
    border: 1px solid #aaa;
    border-radius: 3px;
    text-align: center;
}

/* ✅ Status Dropdown */
.status-dropdown {
    font-size: 10px;
    padding: 3px;
}

/* ✅ Update Button */
.update-btn {
    font-size: 10px;
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.update-btn:hover {
    background-color: #45a049;
}


#user-input {
    flex-grow: 1;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    resize: none;
    box-sizing: border-box;
    width: 100%;
    height: 60px;  /* Shows ~3 lines */
    min-height: 60px;
    max-height: 150px; /* Allow scrolling after ~7 lines */
    overflow-y: auto;
    padding: 10px;
    font-size: 12px;

}

.small-textarea {
    font-size: 10px;  /* Smaller text */
    font-family: Arial, sans-serif;
    width: 100%;
}

#send-btn {
    width: auto;
    min-width: 100px;
    padding: 10px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* ========================== */
/* 🎯 IFAME STYLING (CENTERED & FULL WIDTH) */
/* ========================== */
#app-frame {
    width: 90%;
    height: calc(100vh - 50px); /* Full height minus banner */
    border: none;
    display: block;
    margin: 0 auto;
}

/* ========================== */
/* 📱 MOBILE VIEW FIXES */
/* ========================== */
@media screen and (max-width: 720px) {
    #chat-container {
        height: calc(100vh - 50px); /* Full height minus banner */
    }

    #chat-box {
        height: calc(100vh - 120px); /* Prevent overlap */
    }

    #message-box-section {
        width: 100%;
    }

    #app-frame {
        width: 95%;
    }
    .user-message, .bot-reply {
        font-size: 10px; /* Reduce font size for mobile */
    }
    #app-title {
        font-size: 16px;  /* Smaller for mobile */
    }
}




/* 📌 Style for Collapsible Parent Topics */
.collapsible {
    font-weight: bold;   /* Make parent topics stand out */
    font-size: 12px;     /* Slightly larger font for visibility */
    cursor: pointer;     /* Indicate that it's clickable */
    display: inline-block;
    padding: 5px 8px;
    margin: 2px 0;
    border-radius: 5px;
    transition: background 0.3s ease;
}

/* ▶ Icon before collapsible topics */
.collapsible::before {
    /*content: "▶ ";  // Default collapsed icon */
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* ▼ Icon when expanded */
.collapsible.active::before {
    content: "▼ ";  /* Change to expanded icon */
    transform: rotate(90deg);
}

/* 📌 Ensure parent collapsible has minimal margin */
.collapsible.active {
    margin-bottom: 2px;  /* 🔹 Reduce bottom space when expanded */
}

/* 📌 Style for Leaf Nodes (Clickable Topics) */
.topic-leaf {
    font-size: 10px;  /* Slightly smaller text */
    cursor: pointer;  /* Indicates clickability */
    color: #007bff;  /* Blue text for links */
    padding: 4px 8px;
    border-radius: 3px;
    transition: background 0.3s ease, color 0.3s ease;
}

/* 🖱️ Hover Effect for Leaf Nodes */
.topic-leaf:hover {
    background: #f0f0f0;  /* Light gray background on hover */
    color: #0056b3;  /* Darker blue to indicate interaction */
}

/* 📌 Style for Nested Lists */
.nested {
    list-style-type: none;
    padding-left: 5px;  /* Reduce left margin for better readability */
    margin-top: 2px;
    display: none;  /* ❌ Hide subtopics by default */
}


.topic-name {
    font-weight: normal;
    color: black;
}


#home-button {
    cursor: pointer;  /* ✅ Changes cursor when hovering */
    font-size: 20px;  /* Optional: Adjust size */
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.2s ease-in-out;
}

#home-button:hover {
    background: rgba(0, 0, 0, 0.1);  /* ✅ Adds slight hover effect */
}



/* ✅ Add right margin to applications dropdown */
#applications-dropdown {
    margin-right: 20px; /* Adjust spacing as needed */
    font-size: 10px;  
    padding: 5px 10px; /* Optional: Improve padding */
    border-radius: 5px; /* Optional: Round edges */
}


.selected-radio {
    outline: 2px solid #3498db; /* Blue highlight */
    background-color: #e0f7fa;  /* Light blue background */
    border-radius: 50%; /* Keep circular for radio */
}

/* ✅ Menu Button */
#menu-button {
    font-size: 24px; /* Bigger menu icon */
    cursor: pointer;
    margin-left: 10px;
}

/* ✅ Dropdown Menu */
.menu-dropdown {
    position: absolute;
    top: 50px; /* Below the menu icon */
    left: 10px;
    background: linear-gradient(135deg, #1e3a8a, #2c3e50);
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    width: 150px;
    display: none;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

/* ✅ Show Menu */
.menu-dropdown.visible {
    display: block;
    opacity: 1;
    transform: translateY(0px);
}

/* ✅ Menu Items */
.menu-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-dropdown li {
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 14px;
}

/* ✅ Hover Effect */
.menu-dropdown li:hover {
    background: #f0f0f0;
}

.solution-box {
    display: block;
    background: #eef; /* Default light background */
    padding: 10px;
    border-radius: 5px;
    font-size: 10px;
    color: #333; /* Readable text color */
    margin-top: 5px;
}

/* ✅ Correct answer - light green */
.solution-correct {
    background: #d4edda; /* Light green */
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* ❌ Incorrect answer - light red */
.solution-incorrect {
    background: #f8d7da; /* Light red */
    border: 1px solid #f5c6cb;
    color: #721c24;
}
.skills-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    margin: 20px 0;
    font-size: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }

  .skills-table th {
    background-color: #f4f4f4;
    text-align: left;
    padding: 10px;
    border-bottom: 2px solid #ddd;
    color: #333;
  }

  .skills-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
  }

  .skills-table tr:hover {
    background-color: #f9f9f9;
  }

  .skill-domain {
    font-weight: bold;
    color: #2c3e50;
  }

  .action-task {
    color: #555;
  }

  .index-number {
    font-weight: bold;
    color: #999;
  }

  .status-completed {
    color: green;
    font-weight: bold;
  }

  .status-ongoing {
    color: orange;
    font-weight: bold;
  }