/* Chat Prototype Stylesheet */

/* ==========================================================================
   CSS Variables & Base Styles
   ========================================================================== */

:root {
    /* Beamery Design System Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #F1F1F3;
    --bg-tertiary: #DBDBE0;
    --text-primary: #1F1F23;
    --text-secondary: #6C6C7A;
    --text-muted: #A0A0AB;
    --accent: #492FF4;
    --accent-hover: #391EE6;
    --accent-active: #2222C3;
    --accent-light: #F0EDFF;
    --border: #DBDBE0;
    --border-color: #DBDBE0;
    --hover: #F1F1F3;
    
    /* Beamery Semantic Colors */
    --success: #06742B;
    --success-hover: #095D25;
    --error: #BF0338;
    --error-hover: #9E002D;
    --warning: #F59E0B;
    --info: #3B82F6;
    
    /* Chat-specific variables using Beamery colors */
    --agent-bubble: #ffffff;
    --agent-text: #1F1F23;
    --user-bubble: #492FF4;
    --user-text: #ffffff;
    --chat-bg: #ffffff;
    --input-bg: #ffffff;
    --input-border: #DBDBE0;
    --header-bg: #ffffff;
    --gradient-bg: linear-gradient(135deg, #67BFFF 0%, #492FF4 25%, #B241DE 50%, #DA886D 100%);
    
    /* Input cursor colors */
    --input-cursor: hotpink;
    
    /* Gradient colors for animated caret */
    --gradient-blue: #67BFFF;
    --gradient-purple: #492FF4;
    --gradient-magenta: #B241DE;
    --gradient-orange: #DA886D;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-secondary);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.4;
    font-size: 13px;
    font-weight: 400;
    height: 100vh;
    overflow: hidden;
}

/* Animated caret color keyframes */
@keyframes caret-rainbow {
    0% { caret-color: var(--gradient-blue); }
    25% { caret-color: var(--gradient-purple); }
    50% { caret-color: var(--gradient-magenta); }
    75% { caret-color: var(--gradient-orange); }
    100% { caret-color: var(--gradient-blue); }
}

.page-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.chat-section {
    width: 33.333%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 8px;
}

.emoji-section {
    width: 66.667%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wave-emoji {
    font-size: 6rem;
}


/* ==========================================================================
   Chat Container Layout
   ========================================================================== */

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    background-color: var(--chat-bg);
    border-radius: 6px;
    overflow: hidden;
}

.chat-header {
    padding: 8px 8px 8px 16px;
    background-color: var(--header-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header .logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header .logo-section img {
    width: auto;
    height: 16px;
}

.chat-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.chat-header .search-input {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-primary);
    min-width: 200px;
    outline: none;
    transition: all 0.2s ease;
    caret-color: var(--input-cursor);
    animation: caret-rainbow 3s ease-in-out infinite;
}

.chat-header .search-input:focus {
    border-color: var(--accent);
    background-color: var(--bg-primary);
    box-shadow: 0 0 0 2px rgba(73, 47, 244, 0.2);
}

.chat-header .button-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-header .add-button, .chat-header .reset-button {
    background-color: var(--bg-secondary);
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-header .add-button:hover, .chat-header .reset-button:hover {
    background-color: var(--bg-tertiary);
}

.chat-header .add-button:active, .chat-header .reset-button:active {
    background-color: var(--text-muted);
}

.chat-header .add-button::before {
    content: '+';
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 300;
}

.chat-header .reset-button::before {
    content: 'R';
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 300;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-input-container {
    padding: 16px;
    background-color: var(--header-bg);
    position: relative;
}

/* ==========================================================================
   Message Bubbles
   ========================================================================== */

.message {
    display: flex;
    margin-bottom: 16px;
    animation: fadeInUp 0.3s ease-out;
}

.message.agent {
    justify-content: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 85%;
    position: relative;
    word-wrap: break-word;
    line-height: 1.4;
}

.message.user .message-bubble {
    background-color: var(--user-bubble);
    color: var(--user-text);
    border-bottom-right-radius: 2px;
    box-shadow: 0 2px 4px rgba(73, 47, 244, 0.31);
    padding: 8px 12px;
    border-radius: 8px;
    border-top-right-radius: 0;
}

.message-content {
    margin: 0;
}

.message-content p {
    margin-bottom: 8px;
}

.message-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Message Content Styling
   ========================================================================== */

.message-content h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.message-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.message-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: -1rem;
}

.message-content h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.message-content h5 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.message-content h6 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.message-content ul,
.message-content ol {
    margin: 8px 0;
    padding-left: 24px;
}

.message-content li {
    margin-bottom: 4px;
}

.message-content strong {
    font-weight: 700;
}

.message-content em {
    font-style: italic;
}

.message-content code {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

.message-content pre {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 8px 0;
}

.message-content pre code {
    background: none;
    padding: 0;
}

.message-content a {
    color: inherit;
    text-decoration: underline;
    opacity: 0.8;
}

.message-content a:hover {
    opacity: 1;
}

.message-content a.response-link {
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: rgba(194, 70, 76, 0.1);
    transition: all 0.2s ease;
}

.message-content a.response-link:hover {
    background-color: rgba(194, 70, 76, 0.2);
    transform: translateY(-1px);
}

/* ==========================================================================
   Input Controls
   ========================================================================== */

.chat-input-container {
    position: relative;
    background-color: var(--bg-primary);
    padding: 16px;
    z-index: 10;
}

.chat-input-container::before {
    content: '';
    position: absolute;
    top: -269px;
    left: 0;
    right: 0;
    height: 400px;
    background-image: url('images/text-area-gradient.svg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: -1;
}

.chat-input-container:focus-within::before {
    opacity: 1;
}

.chat-input {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: var(--border);
    border-radius: 8px;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border: 2px solid var(--border);
}

.chat-input:focus-within {
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
                linear-gradient(135deg, #492FF4 0%, #7E4BBC 50%, #F15852 100%) border-box;
}

.chat-input textarea {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    resize: none;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-primary);
    transition: background-color 0.2s ease;
    caret-color: var(--input-cursor);
    animation: caret-rainbow 3s ease-in-out infinite;
}

.chat-input textarea::placeholder {
    color: var(--text-muted);
}


.chat-input button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chat-input:focus-within button {
    background: var(--accent);
    color: var(--bg-primary);
}

.chat-input button svg {
    width: 16px;
    height: 16px;
}

/* Thinking state */
.chat-input.thinking {
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.chat-input.thinking textarea {
    color: var(--text-muted);
}

.chat-input.thinking button {
    background: var(--bg-secondary);
    color: var(--error);
}

.chat-input.thinking button svg {
    width: 12px;
    height: 12px;
}

/* Stop icon for thinking state */
.chat-input.thinking button::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--error);
    border-radius: 2px;
}

.chat-input.thinking button svg {
    display: none;
}

/* Auto-populated styles removed */

/* Highlight animation removed */

.chat-input button {
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(73, 47, 244, 0.31);
    font-size: 13px;
    font-weight: 500;
}

.chat-input button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(73, 47, 244, 0.4);
}

.chat-input button:active {
    background-color: var(--accent-active);
    transform: translateY(0);
}

.chat-input button:disabled {
    background-color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0.5;
}

.chat-input button svg {
    width: 16px;
    height: 16px;
}

.chat-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}

.chat-controls button {
    padding: 8px 16px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-controls button:hover {
    background-color: var(--bg-tertiary);
}

.chat-controls button:active {
    background-color: var(--text-muted);
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
    background-color: var(--agent-bubble);
    color: var(--agent-text);
    border-radius: 1.25rem;
    border-bottom-left-radius: 0.25rem;
    max-width: 70px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--agent-text);
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

.thinking-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
    background-color: var(--agent-bubble);
    color: var(--agent-text);
    border-radius: 1.25rem;
    border-bottom-left-radius: 0.25rem;
    max-width: 70px;
}

.thinking-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--agent-text);
    animation: thinking 1.2s infinite;
}

