/* General reset for better compatibility */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* General Styles */
body, html {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f9fa;
    color: #333;
      display: flex;
  flex-direction: column;
}

body.index-page, html.index-page {
    overflow: hidden;
}

/* Modern Theme Container */
body.modern-theme {
    background-color: #f5f7fb;
}

/* Headings */
h1, h2 {
    color: #2D3A45;
    text-align: center;
    font-weight: 600;
}

h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

h1 i,
h2 i {
    margin-right: 8px;
}

/* Paragraphs */
p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Dashboard Header */
/* Dashboard Header */
.dashboard-header {
    background-color: #ffffff;
    padding: 10px; /* Reduced padding */
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    display: flex;
  align-items: center;
  padding: 0.5rem 1rem; /* some spacing */
}

/* Heading Styles */
.dashboard-header h1,
.dashboard-header h2 {
    margin: 0; /* Remove default margins */
    font-size: 1.5rem; /* Adjust as needed */
    line-height: 1.2;
    flex: 1;
  text-align: center;
}

@media (max-width: 768px) {
    .dashboard-header {
        padding: 5px 10px; /* Further reduced padding */
    }

    .dashboard-header h1,
    .dashboard-header h2 {
        font-size: 1.25rem; /* Reduced font size */
    }
}

.dashboard-container {
    width: 100%;
    height: 100vh; /* Fill the viewport height */
    display: flex;
    flex-direction: column;
}

/* Team Grid */
#main-dashboard .team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

#main-dashboard .team-member {
    text-align: center;
    margin: 15px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

#main-dashboard .team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#main-dashboard .team-member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #165A5A;
    padding: 5px;
}

#main-dashboard .team-member p {
    margin-top: 10px;
    color: #333;
    font-size: 16px;
}

.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-badge.online {
    background-color: #28a745;
}

.status-badge.offline {
    background-color: #D86C5B;
}

.status-badge.busy {
    background-color: #ffc107;
}

/* Add Team Member Button */
#main-dashboard .add-member-container {
    flex-shrink: 0;
    min-height: 0;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

#main-dashboard .add-member-container button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Events and Chat Container */
.events-and-chat-container {
    display: flex;
    flex-grow: 1; /* Allows it to take up remaining space */
    overflow: hidden; /* Hide overflow to prevent scrolling */
    gap: 20px;
}

.logout-button {
    background-color: #D86C5B;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
  }


/* Upcoming Events Section */
/* Set flex properties and allow shrinking */
.upcoming-events,
.chat-container,
.saved-conversations {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1 1 0;
    min-height: 0;
    background-color: #ffffff; /* Add this */
    border: 1px solid #e0e0e0; /* Add this */
    border-radius: 12px;       /* Add this */
    padding: 20px;             /* Add this */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); /* Add this */
}

.upcoming-events {
    flex: 1 1 0;
    max-width: 300px;
    text-align: center;
}

.upcoming-events ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.upcoming-events .event-item {
    display: block;
    margin: 10px auto;
}

/* Center align content within event items */
.event-item i,
.event-item span,
.event-item button {
    display: inline-block;
    vertical-align: middle;
    text-align: center;
}

.chat-container {
    flex: 2 1 0; /* Adjust as needed for proportion */
}

.saved-conversations {
    flex: 1 1 0;
    max-width: 300px;
}

.upcoming-events h2,
.saved-conversations h2 {
    color:#165A5A;
    margin-bottom: 15px;
    flex-shrink: 0;
}

#upcoming-events-list {
    flex-grow: 1;
    overflow-y: auto;
    min-height: 0;
}

.event-item {
    position: relative; /* Add this line */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center-align items horizontally */
    padding: 10px 0;
    padding-bottom: 60px; /* Add extra padding at the bottom */
    border-bottom: 1px solid #e0e0e0;
}


.event-item:last-child {
    border-bottom: none;
}

.event-item i {
    color: #165A5A;
    margin-right: 10px;
    font-size: 18px;
}

.event-item span {
    font-size: 14px;
}

.event-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 8px;
    color: #fff;
    margin-top: 5px;
    display: inline-block;
}

.event-status.upcoming {
    background-color: #28a745;
}

.event-status.overdue {
    background-color: #D86C5B;
}

.event-status.completed {
    background-color: #6c757d;
}

