/* /public/styles.css */

:root {
    --primary-color: #5A1AA8;
    --secondary-color: #E838FF;
    --background-color: #1A1A1A;
    --text-color: #FFFFFF;
    --card-background: #2A2A2A;
    --input-background: #3A3A3A; 
}

body { 
    font-family: Figtree, sans-serif;
    margin: 0; 
    padding: 0; 
    background-color: var(--background-color);
    color: var(--text-color);
}

.container { 
    max-width: 1200px; 
    margin: 20px auto; 
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    text-align: center;
    color: var(--text-color);
    color: white;
    padding: 0.5rem 1rem;
    display: inline-block;
    margin: 25px auto;
    max-width: 100%;
    word-wrap: break-word;
}

h2 {
    display: inline-block;
    width: 100%;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 20px;
    word-wrap: break-word;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

button, .btn {
    padding: 10px 20px;
    font-family: Figtree, sans-serif;
    font-size: 13px;
    cursor: pointer;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    border-radius: 20px;
    transition: opacity 0.3s;
    text-decoration: none;
}

button:hover, .btn:hover {
    background-color: var(--card-background);
}

select { 
    width: 100%; 
    padding: 10px; 
    margin-bottom: 20px; 
    background-color: var(--card-background);
    color: var(--text-color);
    border: 1px solid var(--text-color);
    border-radius: 20px;
}

input[type="text"]:hover,
input[type="date"]:hover,
textarea:hover,
input[type="text"]:focus,
input[type="date"]:focus,
textarea:focus {
    border: 1px solid var(--secondary-color) !important;
}

/* Dashboard styles */

/* Hide dashboard content until loaded */
.dashboard-content {
    opacity: 0;
    transition: opacity 0.5s ease-in;
  }
  
  .dashboard-content.loaded {
    opacity: 1;
  }

.charts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Gauge Chart Styles */
.chart-container {
    position: relative;
    width: calc(25% - 20px);
    min-width: 300px;
    max-width: 350px;
    margin-bottom: 20px;
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.gauge-chart-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 50%; 
    margin-bottom: 10px;
}

.gauge-chart-wrapper canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.gauge-values {
    display: flex;
    justify-content: space-around;
    font-size: 0.9em;
    margin-top: 10px;
}

.gauge-value {
    display: block;
}

.rating-tooltip {
    position: fixed;
    display: none;
    background-color: var(--card-background);
    color: var(--text-color);
    padding: 15px 15px;
    border-radius: 8px;
    max-width: 300px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
    border: 1px solid var(--secondary-color);
}

.rating-tooltip::-webkit-scrollbar {
    width: 6px;
}

.rating-tooltip::-webkit-scrollbar-track {
    background: var(--card-background);
}

.rating-tooltip::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 3px;
}

.gauge-value {
    cursor: help;
}

@media (max-width: 1200px) {
    .chart-container {
        width: calc(30% - 20px);
        min-width: 300px;
        max-width: 350px;    
    }
}

@media (max-width: 900px) {
    .chart-container {
        width: calc(40% - 20px);
    }
}

@media (max-width: 600px) {
    .chart-container {
        width: 80%;
    }
}

.chart-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.text-bubble { 
    background-color: var(--card-background); 
    padding: 10px; 
    margin-bottom: 10px; 
    border-radius: 10px; 
}

.word-cloud-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    width: 100%;
}

.view-mode-toggle {
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
    position: relative;
}

.view-mode-buttons {
    display: inline-flex;
    background-color: var(--card-background);
    border-radius: 25px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.view-mode-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    background-color: transparent;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-family: Figtree, sans-serif;
}

.view-mode-btn.selected {
    background-color: var(--secondary-color);
}

.view-mode-btn:hover:not(.selected) {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Text view styling */
.text-view {
    height: 100%;
    overflow-y: auto;
    padding: 10px;
}

.employee-text, .manager-text, .peer-text {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.employee-text h4 {
    color: #34D5EB;
    margin-bottom: 10px;
}

.manager-text h4 {
    color: #FBD108;
    margin-bottom: 10px;
}

.peer-text h4 {
    color: #E838FF;
    margin-bottom: 10px;
}

.text-view p {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.5;
    word-break: break-word; /* Ensure long words wrap */
}

/* Improve responsiveness */
@media (max-width: 768px) {
    .word-cloud-container {
        width: 100%;
        max-width: 400px;
    }

    .word-cloud-row {
        flex-direction: column;
        align-items: center;
    }
}

#dateSelectContainer { 
    display: none; 
}

/* Word Cloud Styles */
.word-cloud-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
  }
  
  .word-cloud-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0px 20px;
    min-width: 200px;
    max-width: 600px;
  }
  
  .word-cloud-container {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: 400px;
    height: 300px; 
    display: flex;
    flex-direction: column;
  }
  
  .word-cloud-container h3 {
    text-align: center;
    margin-bottom: 15px;
  }
  
  .word-cloud {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .jqcloud {
    font-family: Figtree, sans-serif;
    width: 100% !important;
    height: 100% !important;
  }
  
  .jqcloud-word {
    transition: transform 0.3s ease;
}

.jqcloud-word:hover {
    transform: scale(1.1);
}

/* Responsive layout */
@media (max-width: 768px) {
    .word-cloud-row {
      flex-direction: column;
    }
  }

@media (max-width: 768px) {
    .word-cloud-container {
        width: 100%;
    }
}

.form-container {
    position: relative;
    min-width: 300px;
}

/* Appraisal form styling */
#selfAppraisalFormContainer {
    display: flex;
    flex-direction: column;
    width: 60%;
}

#appraisalForm {
    display: flex;
    flex-direction: column;
}

#employeeInfo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
}

#employeeInfoText {
    margin: 0;
    max-width: 800px;
}

.form-steps-container {
    flex-grow: 1;
}

.form-step {
    display: none;
    margin-bottom: 60px; 
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.form-step.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1;
}

.form-step h2 {
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
}

.rating-question-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.rating-explanation {
    width: 100%;
    max-width: 400px;
    margin-top: 10px;
}