.thinking-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.thinking-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes thinking {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .page-layout {
        flex-direction: column;
    }
    
    .chat-section {
        width: 100%;
        height: 60vh;
    }
    
    .emoji-section {
        width: 100%;
        height: 40vh;
    }
    
    .wave-emoji {
        font-size: 8rem;
    }
    
    .chat-container {
        max-width: 100%;
    }
    
    .chat-header,
    .chat-messages,
    .chat-input-container {
        padding: 1rem;
    }
    
    .message-bubble {
        max-width: 85%;
    }
    
    .chat-input {
        flex-direction: column;
    }
    
    .chat-input button {
        align-self: flex-end;
        width: auto;
    }
    
    .chat-controls {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    .message-bubble {
        max-width: 90%;
        padding: 0.5rem;
    }
    
    .chat-header h1 {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   Scrollbar Styling
   ========================================================================== */

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ==========================================================================
   Loading Spinner Styles
   ========================================================================== */

.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 4px solid var(--bg-tertiary);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.loading-spinner p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ==========================================================================
   Candidate Table Styles
   ========================================================================== */

.candidate-table-container {
    background: var(--bg-primary);
    border-radius: 6px;
    max-width: 98%;
    max-height: 98%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.table-header {
    text-align: left;
    position: relative;
    padding: 8px 8px 8px 16px;
    border-bottom: 1px solid var(--border);
}

.table-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.table-header p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

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

.header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.segmented-control {
    display: flex;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 4px;
    gap: 0;
}

.segment-button {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.segment-button.active {
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.segment-button:hover:not(.active) {
    background: var(--hover);
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-secondary);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

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

.action-btn img {
    flex-shrink: 0;
}

.delete-btn {
    padding: 8px;
}

.delete-btn img {
    margin: 0;
}

.view-people-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: absolute;
    top: 0;
    right: 0;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.view-people-btn:hover {
    background: var(--accent-hover);
}

.candidate-cards {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex: 1;
    /* padding-right: 8px; */
}

.candidate-cards::-webkit-scrollbar {
    width: 6px;
}

.candidate-cards::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.candidate-cards::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

.candidate-cards::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.candidate-cards:last-child {
    margin-bottom: 64px;
}

.candidate-card {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    border-left: 4px solid var(--bg-primary);
    padding: 16px 0 16px 48px;
    transition: box-shadow 0.2s ease;
    position: relative;
}

.candidate-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.candidate-card.selected {
    background: var(--accent-light);
    border-left: 4px solid var(--accent);
}

.candidate-card.selected .candidate-checkbox {
    background: var(--accent);
    border-color: var(--accent);
}

.candidate-checkbox {
    position: absolute;
    left: 16px;
    top: 18px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    opacity: 1;
    visibility: visible;
    display: block;
}

.candidate-checkbox:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.candidate-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.candidate-card.selected .candidate-checkbox {
    background: var(--accent);
    border-color: var(--accent);
}

.candidate-card.selected .candidate-checkbox::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.candidate-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    margin-bottom: 4px;
    align-items: center;
    gap: 8px;
}

.attachment-icon {
    color: var(--text-secondary);
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(42%) sepia(8%) saturate(1234%) hue-rotate(202deg) brightness(95%) contrast(86%);
}

.job-history {
    margin-bottom: 8px;
}

.job-item {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
}

.job-item .experience {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 13px;
    line-height: 1.4;
}

.job-item .duration {
    color: var(--text-secondary);
    font-weight: 400;
}

.rating {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
}

.skills {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.skill-tag {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 400;
    border: 1px solid var(--border-color);
}

/* ==========================================================================
   Selection Bar
   ========================================================================== */

.selection-bar {
    position: fixed;
    bottom: 0;
    left: 33.4%;
    width: 66.6%;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.selection-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.select-all-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.select-all-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-all-checkbox:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.select-all-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.select-all-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selection-icon {
    color: var(--accent);
}

.selection-count {
    font-size: 13px;
    font-weight: 500;
}

.selection-actions {
    display: flex;
    gap: 12px;
}

.action-button {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.action-button.secondary {
    background: transparent;
    color: var(--text-primary);
}

.action-button.secondary:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.action-button.primary {
    background: var(--accent);
    color: var(--bg-primary);
}

.action-button.primary:hover {
    background: var(--accent-hover);
}

/* ==========================================================================
   Dropdown Menu
   ========================================================================== */

.dropdown-container {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1001;
    display: none;
    margin-bottom: 8px;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

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

.dropdown-item:hover {
    background: var(--bg-secondary);
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Color the paperplane icon to match the text color */
.dropdown-item[data-action="message"] .dropdown-icon {
    filter: brightness(0) saturate(100%) invert(42%) sepia(8%) saturate(1234%) hue-rotate(202deg) brightness(95%) contrast(86%);
}

.dropdown-item span {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 400;
}

/* Responsive adjustments for candidate table */
@media (max-width: 768px) {
    .candidate-table-container {
        padding: 16px;
        margin: 8px;
    }
    
    .table-header h2 {
        font-size: 20px;
    }
    
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .header-controls {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }
    
    .segmented-control {
        flex-shrink: 0;
    }
    
    .segment-button {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .action-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .delete-btn {
        padding: 6px;
    }
    
    .candidate-card {
        padding: 12px 12px 12px 40px;
    }
    
    .candidate-checkbox {
        left: 12px;
        top: 12px;
    }
    
    .candidate-name {
        font-size: 13px;
    }
    
    .job-item {
        font-size: 12px;
    }
}