/* Added to fix button position */
.upcoming-events button {
    display: block;
    width: 75%;
    margin-top: 10px;
    align-self: center;
    flex-shrink: 0;
}

.schedule-btn {
    background-color: #165A5A;
    color: white; /* Set text color to white */
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* Ensure the icon inherits the text color */
.schedule-btn i {
    color: inherit; /* Inherit the button's text color */
    margin-right: 5px;
}

.schedule-event-btn {
    position: absolute;
    bottom: 10px;             /* Position 10px from the bottom */
    left: 50%;                /* Center horizontally */
    transform: translateX(-50%); /* Adjust for exact centering */
    background-color: #165A5A;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;      /* For proper alignment */
    align-items: center;
    gap: 5px;
}

.schedule-event-btn i {
    color: inherit;
    margin-right: 5px;
}

.schedule-event-btn:hover {
    background-color: #1B6E6E;
    transform: translateX(-50%) translateY(-3px);
}


/* Scrollbar Styling */

/* For Webkit Browsers (Chrome, Safari) */
.chat-box::-webkit-scrollbar,
#saved-conversations-list::-webkit-scrollbar,
#upcoming-events-list::-webkit-scrollbar {
    width: 6px;
}

.chat-box::-webkit-scrollbar-track,
#saved-conversations-list::-webkit-scrollbar-track,
#upcoming-events-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-box::-webkit-scrollbar-thumb,
#saved-conversations-list::-webkit-scrollbar-thumb,
#upcoming-events-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.chat-box::-webkit-scrollbar-thumb:hover,
#saved-conversations-list::-webkit-scrollbar-thumb:hover,
#upcoming-events-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* For Firefox */
.chat-box,
#saved-conversations-list,
#upcoming-events-list {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