.rating-explanation-input {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: none;
    border-radius: 20px;
    background-color: var(--input-background);
    color: var(--text-color);
    resize: vertical;
    font-family: inherit;
}

.rating-explanation-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--secondary-color);
}

.rating-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0px 20px 0px;
}

.rating-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rating-btn:hover {
    background-color: #e0e0e0;
}

.rating-btn.selected {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.slider-container {
    margin: 20px 0;
    width: 100%;
    max-width: 600px;
    position: relative;
    padding-bottom: 30px; /* Space for the value display */
}

.slider {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: var(--background-color);
    outline: none;
    margin-bottom: 10px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary-color);
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary-color);
    cursor: pointer;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

.slider-value {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.progress-bar-container {
    width: 70%;
    margin: 0 auto;
    background-color: var(--card-background);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--secondary-color);
    width: 0%;
    transition: width 0.3s ease-in-out;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center; /* This ensures vertical centering */
    width: 100%;
    gap: 10px;
    position: relative;
    min-height: 40px; /* Ensure consistent height for the container */
}

.prev-btn, .next-btn, .submit-btn {
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: Figtree, sans-serif;
    font-size: 14px;
    min-width: 100px;
    transition: opacity 0.3s;
    height: 40px; /* Set a consistent height for all buttons */
    line-height: 20px; /* Helps with vertical text centering */
    display: inline-flex; /* Use flexbox for button content */
    align-items: center; /* Center button text vertically */
    justify-content: center; /* Center button text horizontally */
}

.submit-btn {
    margin-left: auto; /* Push to the right */
    position: relative; /* Ensure proper stacking context */
}

.prev-btn:hover, .next-btn:hover, .submit-btn:hover {
    background-color: var(--card-background);
}

.next-btn {
    margin-left: auto; 
}

input[type="email"], input[type="password"] {
    width: 250px;
    padding: 10px;
    margin-bottom: 20px;
    border: none;
    border-radius: 20px;
    background-color: var(--input-background);
    color: var(--text-color);
}

input[type="text"] {
    width: 250px;
    min-height: 2em;
    padding: 10px 15px;
    margin-bottom: 10px;
    border: none;
    border-radius: 20px;
    background-color: var(--input-background);
    color: var(--text-color);
    resize: vertical;
}

input.autocomplete-input {
    margin: 0px -10px;
}

input[type="email"]:focus, 
input[type="password"]:focus,
#appraisalForm textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--secondary-color);
}

/* Employee select dropdown styling */
#employeeAppraisalFormContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60%;
}

#appraiseEmployeeForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100%;
}

#employeeSelect {
    width: 400px;
    padding: 10px 20px;
    margin: 0 auto 20px;
    border: none;
    border-radius: 20px;
    background-color: var(--input-background);
    color: var(--text-color);
    font-family: Figtree, sans-serif;
    font-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg width="14" height="8" viewBox="0 0 14 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L7 7L13 1" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
}

#employeeSelect:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--secondary-color);
}

/* Peer review styles */
/* Appraisal Options Styling */
#employeeSelectionStep {
    display: flex;
    flex-direction: column;
}

.appraisal-option {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.appraisal-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.option-btn {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    border-radius: 20px;
    padding: 12px 24px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: Figtree, sans-serif;
    font-size: 13px;
    margin: 10px 0;
    text-align: center;
}

.option-btn:hover {
    background-color: var(--primary-color);
}

.option-btn.secondary-btn {
    background-color: var(--card-background);
    border: 1px solid var(--secondary-color);
    font-size: 13px;
}

.option-btn.secondary-btn:hover {
    background-color: var(--secondary-color);
}

.option-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

.option-description {
    color: #ccc;
    font-size: 14px;
    margin: 10px 0;
}

/* Peer reviewer multi-select */
#peerReviewerSelectContainer {
    margin: 15px 0;
}

/* Pulse animation for the Complete Peer Review nav link */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(232, 56, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(232, 56, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(232, 56, 255, 0);
    }
}

.nav-pulse {
    animation: pulse 2s infinite;
    border-radius: 20px;
    padding: 5px 10px;
    background-color: var(--secondary-color);
    margin: 5px;
}

/* Add to styles.css */
.pending-reviews-list {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pending-review-item {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-employee-info {
    display: flex;
    flex-direction: column;
}

.review-employee-info h3 {
    margin: 0 0 5px 0;
}

.expiry-info {
    font-size: 14px;
    color: #ccc;
}

.start-review-btn {
    padding: 8px 16px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    margin: 10px;
}

.start-review-btn:hover {
    background-color: var(--primary-color);
}

/* Success and error message styling */
.update-success-message {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    animation: slideDown 0.3s ease-out;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px auto;
}

.peer-review-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 10px;
    text-align: center;
}

.peer-review-success {
    background-color: rgba(90, 26, 168, 0.2);
    border: 1px solid var(--primary-color);
}

.peer-review-error {
    background-color: rgba(232, 56, 255, 0.2);
    border: 1px solid var(--secondary-color);
}

/* Dashboard checkbox for peer reviews */
#showManagerReviewContainer,
#showPeerReviewContainer {
    margin-top: 10px;
}

#showManagerReviewContainer label,
#showPeerReviewContainer label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

#showManagerReview,
#showPeerReview {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    margin: 0px 8px -4px 0px;
    position: relative;
    cursor: pointer;
    background-color: transparent;
}

.form-builder-question input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    margin: 0px 8px 0px 0px;
    position: relative;
    cursor: pointer;
    background-color: transparent;
}

#showManagerReview:checked,
#showPeerReview:checked,
.form-builder-question input[type="checkbox"]:checked {
    background-color: var(--secondary-color);
}

#showManagerReview:checked::after,
#showPeerReview:checked::after,
.form-builder-question input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    line-height: 1;
}

.peer-score {
    background-color: var(--secondary-color);
}

#appraisalForm textarea, #appraiseEmployeeForm textarea {
    width: 400px;
    min-height: 100px;
    padding: 10px;
    margin: 0 auto 20px;
    border: none;
    border-radius: 20px;
    background-color: var(--input-background);
    color: var(--text-color);
    resize: vertical;
    display: block;
    font-family: Figtree, sans-serif;
    font-size: 16px;
    transition: box-shadow 0.3s ease;
}