/* Chat Container */
.chat-container {
    flex: 3;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.chat-header {
    flex-shrink: 0;
}

.team-member-select-container {
    display: flex;
    flex-direction: row; /* Change from column to row */
    align-items: center; /* Vertically center the items */
    padding: 10px;
    gap: 10px; /* Optional: Add space between label and select */
    flex-shrink: 0;
}

.chat-container label {
    font-weight: 600;
    color: #2D3A45;
}

.team-member-select-container select {
    width: auto; /* Adjust width as needed */
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: 'Montserrat', sans-serif;
}


/* Chat Box and Input */
.chat-box {
    flex-grow: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 15px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.message {
    margin-bottom: 20px;
    word-wrap: break-word;
    line-height: 1.6;
    overflow: hidden;
    padding: 0 35px;
}

.message strong {
    color: #165A5A;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.message span {
    display: block;
    margin-bottom: 10px;
}

.message p {
    margin-bottom: 15px;
}

/* Styles for formatted content in assistant messages */
.message p {
    margin: 10px 0;
    line-height: 1.6;
}

.message ul,
.message ol {
    margin: 10px 0 10px 20px;
    padding: 0;
}

.message li {
    margin-bottom: 5px;
    line-height: 1.6;
}

.message ul {
    list-style-type: disc;
}

.message ol {
    list-style-type: decimal;
}

.message table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.message table,
.message th,
.message td {
    border: 1px solid #ddd;
}

.message th,
.message td {
    padding: 8px;
    text-align: left;
}

.message th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.message tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Chat Input */
.chat-input {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background-color: #ffffff;
}

.chat-input textarea {
    flex: 0 1 60%;
    width: auto;
    max-width: 100%;
    resize: none;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-right: 10px;
    min-height: 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.chat-input button {
    padding: 10px 20px;
    background-color: #165A5A;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    flex: 0 0 auto;
    margin-right: 10px;
}

.chat-input button:last-child {
    margin-right: 0;
}

.chat-input button:hover {
    background-color: #1B6E6E;
}

/* Saved Conversations Section */
.saved-conversations {
    flex: 1 1 22.5%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.saved-conversations h2 {
    flex-shrink: 0;
    margin-bottom: 15px;
}

#saved-conversations-list {
    flex-grow: 1;
    min-height: 0;
    overflow-y: auto;
}

/* Center align content in conversation items */
.conversation-item {
    position: relative; /* Ensures absolute positioning within */
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    padding-bottom: 60px; /* Add extra padding at the bottom */
    border: 1px solid #ccc;
    background-color: #ffffff; /* Optional: Set background color */
    border-radius: 8px;        /* Optional: Add border radius */
}


/* Style for the conversation header */
.conversation-header {
    font-weight: bold;
    cursor: pointer; /* Indicate that it's clickable */
    margin-bottom: 5px;
}

/* Style for the delete button */
.conversation-item .delete-conversation-btn {
    cursor: pointer;
    position: absolute;
    bottom: 10px;             /* Position 10px from the bottom */
    left: 50%;                /* Center horizontally */
    transform: translateX(-50%); /* Adjust for exact centering */
    background-color: #D86C5B;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s, transform 0.3s;
}


/* Ensure the icon within the button inherits the text color */
.delete-conversation-btn i {
    color: inherit;
    margin-right: 5px;
}

.delete-conversation-btn:hover {
    background-color: #BB5649;
    transform: translateX(-50%) translateY(-3px);
}

.conversation-item:hover {
    background-color: #f1f1f1;
}


.conversation-header {
    font-weight: bold;
    margin: 0;
}

.conversation-item:hover {
    background-color: #f1f1f1;
}

.conversation-item .conversation-header {
    margin: 0;
    font-size: 16px;
}

/* Button Styles */
button {
    cursor: pointer;
    padding: 12px 25px;
    background-color: #165A5A;
    color: white;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.3s;
}

button:hover {
    background-color: #1B6E6E;
    transform: translateY(-3px);
}

button:active {
    transform: translateY(0);
}

/* Specific Button Styles */
#save-btn,
#save-session-btn,
#save-review-btn,
#save-kpi-btn,
#save-notes-btn,
#save-profile-picture-btn,
#confirm-save-conversation-btn {
    background-color: #28a745;
}

#save-btn:hover,
#save-session-btn:hover,
#save-review-btn:hover,
#save-kpi-btn:hover,
#save-notes-btn:hover,
#save-profile-picture-btn:hover,
#confirm-save-conversation-btn:hover {
    background-color: #218838;
}

/* Form Inputs */
input[type="text"],
input[type="email"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 5px;
    font-family: 'Montserrat', sans-serif;
}

label {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    color: #2D3A45;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

/* Status Styling */
.status-pass {
    color: green;
    font-weight: bold;
}

.status-fail {
    color: red;
    font-weight: bold;
}

.overdue {
    color: white;
    font-weight: bold;
}

/* Team Member Dashboard Styles */
#team-member-dashboard .grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
}

@media (max-width: 768px) {
    #team-member-dashboard .grid-container {
        grid-template-columns: 1fr;
    }
}

/* Profile Section */
#team-member-dashboard .profile-section {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

/* Profile Details */
#team-member-dashboard .profile-details {
    flex: 1 1 auto;
    margin-right: 20px;
}

#team-member-dashboard .profile-details label {
    margin-top: 10px;
    font-weight: 600;
    color: #2D3A45;
    display: block;
}

#team-member-dashboard .profile-details input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 5px;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

/* Profile Picture Section */
#team-member-dashboard .profile-picture-section {
    flex: 0 0 150px;
    text-align: center;
}

#team-member-dashboard .profile-picture-section img {
    width: 100%;
    max-width: 120px;
    height: auto;
    border-radius: 50%;
    border: 2px solid #165A5A;
    padding: 5px;
}

#team-member-dashboard .profile-picture-section button {
    margin-top: 10px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 1-2-1 and Annual Review Sections */
#team-member-dashboard .section-121,
#team-member-dashboard .annual-review-section,
#team-member-dashboard .performance-section {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

/* Session and Review Items with Increased Specificity */
#team-member-dashboard .section-121 #sessions-121-list .session-item,
#team-member-dashboard .annual-review-section #annual-reviews-list .review-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

#team-member-dashboard .section-121 #sessions-121-list .session-item:hover,
#team-member-dashboard .annual-review-section #annual-reviews-list .review-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: #f9f9f9;
}

#team-member-dashboard .section-121 #sessions-121-list .session-item p,
#team-member-dashboard .annual-review-section #annual-reviews-list .review-item p {
    margin: 0;
    font-size: 16px;
    color: #333;
}