#appraiseEmployeeForm textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--secondary-color);
}

/* Header navigation styles */
#header-nav {
    background-color: var(--primary-color);
    padding: 10px 0px;
    margin: 0;
    position: relative;
}

.nav-container {
    display: flex;
    position: relative;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
    overflow: visible;
    max-width: 1200px;
    margin: 0px auto;
    padding: 0 20px;
}

nav {
    position: relative;
}

nav ul {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
    position: relative;
}

nav ul li {
    margin: 0 15px;
    position: relative;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    padding: 10px 0;
    display: inline-block;
    transition: all 0.3s ease;
}

nav ul li a.active {
    font-weight: bold;
}

nav ul li a:hover:not(.active) {
    text-decoration: underline;
}

/* Help button styles */
#helpBtn {
    bottom: 20px;
    background-color: var(--secondary-color); /* Pink background */
    color: var(--text-color);
    border: none;
    border-radius: 50%; /* Make it circular for the ? symbol */
    width: 35px;
    height: 36px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#helpBtn:hover {
    background-color: var(--card-background); /* Dark grey on hover */
}

/* Adjust the LOG ISSUE button to accommodate the help button */
#logIssueBtn {
    right: 70px; /* Keep original position */
}

/* Report issue styles */

.log-issue-container {
    margin-left: 20px;
}

.log-issue-btn {
    background-color: var(--card-background);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.log-issue-btn:hover {
    background-color: var(--secondary-color);
}

/* Center login screen */
#formTitle {
    margin-top: 80px;
}

#loginForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    margin-top: 20px;
}

#loginForm h1 {
    margin-bottom: 20px;
}

/* Word cloud layout */
#textBubbles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* New styles for logo */
.logo {
    display: flex;
    justify-content: center;
    margin: 15px 0px 5px 0px;
}

.logo img {
    height: 35px;
    filter: invert(1); /* Make the black SVG appear white */
}

/* Dashboard styles */

/* Overall Score Container */
.overall-score-container {
    width: 100%;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.overall-score-container h2 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.score-circles {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 15px;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    z-index: 2;
}

.employee-score {
    background-color: #34D5EB;
}

.manager-score {
    background-color: #FBD108;
    color: #1A1A1A;
}

.score-bar.employee-bar {
    background-color: #34D5EB;
    z-index: 2;
}

.score-bar.manager-bar {
    background-color: #FBD108;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.score-value {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.score-label {
    font-size: 12px;
    position: relative;
    z-index: 1;
}

.score-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.rating-label {
    font-weight: bold;
    margin-top: 10px;
}

.rating-value {
    color: var(--secondary-color);
    font-weight: bold;
    margin-top: 10px;
}

/* Section Scores */
.section-scores-container {
    width: 80%;
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 20px 20px 40px 20px;
    margin-bottom: 20px;
}

.section-scores-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.section-score-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.section-score-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-name {
    flex: 0 0 200px;
    font-weight: bold;
    text-align: right;
}

.score-bar-container {
    flex-grow: 1;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    position: relative;
    overflow: visible; /* Changed from hidden to visible */
}

.score-bar {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.score-percentage {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: bold;
    color: white;
    z-index: 10; /* Always on top of all bars */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.score-percentage span {
    margin: 0 2px;
}

.score-bar.employee-bar {
    background-color: #34D5EB;
}

.score-bar.manager-bar {
    background-color: #FBD108;
}

.score-bar.peer-bar {
    background-color: #E838FF;
}

/* Question Weight Display */
.question-weight {
    text-align: center;
    font-size: 12px;
    color: #999;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .score-circles {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .section-score-bar {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    .section-name {
        flex: none;
        width: 100%;
        text-align: left;
    }
    
    .score-bar-container {
        width: 100%;
    }
}

/* Gauge report sections */
.section-header {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    text-align: left;
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #3A3A3A;
}

.section-header h3 {
    color: #FFFFFF;
    font-size: 22px;
    margin: 0;
}

.section-gauges {
    padding: 0 20px;
}

/* Constrain and center dashboard dropdown */
#employeeSelectDashboard {
    width: 320px;
    border: none;
    border-radius: 20px;
    color: var(--text-color);
    font-family: Figtree, sans-serif;
    font-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg width="14" height="8" viewBox="0 0 14 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L7 7L13 1" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 20px top 50px;
}

#employeeSelectDashboard:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--secondary-color);
}

#dateSelect {
    width: 200px;
    margin: 0 auto 20px;
    display: block;
}

.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--card-background);
    color: var(--text-color);
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-btn:hover {
    background-color: var(--secondary-color);
}

/* Form container */
#registrationForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 20px auto;
}

/* Row styling */
.form-row {
    display: flex;
    justify-content: center;
    width: 100%;
    min-width: 250px;
    margin-bottom: 20px;
}

/* Profile page */

/* Position Manager Styles */
.position-manager {
    margin-top: 40px;
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.position-manager h2 {
    text-align: center;
    margin-bottom: 15px;
}

.position-manager p {
    text-align: center;
    margin-bottom: 20px;
    color: #cccccc;
}

.input-with-button {
    display: flex;
    gap: 10px;
}

.input-with-button input {
    flex-grow: 1;
}

.input-with-button button {
    height: 40px;
    padding: 0 15px;
}

#addPositionBtn:hover {
    background-color: #1A1A1A;
}

#positionFormBuilder {
    margin-top: 30px;
    border-top: 1px solid #444;
    padding-top: 20px;
}

#positionFormBuilder h3 {
    margin-bottom: 15px;
}

#positionFormBuilder p {
    text-align: left;
    margin-bottom: 20px;
    color: #cccccc;
}

.form-builder-section {
    margin-bottom: 30px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
}

.form-builder-section h4 {
    margin-bottom: 10px;
    color: var(--secondary-color);
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
    font-size: 20px;
}

.section-description p {
    font-style: italic;
    margin-bottom: 15px;
    text-align: left;
}

.form-builder-subsection {
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 12px;
}

.form-builder-subsection h5 {
    margin: 8px 0px;
    color: var(--text-color);
    font-weight: bold;
    font-size: 16px;
}

.subsection-context {
    margin-bottom: 10px;
}

.subsection-context p {
    color: #888;
    font-size: 14px;
    font-style: italic;
    margin: 0;
}

.subsection-description p {
    font-style: italic;
    margin-bottom: 12px;
    color: #aaaaaa;
    text-align: left;
}

.form-builder-questions {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: space-between;
    flex-wrap: wrap;
    align-content: center;
    margin-bottom: 10px;
}

.form-builder-question {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    padding: 10px;
    width: 325px;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.question-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
}

.question-weight {
    display: flex;
    align-items: center;
    gap: 5px;
}

.question-weight input {
    width: 25px;
    text-align: right;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #555;
    background-color: var(--input-background);
    color: var(--text-color);
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.weight-label {
    color: #aaa;
}

.question-details {
    margin-left: 26px;
    color: #dddddd;
}

.required-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7em;
    padding: 5px 8px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.primary-btn, .secondary-btn {
    padding: 10px 25px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-family: Figtree, sans-serif;
    font-size: 14px;
    transition: all 0.3s;
}

.primary-btn {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.secondary-btn {
    background-color: var(--card-background);
    color: var(--text-color);
    border: 1px solid #555;
}

.primary-btn:hover {
    background-color: #f44dff;
}

.secondary-btn:hover {
    background-color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .position-manager {
        padding: 15px;
    }
    
    .question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .question-weight {
        margin-left: 26px;
    }
}

/* Profile form group (label + input) styling */
.profile-form-group {
    flex: 0 0 30px;
    margin: 0 12.5px; 
}

.profile-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}


.profile-form-group input,
.profile-form-group select {
    width: 100%;
    height: 40px;
    padding: 8px 16px;
    background-color: #3a3a3a;
    color: white;
    border: none;
    border-radius: 20px;
    box-sizing: border-box;
    font-size: 16px;
    transition: all 0.3s ease;
}

.profile-form-group input:focus,
.profile-form-group select:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--secondary-color);
}

/* Placeholder color */
.profile-form-group input::placeholder,
.profile-form-group select::placeholder {
    color: #999;
}

/* Form group (label + input) styling */
.form-group {
    flex: auto;
    margin: 0 12.5px; /* Creates 25px gap between fields */
    min-width: 275px;
}

/* Label styling */
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Input and select styling */
.form-group input,
.form-group select {
    width: 100%;
    height: 40px;
    padding: 8px 16px;
    background-color: #3a3a3a;
    color: white;
    border: none;
    border-radius: 20px;
    box-sizing: border-box;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--secondary-color);
}

/* Placeholder color */
.form-group input::placeholder,
.form-group select::placeholder {
    color: #999;
}

/* Team dropdown specific styling */
#regTeam {
    max-width: 300px;
}

/* Register button styling */
.register-btn {
    width: 300px;
    height: 40px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: Figtree, sans-serif;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.register-btn:hover {
    background-color: var(--card-background);
}

/* For mobile responsiveness */
@media (max-width: 650px) {
    .form-row {
        flex-direction: column;
        align-items: center;
    }

    .form-group {
        margin: 0 0 20px 0;
        width: 100%;
        max-width: 300px;
    }
}

/* Profile form container */
#profileForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    width: 100%;
    margin: 40px auto 10px;
}

.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

#uploadButton {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: opacity 0.3s;
    z-index: 99999;
}

#uploadButton:hover {
    background-color: var(--card-background);
}

/* Readonly input styling */
.form-group input[readonly] {
    background-color: #2a2a2a;
    cursor: not-allowed;
}

/* Team dropdown specific styling */
#team {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg width="14" height="8" viewBox="0 0 14 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L7 7L13 1" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
}

/* Update button styling */
.update-btn {
    width: 250px;
    height: 40px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: Figtree, sans-serif;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.update-btn:hover {
    background-color: var(--card-background);
}

/* Download button styling */
#downloadIcon {
    cursor: pointer;
    font-size: 24px;
    color: var(--text-color);
    transition: opacity 0.3s ease;
}

#downloadIcon:hover {
    opacity: 0.7;
}

.material-symbols-outlined {
  font-variation-settings:
  'FILL' var(--text-color),
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}

/* Download format modal styling */
.download-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-modal.active {
    opacity: 1;
}

.download-modal-content {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 20px;
    width: 350px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.download-modal.active .download-modal-content {
    transform: translateY(0);
}

.download-modal h3 {
    margin-top: 0;
    color: var(--text-color);
    text-align: center;
}

.download-options {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 25px 0;
}

.download-option {
    flex: 1;
    padding: 15px 10px;
    border-radius: 6px;
    border: none;
    background-color: var(--input-background);
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s ease;
}

.download-option:hover {
    transform: translateY(-2px);
    background-color: var(--input-background);
}

.download-option .material-symbols-outlined {
    font-size: 32px;
    margin-bottom: 8px;
    color: #5A1AA8;
}

.download-option:first-child .material-symbols-outlined {
    color: #217346; /* Excel green */
}

.download-option:last-child .material-symbols-outlined {
    color: #db4437; /* PDF red */
}

.download-close {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: none;
    background-color: var(--primary-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.download-close:hover {
    background-color: var(--input-background);
}

/* Loader styling */
.loader {
    width: 65px;
    height: 30px;
    position: relative;
    margin: 0 auto;
}

.loader:before {
    content: "";
    position: absolute;
    border-radius: 50px;
    box-shadow: 0 0 0 3px inset var(--secondary-color);
    animation: l3 0.75s infinite alternate;
}

@keyframes l3 {
    0% {
        inset: 0 35px 0 0;
    }
    50% {
        inset: 0 0 0 0;
    }
    100% {
        inset: 0 0 0 35px;
    }
}

#filterContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

#filterContainer select {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    border-radius: 20px;
    background-color: var(--card-background);
    color: var(--text-color);
    border: 1px solid var(--text-color);
}

#applyFilters {
    flex: 1;
    max-width: 150px;
    margin-bottom: 20px;
    padding: 10px 20px;
    border-radius: 20px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

#applyFilters:hover {
    opacity: 0.8;
}

.filters-row {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 10px;
}

.filters-bottom-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 10px;
}