#team-member-dashboard .section-121 #sessions-121-list .view-session-btn,
#team-member-dashboard .annual-review-section #annual-reviews-list .view-review-btn {
    padding: 8px 16px;
    background-color: #165A5A;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#team-member-dashboard .section-121 #sessions-121-list .view-session-btn:hover,
#team-member-dashboard .annual-review-section #annual-reviews-list .view-review-btn:hover {
    background-color: #1B6E6E;
}

/* Performance Container */
#team-member-dashboard .performance-container {
    display: flex;
    justify-content: space-between;
}

@media (max-width: 768px) {
    #team-member-dashboard .performance-container {
        flex-direction: column;
    }
}

/* Performance Box */
#team-member-dashboard .performance-box {
    width: 48%;
    padding: 20px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (max-width: 768px) {
    #team-member-dashboard .performance-box {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Form Buttons */
#launch-121-btn,
#view-all-121-btn,
#launch-annual-review-btn,
#view-all-annual-reviews-btn,
#performance-btn,
#notes-btn {
    background-color: #165A5A;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 10px 15px;
    transition: background-color 0.3s;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#launch-121-btn:hover,
#view-all-121-btn:hover,
#launch-annual-review-btn:hover,
#view-all-annual-reviews-btn:hover,
#performance-btn:hover,
#notes-btn:hover {
    background-color: #1B6E6E;
}

/* Center align the action buttons */
.action-buttons {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* Existing styles for buttons */
.action-buttons button {
    padding: 10px 20px;
    background-color: #165A5A;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-buttons button:hover {
    background-color: #1B6E6E;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .action-buttons button {
        margin-bottom: 10px;
    }
}

/* Target both session-card and session-item */
.session-card,
.session-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.session-card:hover,
.session-item:hover,
.review-card:hover,
.review-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: #f9f9f9;
}

.review-card,
.review-item {
    /* Same styles as session-card/session-item */
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.review-card:hover,
.review-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: #f9f9f9;
}

/* Ensure status-label styles are applied correctly */
.status-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    color: #fff;
    margin-top: 10px;
}

.status-label.completed {
    background-color: #28a745;
}

.status-label.pending {
    background-color: #ffc107;
}

.status-label.overdue {
    background-color: #D86C5B;
}

/* Ensure buttons have consistent styles */
.view-session-btn,
.view-review-btn {
    padding: 10px 20px;
    background-color: #28a745;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-session-btn:hover,
.view-review-btn:hover {
    background-color: #218838;
}


/* Status Labels */
.status-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    color: #fff;
    margin-top: 10px;
}

.status-label.completed {
    background-color: #28a745;
}

.status-label.pending {
    background-color: #ffc107;
}

.status-label.overdue {
    background-color: #D86C5B;
}

/* Styles for Danger Buttons */
.action-buttons button.danger-button {
    background-color: #D86C5B;
}

.action-buttons button.danger-button:hover {
    background-color: #1B6E6E;
}

/* 1-2-1 Session Page Styles */
#one-to-one-page .dashboard-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

#one-to-one-page .dashboard-header h1 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #165A5A;
}

#one-to-one-page .section-121-detail {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

#one-to-one-page .form-group {
    margin-bottom: 20px;
}

#one-to-one-page .form-group label {
    display: block;
    font-weight: 600;
    color: #2D3A45;
    margin-bottom: 5px;
}

#one-to-one-page .form-group label i {
    margin-right: 8px;
    color: #165A5A;
}

#one-to-one-page .form-group input[type="date"],
#one-to-one-page .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

#one-to-one-page .form-group input[type="checkbox"] {
    margin-left: 5px;
    transform: scale(1.2);
}

/* Action Buttons specific to 1-2-1 page */
#one-to-one-page .action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

#one-to-one-page .action-buttons button {
    padding: 10px 20px;
    background-color: #165A5A;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#one-to-one-page .action-buttons button:hover {
    background-color: #1B6E6E;
}

/* Cancel Button Style */
#one-to-one-page #cancel-btn {
    background-color: #6c757d;
}

#one-to-one-page #cancel-btn:hover {
    background-color: #5a6268;
}

/* Performance Review Page Styles */
#performance-review-page .dashboard-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

#performance-review-page .dashboard-header h1 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #165A5A;
}

#performance-review-page .section-annual-review-detail {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

#performance-review-page .form-group {
    margin-bottom: 20px;
}