#dateSelect {
    height: 40px;
    padding: 0 15px;
    border-radius: 20px;
    background-color: var(--card-background);
    color: var(--text-color);
    border: 1px solid var(--text-color);
    width: 250px;
}

#applyFilters {
    background-color: var(--secondary-color);
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

#applyFilters:hover {
    opacity: 0.8;
}

/* Custom scrollbar styles */
.multi-select-options {
    scrollbar-width: thin;
    scrollbar-color: #888 var(--card-background);
}

.multi-select-options::-webkit-scrollbar {
    width: 6px;
}

.multi-select-options::-webkit-scrollbar-track {
    background: var(--card-background);
}

.multi-select-options::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 3px;
    border: 3px solid var(--card-background);
}

.multi-select-options::-webkit-scrollbar-button {
    display: none;
}

/* Autocomplete Multi-Select Styles */
.autocomplete-container {
    position: relative;
    width: 250px;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    padding: 5px;
    min-height: 20px;
    font-size: 10px;
}

.selected-tag {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 2px 8px;
    margin: 2px;
    border-radius: 12px;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
}

.autocomplete-input {
    width: 100%;
    padding: 10px;
    margin: 0px 10px;
    border: 1px solid var(--text-color);
    background-color: var(--card-background);
    color: var(--text-color);
    border-radius: 20px;
}

.autocomplete-dropdown {
    position: absolute;
    top: 105%;
    left: -2%;
    right: 0;
    background-color: var(--card-background);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    border-radius: 10px;
    width: 85%;
}

.autocomplete-dropdown.show { 
    display: block;
}

.autocomplete-item {
    padding: 10px;
    cursor: pointer;
}

.autocomplete-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.remove-tag {
    margin-left: 5px;
    cursor: pointer;
}

/* Landing page card styles */

.landing-container {
    padding: 20px;
}

.card-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.left-column, .right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 385px;
    height: 220px;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.center-card {
    height: 500px;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.card:hover {
    transform: translateY(-5px);
}

.card-description {
    opacity: 0;
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0 20px;
    color: white;
    font-size: 15px;
    line-height: 1.4;
    transition: opacity 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.card:hover .card-description {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    color: white;
}

.card h2, .card h3, .card p {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
}

.card-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 3;
    padding: 10px 20px;
    border-radius: 20px;
    background-color: #E838FF;
    color: white;
    border: none;
    cursor: pointer;
    font-family: Figtree, sans-serif;
    font-size: 12px;
}

.profile-image-container {
    width: 125px;
    height: 125px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px auto 20px auto;
    position: relative;
    overflow: visible; /* Allow the glow to be visible outside the container */
}

#profileImage {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    position: relative;
    z-index: 99999;
}

/* Glow effect */
.profile-image-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 145px; /* Slightly larger than the image */
    height: 145px;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0) 70%
    );
    border-radius: 50%;
    z-index: 99998;
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

#landingTitle {
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    .card-grid {
        flex-direction: column;
        align-items: center;
    }

    .left-column, .right-column {
        width: 100%;
        max-width: 385px;
    }
}

/* Integration styles */

.integration-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px auto;
}

.integration-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 20px;
    width: 150px;
}

.integration-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}

.integration-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
}

.connect-btn {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.connect-btn:hover {
    background-color: var(--background-color);
}

.connect-btn.connected {
    background-color: var(--primary-color);
    cursor: default;
}

.success-message, .error-message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.success-message {
    background-color: var(--primary-color);
    color: white;
}

.appraisal-success-message {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    animation: slideDown 0.3s ease-out;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px auto;
}

/* Slide down animation for appraisal submit success message */
@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.error-message {
    background-color: var(--secondary-color);
    color: white;
    animation: shake 0.4s ease-in-out;
}

/* Subtle shake animation for invalid inputs */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.refresh-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.refresh-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.refresh-btn .material-symbols-outlined {
    font-size: 20px;
    color: var(--text-color);
}

/* Asana dashboard report styles */
#projectSelectDashboard {
    height: 60px;
    width: 320px;
    border: none;
    border-radius: 20px;
    color: var(--text-color);
    font-family: Figtree, sans-serif;
    font-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg width="14" height="8" viewBox="0 0 14 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L7 7L13 1" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 20px top 50px;
}

#projectDetailsCharts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#projectDetailsCharts .chart-container {
    width: 200px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#projectDetailsCharts .chart-container h3 {
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
}

#projectDetailsCharts .metric-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
}

.jqcloud-word:hover {
    transform: scale(1.1);
}

/* Project Dashboard Specific Styles */
.metric-container {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    text-align: center;
    min-width: 200px;
    flex: 1;
}

.metric-container h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.metric-value {
    font-size: 24px;
    font-weight: bold;
}

.chart-container.wide {
    width: 956.8px;
    height: 476.8px;
    margin: 20px;
    padding: 20px;
    background-color: var(--card-background);
    border-radius: 10px;
}

.timeline-container {
    width: 100%;
    padding: 20px;
    background-color: var(--card-background);
    border-radius: 10px;
    margin: 20px 0;
    min-height: 200px;
    overflow-x: auto;
}

.timeline {
    display: flex;
    align-items: center;
    padding: 20px 0;
}

.timeline-item {
    position: relative;
    padding: 10px;
    margin: 0px 0px 25px 0px;
    min-width: 150px;
    background-color: var(--background-color);
    border-radius: 5px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 10px;
    height: 2px;
    background-color: var(--secondary-color);
}

.timeline-item:first-child::before {
    display: none;
}

.timeline-date {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.8;
}

.timeline-title {
    font-size: 14px;
    margin: 5px 0;
}

.timeline-status {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-block;
}

.timeline-status.completed {
    background-color: var(--primary-color);
}

.timeline-status.in-progress {
    background-color: var(--secondary-color);
}

/* Project metrics grid layout */
#projectOverview,
#taskMetrics,
#timelineMetrics,
#teamMetrics {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

/* Project notes section */
#projectNotes {
    margin-top: 40px;
}