#performance-review-page .form-group label {
    display: block;
    font-weight: 600;
    color: #2D3A45;
    margin-bottom: 5px;
}

#performance-review-page .form-group label i {
    margin-right: 8px;
    color: #165A5A;
}

#performance-review-page .form-group input[type="date"],
#performance-review-page .form-group input[type="number"],
#performance-review-page .form-group textarea,
#performance-review-page .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

#performance-review-page .form-group input[type="checkbox"] {
    margin-left: 5px;
    transform: scale(1.2);
}

#performance-review-page .form-group input[type="number"] {
    max-width: 100px;
}

#performance-review-page .action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

#performance-review-page .action-buttons button {
    padding: 10px 20px;
    background-color: #165A5A;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#performance-review-page .action-buttons button:hover {
    background-color: #1B6E6E;
}

#performance-review-page #cancel-btn {
    background-color: #6c757d;
}

#performance-review-page #cancel-btn:hover {
    background-color: #5a6268;
}

/* Table Container */
.table-container {
    overflow-x: auto;
}

/* KPI and Performance Records Table Styles */
.kpi-table,
.performance-records-table {
    max-width: 1500px;
    margin: 20px auto;
    width: 90%;
    min-width: 600px;
    border-collapse: collapse;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.kpi-table th,
.kpi-table td,
.performance-records-table th,
.performance-records-table td {
    border: 1px solid #dee2e6;
    padding: 12px 15px;
    text-align: left;
    vertical-align: middle;
    font-size: 14px;
}

.kpi-table th,
.performance-records-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.kpi-table tr:nth-child(even),
.performance-records-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.kpi-table tr:hover,
.performance-records-table tr:hover {
    background-color: #e9ecef;
}

/* Action Buttons within Tables */
.kpi-table td button,
.performance-records-table td button {
    margin-right: 5px;
}

.kpi-table td button:last-child,
.performance-records-table td button:last-child {
    margin-right: 0;
}

/* Edit KPI Button */
.edit-kpi-btn {
    background-color: #165A5A;
}

.edit-kpi-btn:hover {
    background-color: #1B6E6E;
    transform: translateY(-3px);
}

/* Delete KPI Button */
.delete-kpi-btn {
    background-color: #D86C5B;
}

.delete-kpi-btn:hover {
    background-color: #BB5649;
    transform: translateY(-3px);
}

/* Edit Performance Record Button */
.edit-performance-record-btn {
    background-color: #165A5A;
}

.edit-performance-record-btn:hover {
    background-color: #1B6E6E;
    transform: translateY(-3px);
}

/* Delete Performance Record Button */
.delete-performance-record-btn {
    background-color: #D86C5B;
}

.delete-performance-record-btn:hover {
    background-color: #BB5649;
    transform: translateY(-3px);
}

/* Back Button Container */
.back-button {
    text-align: center;
    margin: 30px 0;
}

/* Team Member Dashboard Button */
.dashboard-button {
    padding: 12px 25px;
    background-color: #165A5A;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 14px;
}

.dashboard-button i {
    font-size: 16px;
}

.dashboard-button:hover {
    background-color: #1B6E6E;
    transform: translateY(-3px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    max-width: 800px; /* Increased width */
    width: 90%; /* Ensures responsiveness */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}


.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.modal h2 {
    margin-bottom: 20px;
    color: #165A5A;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2D3A45;
    margin-bottom: 5px;
}

.form-group label i {
    margin-right: 8px;
    color: #165A5A;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
    font-size: 14px;
}

.form-group input[type="checkbox"] {
    margin-left: 5px;
    transform: scale(1.2);
}

.save-button {
    background-color: #28a745;
    padding: 10px 20px;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 14px;
}

.save-button i {
    font-size: 16px;
}

.save-button:hover {
    background-color: #1B6E6E;
    transform: translateY(-3px);
}

/* Status Styling */
.status-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    color: #fff;
    margin-top: 10px;
}

.status-label.completed {
    background-color: #28a745;
}

.status-label.pending {
    background-color: #ffc107;
}

.status-label.overdue {
    background-color: #D86C5B;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 10px;
    }

    .section-container {
        padding: 15px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .action-button {
        width: 100%;
        justify-content: center;
    }

    .kpi-table,
    .performance-records-table {
        width: 100%;
        min-width: 0;
    }

    .dashboard-button {
        width: 100%;
        justify-content: center;
    }

    .form-group input[type="number"] {
        max-width: 100%;
    }
}

/* Additional Styles to Ensure Consistency */

/* Ensure all buttons have consistent font-size and alignment */
button {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

/* Adjust icon sizes for better alignment */
button i,
h1 i,
h2 i,
.modal h2 i,
.save-button i,
.dashboard-button i {
    font-size: 16px;
}

/* Center the back button on all screen sizes */
.back-button {
    text-align: center;
    margin: 30px 0;
}

/* 1. Center the Add KPI and Record KPI buttons within section-header */
.button-center {
    display: flex;
    justify-content: center;
    margin-top: 10px; /* Adds space between the header and the button */
}

.button-center .action-button {
    width: auto; /* Allows the button to adjust its width based on content */
    padding: 10px 20px; /* Optional: Adjust padding for better appearance */
}

/* Style the Edit and Delete buttons for consistency */
.performance-records-table td:last-child button {
    display: inline-flex;       /* Enables flex layout for alignment */
    align-items: center;        /* Vertically centers the icon and text */
    gap: 5px;                    /* Adds space between the icon and text */
    margin: 0 5px;               /* Adds horizontal spacing between buttons */
    padding: 8px 16px;           /* Adjusts padding for better appearance */
    font-size: 14px;             /* Ensures consistent font size */
}

/* Optional: Set consistent icon sizes within these buttons */
.performance-records-table td:last-child button i {
    font-size: 16px; /* Ensures icons are uniformly sized */
}

/* Ensure danger-button doesn't override flex properties */
.danger-button {
    display: inline-flex !important;  /* Overrides any conflicting display properties */
    align-items: center !important;   /* Ensures vertical alignment */
    gap: 5px !important;              /* Maintains spacing between icon and text */
}

/* 1. Style the team member select dropdown */
#team-member-select {
    width: 200px; /* Set desired width */
    max-width: 100%; /* Ensure it doesn't exceed container width */
    padding: 8px; /* Optional: Adjust padding for better appearance */
    border-radius: 8px; /* Maintain consistent border radius */
    border: 1px solid #ccc; /* Maintain consistent border */
    font-family: 'Montserrat', sans-serif; /* Ensure font consistency */
}

/* Optional: Adjust label styling if needed */
.team-member-select-container label {
    margin-bottom: 0; /* Remove bottom margin */
    font-weight: 600; /* Maintain boldness */
    color: #2D3A45;   /* Consistent label color */
}

/* Responsive Typography and Scaling */
@media (max-height: 700px) {
    h1 {
        font-size: 1.75rem; /* Reduced size */
    }

    h2 {
        font-size: 1.25rem; /* Reduced size */
    }

    body {
        font-size: 14px; /* Reduced base font size */
    }

    .chat-input textarea {
        min-height: 30px;
        font-size: 12px;
    }

    button {
        padding: 10px 20px;
        font-size: 12px;
    }

    #main-dashboard .team-member p {
        font-size: 14px;
    }

    #main-dashboard .team-member img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 600px) {
    #main-dashboard .team-member img {
        width: 60px;
        height: 60px;
    }

    #main-dashboard .team-member {
        padding: 10px;
    }

    .team-grid {
        gap: 10px;
    }

    /* Further adjust font sizes */
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.125rem;
    }

    body {
        font-size: 12px;
    }
}

/* Ensure the add-member-container stays in place */
.add-member-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Space between the buttons */
    margin-bottom: 20px;
}

/* Adjust the events-and-chat-container to take up available space */
.events-and-chat-container {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    gap: 20px;
    min-height: 0;
}

.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10px;
  height: auto;
  background-color: #f5f7fb;
}

/* Styled Login Box */
.login-box {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Login Heading */
.login-box h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2D3A45;
}

/* Input Group Styling */
.input-group {
    text-align: left;
    margin-bottom: 15px;
}

.input-group label {
    font-weight: 600;
    color: #2D3A45;
    display: block;
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 12px;
    background-color: #165A5A;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.login-btn:hover {
    background-color: #1B6E6E;
    transform: translateY(-2px);
}

/* Error Message Styling */
.error-message {
    color: red;
    font-size: 14px;
    margin-top: 10px;
}

/* Logo Styling */
.login-logo {
    display: block;
    margin: 0 auto 15px;
    width: 100px; /* Adjust as needed */
    height: auto;
}

.modal-active {
    pointer-events: none; /* Prevents clicks on the page */
    filter: blur(3px); /* Optionally blur the background */
}

/* 1) A box style for each event block (1-2-1, Annual Review) */
.info-box {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;              /* Center text and content */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Header row inside each info-box (icon + title side by side) */
.info-box-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;                  /* Space between icon and text */
    margin-bottom: 10px;       /* Some spacing above the date */
}