.word-cloud-container {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: 400px;
    min-height: 300px; /* Change from fixed height to min-height */
    height: auto; /* Allow the container to grow */
    display: flex;
    flex-direction: column;
    margin-bottom: 20px; /* Add margin to separate containers better */
}

/* Styles for the text-view within word-cloud-container */
.word-cloud-container .text-view {
    max-height: 400px; /* Set a maximum height */
    overflow-y: auto; /* Add vertical scrolling when needed */
    flex-grow: 1;
    padding: 10px;
    
    /* Hide scrollbars for Chrome, Safari and Opera */
    &::-webkit-scrollbar {
        display: none;
    }
    
    /* Hide scrollbars for IE, Edge and Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.word-cloud-container h3 {
    text-align: center;
    margin-bottom: 20px;
}

/* Chart responsiveness */
@media (max-width: 768px) {
    .metric-container {
        min-width: 100%;
    }

    .chart-container.wide {
        width: 100%;
        margin: 20px 0;
    }

    .timeline-container {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
}

/* Loading state */
/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out;
  }
  
  .loading-content {
    text-align: center;
  }
  
  .loading-logo {
    width: 120px;
    margin-bottom: 20px;
    filter: invert(1);
    animation: pulse 2s infinite;
  }
  
  .loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: #E838FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
  }
  
  .loading-text {
    color: white;
    font-size: 18px;
    font-family: Figtree, sans-serif;
    margin-top: 15px;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  @keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
  }

/* Project filter tag loading state */
.filter-tag {
    position: relative;
}

.filter-tag.loading {
    background-color: var(--primary-color);
    opacity: 0.8;
}

.filter-tag .loading-dot {
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    opacity: 0;
    animation: loadingDots 1.4s infinite;
}

.filter-tag .loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.filter-tag .loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingDots {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Project filter styles */
.project-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-tag {
    background-color: var(--card-background);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-tag .remove {
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.filter-tag .remove:hover {
    opacity: 1;
}

.selected-tag .loading-indicator {
    display: inline-block;
    margin: 0 5px;
}

.selected-tag .loading-dot {
    width: 4px;
    height: 4px;
    background-color: white;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    opacity: 0;
    animation: loadingDots 1.4s infinite;
}

.selected-tag .loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.selected-tag .loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingDots {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.selected-tag.loading {
    background-color: var(--primary-color);
    opacity: 0.8;
} 

/* Project status indicators */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.status-indicator.active {
    background-color: var(--secondary-color);
}

.status-indicator.completed {
    background-color: var(--primary-color);
}

.status-indicator.delayed {
    background-color: #FBD108;
}

/* Enhanced chart tooltips */
.chart-tooltip {
    background-color: var(--card-background);
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 12px;
    pointer-events: none;
}

/* Project comparison mode */
.comparison-mode .metric-container {
    display: flex;
    justify-content: space-between;
    padding: 15px;
}

.comparison-mode .metric-value {
    display: flex;
    gap: 20px;
}

.comparison-mode .value-change {
    font-size: 14px;
    opacity: 0.8;
}

.value-change.positive {
    color: #E838FF;
}

.value-change.negative {
    color: #5A1AA8;
}

/* Project notes analysis */
#applyProjectFilters {
    flex: 1;
    max-width: 150px;
    margin-bottom: 20px;
    padding: 10px 20px;
    border-radius: 20px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

#applyProjectFilters:hover {
    opacity: 0.8;
}

.notes-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.analysis-card {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 15px;
}

.analysis-card h4 {
    margin-bottom: 10px;
    font-size: 14px;
}

.timeline-scroll {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--secondary-color);
    border: none;
    color: var(--text-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.timeline-scroll:hover {
    opacity: 1;
}

.timeline-scroll.left {
    left: 10px;
}

.timeline-scroll.right {
    right: 10px;
}

.timeline {
    position: relative;
    padding: 0 40px;
}

/* Admin page styles */
#userManagementSection {
    margin: 50px auto 0px;
}

.user-table-container {
    margin-top: 20px;
    overflow-x: auto;
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 20px;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-color);
}

.user-table th,
.user-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #3a3a3a;
}

.user-table th {
    font-weight: bold;
    background-color: var(--background-color);
}

.user-table select {
    background-color: var(--input-background);
    color: var(--text-color);
    border: none;
    padding: 5px 10px;
    border-radius: 10px;
    width: 120px;
    margin: 10px 0px;
}

.user-table button {
    padding: 5px 10px;
    border-radius: 10px;
    margin: 5px 5px;
}

.user-table tr:hover {
    background-color: var(--background-color);
}

.status-active {
    color: #E838FF;
}

.status-blocked {
    color: #888;
}

.delete-btn {
    background-color: #5A1AA8;
    color: white;
    margin: 10px 10px;
}

.delete-btn:hover {
    background-color: #3a3a3a;
}

.position-input {
    width: 100%;
    padding: 5px 10px;
    border: none;
    border-radius: 10px;
    background-color: var(--input-background);
    color: var(--text-color);
}

.position-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--secondary-color);
}

.integration-card {
    display: grid;
    justify-items: center;
}

#connectAsana, #checkStatus {
    padding: 10px 20px;
    font-family: Figtree, sans-serif;
    font-size: 14px;
    cursor: pointer;
    background-color: var(--card-background);
    color: var(--text-color);
    border: none;
    border-radius: 20px;
    transition: opacity 0.3s;
    text-decoration: none;
    margin: 5px;
}