.info-box-header i {
    font-size: 20px; /* Slightly larger icon if desired */
    color: #165A5A;  /* Keep consistent with your theme color */
}

.info-box-header h3 {
    font-size: 1.2rem;
    margin: 0;
    color: #2D3A45;   /* Could use #165A5A if you prefer the brand color */
}

/* 2) My Profile Button: 
   Make it stand out at top. 
   Reuse your existing .button-with-icon if you like.
*/
.my-profile-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;      /* space below the button */
    font-size: 14px;
    background-color: #28a745; /* Give it a unique color if you'd like */
}

.my-profile-button:hover {
    background-color: #1B6E6E;
}


/* If you’d like to ensure no overlap, you can reduce the margin between them 
.button-box button {
    margin: 5px;
}
*/

/* 4) If you want additional styling for the upcoming-events container */
.my-upcoming-events {
    flex: 1 1 0;               /* allow it to shrink/grow */
    max-width: 300px;          /* match the index.html side column width */
    margin: 0;                 /* remove the auto-centering */
    margin-bottom: 0px;       /* keep some bottom spacing if you like */
    background-color: #ffffff; 
    border: 1px solid #e0e0e0; 
    border-radius: 12px;       
    padding: 20px;             
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    text-align: center;        
}


.my-upcoming-events h2 {
    color: #2D3A45;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

#my-buttons-grid {
    display: flex;
    justify-content: center;  /* center horizontally */
    gap: 20px;                /* spacing between the 3 buttons */
    margin-bottom: 20px;      /* optional extra spacing */
    flex-wrap: nowrap;        /* prevent wrapping if you prefer a single row */
  }

  /* ────────────────────────────────────────────────
   1) Make the “My Upcoming Events” content the same
      size as the paragraphs in “My Details”
   ──────────────────────────────────────────────── */
.my-personal-events .event-item span,
.my-personal-events .event-item i {   /* icon too, so everything lines up */
    font-size: 16px;                  /* same default size your <p> tags use */
}

/* ────────────────────────────────────────────────
   2) Paint the two headings blue (#165A5A) so they
      match the “Saved Conversations” heading
   ──────────────────────────────────────────────── */
.info-box-header h3,    /* “My Details” */
.my-upcoming-events h2  /* “My Upcoming Events” */
{
    color: #165A5A;
}

/* ──────────────────────────────────────────────
   Header action buttons (Dashboard ⇆ Logout)
   ────────────────────────────────────────────── */

/* 1) Give both buttons the same basic sizing */
.dashboard-header #back-dashboard-btn,
.dashboard-header #logout-btn {
    padding: 0.5rem 1rem;   /* identical padding  = same visual height */
    font-size: 14px;        /* keep text sizes identical */
}

/* 2) Add a gap *only* to the logout button */
.dashboard-header #logout-btn {
    margin-left: 0.75rem;   /* ≈12 px – tweak to taste */
}

.actions-cell button {
    margin-right: 4px;       /* tiny gap */
    padding: 4px 6px;        /* small, unobtrusive buttons */
  }
  
  /* --- CSP-friendly helpers ---------------------------- */
.no-underline { text-decoration: none; }

/* ── util classes for Super-User page ───────────────────────── */
.scroll-section   { overflow:auto; padding:20px; }
.modal-narrow     { max-width:370px; }
.modal-btn-row    { display:flex; gap:10px; justify-content:flex-end; }
/* ───────────────────────────────────────────────────────────── */

/* main.css ---------------------------------------------------- */
.modal-content.w600 { max-width: 600px; }   /* edit-user modal  */
.modal-content.w370 { max-width: 370px; }   /* reset-password   */