#connectAsana:hover, #checkStatus:hover {
    background-color: var(--input-background);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.status-card {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.status-item {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-badge.success {
    background-color: var(--primary-color);
    color: white;
}

.status-badge.error {
    background-color: #dc3545;
    color: white;
}

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

.status-loading {
    text-align: center;
    color: var(--text-color);
    opacity: 0.7;
}

.save-btn {
    padding: 10px 20px;
    background-color: var(--card-background);
    color: var(--text-color);
    border: 1px solid var(--secondary-color);
    border-radius: 20px;
    cursor: pointer;
    font-family: Figtree, sans-serif;
    font-size: 13px;
    min-width: 100px;
    transition: opacity 0.3s;
    height: 40px;
    line-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.save-btn:hover {
    background-color: var(--secondary-color);
}

/* Auto logout styles */
.logout-message {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Growth plan styles */

/* Growth Plan Card on Landing Page */
/* Activity card edit button styling */
.edit-activity-btn {
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    color: #888;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 2px;
    vertical-align: middle;
}

.edit-activity-btn .material-symbols-outlined {
    font-size: 16px !important;
    display: inline-block !important;
    visibility: visible !important;
}

.edit-activity-btn:hover {
    color: var(--secondary-color);
}

.activity-card, 
#growthPlanCard {
    height: 220px;
}

#activityCard {
    width: 195%;
    cursor: default;
}

#activity-content {
    width: 100%;
    overflow: visible;
    height: 100%;
}

.growth-path-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    margin-top: 15px;
}

.current-position, 
.next-position {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 120px;
    max-width: 140px;
    font-size: 14px;
}

.growth-path-arrow {
    font-size: 24px;
    color: var(--secondary-color);
    margin: 0 15px;
}

.position-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #2A2A2A;
    margin-bottom: 8px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.position-dot.current {
    background-color: #5A1AA8;
    border-color: #5A1AA8;
    box-shadow: 0 0 12px rgba(232, 56, 255, 0.7);
    animation: dot-pulse 1.5s infinite;
}

.no-next-position {
    color: #777;
    font-style: italic;
    margin-left: 15px;
}

.activity-list {
    max-height: 220px;
    width: 90%;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: #444 #2A2A2A;
}

/* Webkit browsers (Chrome, Safari, newer Edge) */
.activity-list::-webkit-scrollbar {
    width: 6px;
}

.activity-list::-webkit-scrollbar-track {
    background: #2A2A2A;
    border-radius: 3px;
}

.activity-list::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 3px;
}

/* Ensure scrollbar is visible even when not hovering */
.activity-list::-webkit-scrollbar-thumb:vertical {
    min-height: 30px;
}

.activity-date-group {
    margin-bottom: 15px;
}

.activity-date-group h4 {
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 14px;
}

.activity-date-group ul {
    list-style-type: none;
    padding-left: 18px;
    margin: 0;
}

.activity-date-group li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 5px 0;
    position: relative;
}

.activity-date-group li::before {
    left: -15px;
    top: 9px;
    position: absolute;
}

/* Growth Plan Editing Styles */

.timeline-item-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

.edit-timeline-item {
    background: none;
    border: none;
    color: #777;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 3px;
    right: 30px;
    position: absolute;
}

.edit-timeline-item:hover {
    color: #E838FF;
    background: none;
    background-color: transparent;
}

.achieved-dot {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: none !important;
}

.timeline-achieved-date {
    color: var(--text-color);
    font-weight: bold;
    font-size: 12px;
    margin-top: 5px;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.edit-item-form {
    background-color: #2A2A2A;
    border-radius: 10px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.edit-item-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #E838FF;
}

.form-field {
    margin-bottom: 15px !important;
    max-width: 93%;
}

.form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    padding: 5px 16px;
}

.form-field input[type="text"],
.form-field textarea {
    width: 100%;
    padding: 8px 16px;
    background-color: #3A3A3A;
    color: white;
    border: none;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.form-field input[type="date"] {
    width: 25%;
    padding: 8px 16px;
    background-color: #3A3A3A;
    color: white;
    border: none;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.form-field input[type="text"]:hover,
.form-field input[type="date"]:hover,
.form-field textarea:hover {
    border: 1px solid var(--secondary-color) !important;
}

.form-field input[type="text"]:focus,
.form-field input[type="date"]:focus,
.form-field textarea:focus {
    border: 1px solid var(--secondary-color) !important;
}

.form-field textarea {
    min-height: 80px;
    resize: vertical;
}

.form-field input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    margin: 0px 8px 0px 0px;
    position: relative;
    cursor: pointer;
    background-color: transparent;
}

.form-field input[type="checkbox"]:checked {
    background-color: var(--secondary-color);
}

.form-field input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    line-height: 1;
}

.form-field.checkbox-field {
    display: flex;
    align-items: center;
    margin: 5px -5px 0px 0px;
}

.form-field.checkbox-field label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
}

.form-field.hidden {
    display: none;
}

.field-note {
    margin-top: 5px;
    padding: 0px 16px;
    font-size: 12px;
    color: #888;
    font-style: italic;
}

.form-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.form-buttons button {
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
}

.form-buttons .save-btn {
    background-color: #E838FF;
    color: white;
    border: none;
}

.form-buttons .cancel-btn {
    background-color: #3A3A3A;
    color: white;
    border: 1px solid #555;
}

.form-buttons .save-btn:hover, 
.form-buttons .cancel-btn:hover {
    background-color: var(--background-color);
    border: none;
}

/* Growth Plan Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.growth-plan-modal-content {
    background-color: #1A1A1A;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-header {
    color: white;
    padding: 15px 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    width: 100%;
    text-align: center;
}

.close-modal-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    right: 0px;
    top: 0px;
}

.close-modal-btn:hover {
    color: var(--secondary-color);
    background: none;
    background-color: transparent;
}

.modal-body {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
    scrollbar-color: #444 var(--background-color);
}

.modal-body::-webkit-scrollbar-button {
    display: none;
}

/* For Firefox */
.modal-body {
    scrollbar-width: thin;
}

/* For Internet Explorer and older Edge */
.modal-body {
    -ms-overflow-style: none;
}

/* Same for the timeline */
.growth-plan-timeline::-webkit-scrollbar-button {
    display: none;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--background-color);
}

.modal-body::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 3px;
}

.modal-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    border-top: 1px solid #444;
}

/* Timeline styling */
.growth-plan-timeline {
    position: relative;
    padding: 20px 0;
    min-height: 300px;
    margin-left: 50px;
}

/* Continuous line behind the dots */
.growth-plan-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px; 
    background-color: #444;
    z-index: 1;
}

.timeline-item {
    background: none;
    position: relative;
    display: flex;
    align-items: center;
    margin: 0px 0px 25px 2px;
    z-index: 2;
}

.timeline-item::before {
    display: none; /* Remove the pink line */
}