.btn-row {                       /* replaces the flex inline style */
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Legal-modal button group */
.legal-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  .legal-links .button-with-icon {
    justify-content: flex-start;          /* icon + text left-aligned */
    width: 100%;
  }

  /* ------ Legal pages ------ */
.legal-container           { text-align: center; padding: 2rem; }
.legal-container table     { margin: 0 auto; }     /* centre tables */
.legal-container table     { margin: 0 auto; }

/* ───── Legal tables: borders + comfy padding ───── */
.legal-table {
    width: 90%;
    border-collapse: collapse;
    margin: 0 auto;                    /* already centres the table */
  }
  .legal-table th,
  .legal-table td {
    border: 1px solid var(--border-col, #ccc); /* outer + inner borders */
    padding: 0.75rem 1.25rem;                  /* extra breathing-room */
  }
  .legal-container h2 { margin-top: 3rem; }     /* bigger gap between sections */

  /* login page footer – centred, small, subtle */
.login-legal-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted, #666);
  }
  .login-legal-links a { color: inherit; text-decoration: underline; }

  .individual-page .team-member-select-container { display: none !important; }

  /* ─── KPI TABLE LAYOUT ────────────────────────────────────────── */
/* 1) proportional widths … */
.kpi-table col.col-title   { width: 20%; }   /* narrow */
.kpi-table col.col-details { width: 50%; }   /* widest */
.kpi-table col.col-target  { width: 20%; }   /* narrow */
.kpi-table col.col-actions { width: 1%;  }   /* “shrink-wrap” to buttons */

/* 2) keep the Actions column tight & right-aligned */
.kpi-table th:last-child,
.kpi-table td:last-child {
  text-align: left;          /* header + cell */
  white-space: nowrap;        /* don’t break the buttons on 2 lines */
}

/* 3) line-up the buttons neatly */
.kpi-table td:last-child {
  display: flex;              /* let flex do the spacing */
  justify-content: flex-end;  /* push them right */
  gap: 4px;                   /* tiny gap between buttons */
}

/* 4) make the buttons themselves small and equal */
.kpi-table td:last-child button {
  padding: 4px 8px;           /* slimmer pads */
  font-size: 13px;            /* optional: slightly smaller text */
}

/* ─── PERFORMANCE-RECORDS TABLE LAYOUT ────────────────────────── */
.performance-records-table            { table-layout: auto; }  /* equal KPI cols */
.performance-records-table col.col-date    { width: 20%; }      /* same as KPI Title */
.performance-records-table col.col-actions { width: 140px;  }      /* shrink to buttons */

/* keep the Actions column tight & right-aligned */
.performance-records-table th:last-child,
.performance-records-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.performance-records-table td:last-child {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.performance-records-table td:last-child button {
  padding: 4px 8px;
  font-size: 13px;
}

/* override the older rule that centred the header & set 150 px */
.performance-records-table th:last-child { width: auto; }

/* keep the Actions column tight & right-aligned */
.performance-records-table th:last-child,
.performance-records-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.header-logo {
  height: 35px;      /* Try 40–50px for compact logos */
  margin-right: 10px;
  width: auto;       /* Ensures aspect ratio is kept */
  max-width: 150px;  /* Optional: limits scaling on very wide logos */
  object-fit: contain;
}

.login-logo-wrapper {
  text-align: center;
  margin-top: 30px;
}

.login-logo-wrapper img {
  max-height: 400px;
  width: auto;
  max-width: 90%;
  margin-bottom: 10px;
}

.login-legal-links {
  margin-top: auto; /* Pushes footer to bottom if space allows */
  padding: 1rem 0;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
}

.header-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}

.header-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 768px) {
  .dashboard-header {
    flex-wrap: wrap;
    padding: 10px;
  }

  .header-center {
    position: static;
    transform: none;
    width: 100%;
    order: 2;
    margin-top: 10px;
  }

  .header-left,
  .header-right {
    flex: 1 1 auto;
    justify-content: space-between;
  }
}


/* Accent color for delete and logout buttons */
.logout-button,
.danger-button,
button.logout-button {
  background-color: #D86C5B;
  color: #ffffff;
}

.logout-button:hover,
.danger-button:hover,
button.logout-button:hover {
  background-color: #bb5649;
}