.timeline-dot {
    position: absolute;
    left: 0;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #2A2A2A;
    border: 2px solid #2A2A2A;
    z-index: 3; /* Ensure dot is above the line */
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.timeline-dot.current-position-dot {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 12px rgba(232, 56, 255, 0.7);
    animation: dot-pulse 1.5s infinite;
}

.timeline-content {
    border-radius: 8px;
    padding: 15px;
    width: 90%;
    margin-left: 30px;
    text-align: left;
    position: relative;
}

.timeline-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #E838FF;
    text-align: left;
}

.timeline-content p {
    margin: 5px 0;
    text-align: left;
}

.timeline-date {
    color: #888;
    font-size: 12px;
    margin-top: 10px;
    text-align: left;
}

.remove-timeline-item {
    position: absolute;
    top: 0px;
    right: 5px;
    background: none;
    border: none;
    color: #777;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    z-index: 4;
}

.remove-timeline-item:hover {
    color: #E838FF;
    background: none;
    background-color: transparent;
}

.growth-plan-timeline:hover::after {
    display: none;
}

.growth-plan-timeline::after {
    display: none;
}

/* Make the entire timeline line clickable for adding items */
.timeline-add-button {
    cursor: pointer;
}

.timeline-add-trigger {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 24px;
    transform: translateX(-50%);
    z-index: 4;
    cursor: pointer;
}

.timeline-add-trigger:hover::after {
    content: '+';
    position: absolute;
    left: 0;
    top: attr(data-hover-y px, 50%);
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background-color: #E838FF;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    font-size: 20px;
    z-index: 5;
    opacity: 0.9;
}

.timeline-add-options {
    position: absolute;
    left: 20px;
    background-color: #2A2A2A;
    border-radius: 8px;
    padding: 10px;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.add-option {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 4px;
    white-space: nowrap;
}

.add-option:hover {
    background-color: #3A3A3A;
}

/* Add item form styling */
.add-item-form {
    background-color: #2A2A2A;
    border-radius: 8px;
    padding: 15px;
    margin-left: 30px;
    border: 1px solid #E838FF;
    z-index: 5;
    width: 300px;
}

.add-item-form h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #E838FF;
}

.add-item-form input[type="text"],
.add-item-form input[type="date"] {
    width: 90%;
    padding: 8px;
    margin-bottom: 10px;
    background-color: #3A3A3A;
    color: white;
    border: 1px solid #444;
    border-radius: 8px;
}

.add-item-form input[type="text"]:focus,
.add-item-form input[type="date"]:focus {
    border: var(--secondary-color);
}

.date-selection {
    margin-bottom: 15px;
}

.date-selection label {
    display: block;
    margin-bottom: 5px;
    color: #CCC;
}

/* Hide old editor controls */
.timeline-editor-controls {
    display: none;
}

/* Drag and drop */
.timeline-item-ghost {
    opacity: 0.5;
}

.timeline-item.dragging {
    opacity: 0.7;
    background-color: rgba(232, 56, 255, 0.1);
}

/* Make the growth-plan-timeline take the full timeline height */
.growth-plan-timeline {
    min-height: 400px;
}

/* Fix position in edit mode for drag and drop */
.timeline-item[draggable="true"] {
    cursor: grab;
}

.timeline-item[draggable="true"]:active {
    cursor: grabbing;
}

/* Centering adjustments for better position alignment */
.timeline-item .timeline-content {
    max-width: calc(100% - 50px);
}

/* Quarter indicator styling */
.quarter-indicator {
    color: #888;
    font-size: 12px;
    margin-top: 5px;
}

/* Adjustment for quarter label in appraisals */
.quarter-label {
    font-size: 12px;
    color: #888;
    margin-left: 5px;
}

/* Styling for date inputs */
.expected-date-input {
    width: 100%;
    padding: 8px;
    margin-top: 10px;
    background-color: #3A3A3A;
    color: white;
    border: 1px solid #444;
    border-radius: 8px;
}

/* Pulse animation */
@keyframes dot-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(90, 26, 168, 0.5);
    }
    70% {
        box-shadow: 0 0 0 30px rgba(90, 26, 168, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(90, 26, 168, 0);
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .growth-plan-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .timeline-content {
        margin-left: 20px;
    }
    
    .growth-plan-timeline {
        margin-left: 30px;
    }
    
    .add-item-form {
        width: calc(100% - 50px);
    }
}

.reset-password-btn {
    background-color: #5A1AA8;
    color: white;
    border: none;
    padding: 5px 10px;
    margin: 2px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.reset-password-btn:hover {
    background-color: #E838FF;
}

/* Full width form group for login form */
.form-group.full-width {
    width: 100%;
}

/* Ensure login form inputs stack vertically */
#loginForm .form-row {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 15px;
}

#loginForm .form-group {
    width: 100%;
    margin: auto;
}

#loginForm input {
    width: 100%;
    min-width: 250px !important;
    max-width: 300px !important;
    box-sizing: border-box;
    margin-bottom: 5px !important;
}

/* Form links container */
.form-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

/* Forgot password link */
.form-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    transition: color 0.3s ease;
}

.form-links a:hover {
    color: #E838FF;
    text-decoration: underline;
    background: none;
}

/* Link-style button for register */
.link-button {
    background: none;
    border: none;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    padding: 5px;
    text-align: center;
    transition: color 0.3s ease;
    font-family: inherit;
}

.link-button:hover {
    color: #E838FF;
    text-decoration: underline;
    background: none;
}

/* Secondary button styles */
.secondary-btn {
    background: none;
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.secondary-btn:hover {
    color: #E838FF;
    background: none;
}

/* Forgot password form specific styles */
#forgotPasswordForm h3 {
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

#forgotPasswordForm p {
    color: #666;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Password reset form specific styles */
#passwordResetForm h3 {
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

#passwordResetForm p {
    color: #666;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-links {
        gap: 8px;
    }
    
    .form-links a,
    .link-button {
        font-size: 13px;
    }
    
    .secondary-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Stack buttons on mobile */
@media (max-width: 480px) {
    .form-row:has(button + button) {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-row button + button {
        margin-left: 0;
    }
}