* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: #333;
    line-height: 1.6;
}

/* Kobby.nl Brand Colors */
:root {
    --kobby-primary: #2B5CE6;
    --kobby-secondary: #6B73FF;
    --kobby-accent: #9C27B0;
    --kobby-success: #4CAF50;
    --kobby-warning: #FF9800;
    --kobby-danger: #F44336;
    --kobby-light: #F8F9FA;
    --kobby-dark: #212529;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Vertical Sidebar Navigation */
.sidebar {
    width: 250px;
    background: var(--kobby-primary);
    color: white;
    padding: 2rem 0;
    box-shadow: 2px 0 10px rgba(43, 92, 230, 0.1);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    padding: 0 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

.nav-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem;
}

.nav-tab {
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: white;
}

.nav-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    color: white;
}

.nav-tab.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
    border-left-color: white;
}

/* Special styling for Teach Kobby button */
.nav-tab.teach-kobby {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    margin-bottom: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.nav-tab.teach-kobby:hover {
    background: linear-gradient(135deg, #FF5252, #FF7043);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.nav-tab.teach-kobby.active {
    background: linear-gradient(135deg, #E53E3E, #DD6B20);
    border-color: white;
}

.nav-section-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem 1.5rem;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 2rem;
    max-width: calc(100% - 250px);
}

.section {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

#importsSection .section {
    display: block !important;
}

.section.active {
    display: block;
}

.tab-content.active .section {
    display: block !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dashboard Cards - Made Smaller */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border-left: 3px solid var(--kobby-primary);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--kobby-primary);
}

.stat-label {
    color: #666;
    margin-top: 0.25rem;
    font-size: 0.9rem;
}

/* Smaller section headings */
.section h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--kobby-dark);
    font-weight: 600;
}

/* Chat Interface */
.chat-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 600px;
    display: flex;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: var(--kobby-primary);
    color: white;
    padding: 1rem;
    border-radius: 12px 0 0 0;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.message.kobby {
    justify-content: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    word-wrap: break-word;
}

.message.kobby .message-bubble {
    background: var(--kobby-secondary);
    color: white;
    border-bottom-left-radius: 6px;
}

.message.user .message-bubble {
    background: #e9ecef;
    color: #333;
    border-bottom-right-radius: 6px;
}

.message-input {
    padding: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 1rem;
}

.message-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
}

.send-btn {
    background: var(--kobby-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-btn:hover {
    background: var(--kobby-secondary);
}

/* Progress Panel */
.progress-panel {
    width: 300px;
    background: white;
    border-left: 1px solid #eee;
    padding: 1.5rem;
}

.progress-step {
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    border-left: 3px solid #ddd;
}

.progress-step.completed {
    border-left-color: var(--kobby-success);
    background: #f8fff9;
}

.progress-step.active {
    border-left-color: var(--kobby-primary);
    background: #f8f9ff;
}

/* Input Fields */
.inline-field {
    margin: 1rem 0;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.inline-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--kobby-primary);
}

.inline-field input, .inline-field textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
}

.inline-field input:focus, .inline-field textarea:focus {
    border-color: var(--kobby-primary);
    box-shadow: 0 0 0 3px rgba(43, 92, 230, 0.1);
}

/* Conversation History */
.conversation-table {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.conversation-table table {
    width: 100%;
    border-collapse: collapse;
}

.conversation-table th {
    background: var(--kobby-primary);
    color: white;
    padding: 1rem;
    text-align: left;
}

.conversation-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.conversation-row {
    cursor: pointer;
    transition: all 0.3s ease;
}

.conversation-row:hover {
    background: #f8f9fa;
}

.conversation-row.expanded {
    background: #f0f4ff;
}

.conversation-details {
    display: none;
}

.conversation-details.show {
    display: table-row;
}

.conversation-transcript-inline {
    padding: 2rem;
    background: #f8f9fa;
    border-top: 2px solid var(--kobby-primary);
}

.transcript-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.transcript-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--kobby-primary);
}

.close-transcript-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-transcript-btn:hover {
    background: #5a6268;
}

.conversation-messages {
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.transcript-message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 3px solid #ddd;
}

.transcript-message.customer {
    background: #fff3cd;
    border-left-color: var(--kobby-warning);
}

.transcript-message.kobby {
    background: #d1ecf1;
    border-left-color: var(--kobby-primary);
}

.transcript-message.system {
    background: #f8d7da;
    border-left-color: var(--kobby-danger);
}

.message-sender {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--kobby-primary);
}

.message-text {
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.message-meta {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conversation-summary {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #ddd;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.summary-stat {
    text-align: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.summary-stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--kobby-primary);
}

.summary-stat-label {
    font-size: 0.85rem;
    color: #666;
}

.expand-icon {
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
    cursor: pointer;
    user-select: none;
    font-weight: bold;
    color: var(--kobby-primary);
}

.expand-icon:hover {
    transform: scale(1.2);
}

.conversation-row.expanded .expand-icon {
    transform: rotate(90deg);
}

.sentiment-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.sentiment-positive { background: var(--kobby-success); }
.sentiment-negative { background: var(--kobby-danger); }
.sentiment-neutral { background: #6c757d; }

/* Analytics Charts */
.chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.chart-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--kobby-primary);
}

/* Settings Forms */
.settings-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.settings-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--kobby-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--kobby-primary);
    box-shadow: 0 0 0 2px rgba(43, 92, 230, 0.1);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-group input[readonly] {
    background-color: #f8f9fa;
    color: #666;
}

.form-group.hr {
    border-left: 4px solid red;
    padding-left: 0.75rem;
}

.form-group.important {
    border-left: 4px solid orange;
    padding-left: 0.75rem;
}

.btn {
    background: var(--kobby-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: var(--kobby-secondary);
    text-decoration: none;
    color: white;
}

.btn-primary {
    background: var(--kobby-primary);
}

.btn-primary:hover {
    background: var(--kobby-secondary);
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-success {
    background: var(--kobby-success);
}

.btn-success:hover {
    background: #45a049;
}

.btn-warning {
    background: var(--kobby-warning);
}

.btn-warning:hover {
    background: #e68900;
}

.btn-danger {
    background: var(--kobby-danger);
}

.btn-danger:hover {
    background: #d32f2f;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 12px;
}

/* Big Data Table Styles */
.data-table-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
}

.data-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.data-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.data-filters input, .data-filters select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    min-width: 150px;
}

.data-filters input:focus, .data-filters select:focus {
    border-color: var(--kobby-primary);
    box-shadow: 0 0 0 2px rgba(43, 92, 230, 0.1);
}

.data-actions {
    display: flex;
    gap: 0.5rem;
}

.big-data-table {
    max-height: 600px;
    overflow: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.big-data-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.big-data-table th {
    background: var(--kobby-primary);
    color: white;
    padding: 0.75rem 0.5rem;
    text-align: left;
    position: sticky;
    top: 0;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    z-index: 10;
}

.big-data-table th:hover {
    background: var(--kobby-secondary);
}

.big-data-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.big-data-table tbody tr:hover {
    background: #f8f9fa;
}

.big-data-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.big-data-table tbody tr:nth-child(even):hover {
    background: #f0f0f0;
}

.sort-arrow {
    margin-left: 0.5rem;
    opacity: 0.6;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    min-width: 60px;
    display: inline-block;
}

.status-active { background: #d4edda; color: #155724; }
.status-inactive { background: #f8d7da; color: #721c24; }
.status-pending { background: #fff3cd; color: #856404; }
.status-filled { background: #d1ecf1; color: #0c5460; }
.status-expired { background: #f8d7da; color: #721c24; }

.salary-range {
    font-weight: 600;
    color: var(--kobby-primary);
}

.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    color: #666;
    font-size: 0.9rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0 1rem;
}

.page-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: #f8f9fa;
    border-color: var(--kobby-primary);
}

.page-btn.active {
    background: var(--kobby-primary);
    color: white;
    border-color: var(--kobby-primary);
}

.action-btn {
    background: none;
    border: none;
    color: var(--kobby-primary);
    cursor: pointer;
    padding: 0.25rem;
    margin: 0 0.125rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    color: var(--kobby-secondary);
    transform: scale(1.1);
}

/* Vacancy Details Styles */
.vacancy-row.expanded {
    background: #f0f4ff;
}

.vacancy-details-row {
    background: #f8f9ff;
}

.vacancy-details-content {
    padding: 1.5rem;
    border-top: 2px solid var(--kobby-primary);
    width: 100%;
    box-sizing: border-box;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.details-header h4 {
    color: var(--kobby-primary);
    margin: 0;
    font-size: 1.2rem;
}

.close-details-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.close-details-btn:hover {
    background: #5a6268;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
    width: 100%;
}

.detail-section {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #eee;
    width: 100%;
    box-sizing: border-box;
}

.detail-section h5 {
    color: var(--kobby-primary);
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section p {
    margin: 0;
    line-height: 1.5;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    width: 100%;
    box-sizing: border-box;
}

.raw-data-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.raw-data-section details {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.5rem;
}

.raw-data-section summary {
    cursor: pointer;
    font-weight: 600;
    padding: 0.5rem;
    color: var(--kobby-primary);
}

.raw-data-section pre {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    overflow-x: auto;
    font-size: 0.85rem;
    margin: 0.5rem 0 0 0;
    max-height: 300px;
    overflow-y: auto;
}

/* Teach Kobby Chat Styles - Based on thechat.php */
.teach-chat-main-container {
    display: flex;
    height: 600px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.teach-chat-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

.teach-mainchat {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--kobby-light);
    scroll-behavior: smooth;
}

.teach-chat-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message-wrapper {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

.chatbubble {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 80%;
    animation: fadeInUp 0.3s ease-out;
}

.chatbubbleuser {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 80%;
    margin-left: auto;
    flex-direction: row-reverse;
    animation: fadeInUp 0.3s ease-out;
}

.messageuserimg {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.message-content {
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.chatbubbleuser .message-content {
    background: #e8f5e9;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 4px;
    border-color: #c8e6c9;
}

.teach-textfield {
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    padding: 16px 20px;
}

.privacy-notice {
    font-size: 11px;
    color: #888;
    text-align: center;
    margin-bottom: 12px;
}

.teach-input-form {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    border-radius: 24px;
    padding: 4px;
    border: 1px solid #e0e0e0;
}

.teach-input-form .textinput {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 16px;
    outline: none;
    color: #333;
}

.teach-input-form .textinput::placeholder {
    color: #999;
}

.teach-input-form .submit {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--kobby-primary);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.teach-input-form .submit:hover {
    background: var(--kobby-secondary);
    transform: scale(1.05);
}

.teach-input-form .submit:active {
    transform: scale(0.95);
}

.teach-progress-panel {
    width: 280px;
    background: #f8f9fa;
    border-left: 1px solid #e0e0e0;
    padding: 20px;
    overflow-y: auto;
    display: none;
}

.teach-progress-panel h4 {
    margin-bottom: 20px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.progress-step.active {
    background: rgba(43, 92, 230, 0.08);
    border-color: var(--kobby-primary);
}

.progress-step.completed {
    background: rgba(76, 175, 80, 0.08);
    border-color: var(--kobby-success);
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.progress-step.active .step-number {
    background: var(--kobby-primary);
    color: white;
}

.progress-step.completed .step-number {
    background: var(--kobby-success);
    color: white;
}

.step-content {
    flex: 1;
}

.step-content strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.step-content span {
    font-size: 11px;
    color: #666;
    line-height: 1.3;
}

/* Typing indicator */
.typing {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-style: italic;
    font-size: 13px;
}

.typing::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
    animation: typing 1.4s infinite;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Candidate Details Styles - Similar to Vacancy Details */
.candidate-row.expanded {
    background: #f0f4ff;
}

.candidate-details-row {
    background: #f8f9ff;
}

.candidate-details-content {
    padding: 1.5rem;
    border-top: 2px solid var(--kobby-primary);
    width: 100%;
    box-sizing: border-box;
}

/* Candidate Details Modal */
.candidate-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.candidate-modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 20px;
    border: none;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.candidate-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--kobby-primary);
}

.candidate-modal-header h2 {
    color: var(--kobby-primary);
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--kobby-danger);
}

.candidate-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.candidate-detail-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid var(--kobby-primary);
}

.candidate-detail-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.candidate-detail-value {
    color: #666;
    font-size: 0.95rem;
    word-wrap: break-word;
}

.candidate-additional-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.candidate-additional-info h4 {
    color: #856404;
    margin: 0 0 10px 0;
    font-size: 1rem;
}

.candidate-additional-info p {
    color: #856404;
    margin: 0;
    line-height: 1.5;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

#vacancyEditForm {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--kobby-primary);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.close-btn:hover {
    background-color: #f0f0f0;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #ddd;
    background: white;
    flex-shrink: 0;
}

.modal-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.modal-btn-primary {
    background-color: var(--kobby-primary);
    color: white;
}

.modal-btn-primary:hover {
    background-color: #1d4ed8;
}

.modal-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.modal-btn-secondary:hover {
    background-color: #545b62;
}

/* Responsive design */
@media (max-width: 768px) {
    .teach-chat-main-container {
        flex-direction: column;
        height: auto;
        min-height: 500px;
    }

    .teach-progress-panel {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e0e0e0;
        order: -1;
        max-height: 200px;
    }

    .chatbubble, .chatbubbleuser {
        max-width: 90%;
    }

    .teach-input-form .textinput {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .candidate-details-grid {
        grid-template-columns: 1fr;
    }

    .candidate-modal-content {
        margin: 5% auto;
        width: 95%;
    }

    .main-content {
        margin-left: 0;
        max-width: 100%;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.show {
        transform: translateX(0);
    }
}

.upload-area {
    border: 2px dashed var(--kobby-primary);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    margin: 20px 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    background-color: rgba(43, 92, 230, 0.05);
    border-color: var(--kobby-accent);
}

.upload-area.dragover {
    background-color: rgba(43, 92, 230, 0.1);
    border-color: var(--kobby-accent);
}

.text-input-area {
    margin: 20px 0;
}

.text-input-area textarea {
    width: 100%;
    min-height: 300px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    resize: vertical;
}

.processing-status {
    display: none;
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    border-left: 4px solid var(--kobby-primary);
}

.parsed-vacancies {
    margin: 20px 0;
}

.vacancy-preview {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    background-color: #f9f9f9;
}

.vacancy-preview h4 {
    color: var(--kobby-primary);
    margin: 0 0 10px 0;
}

.vacancy-field {
    margin: 5px 0;
    font-size: 14px;
}

.vacancy-field strong {
    color: #333;
    min-width: 120px;
    display: inline-block;
}

.missing-field {
    color: #dc3545;
    background-color: #fff5f5;
    padding: 2px 4px;
    border-radius: 3px;
    border: 1px solid #fecaca;
}

.incomplete-vacancy {
    border-left: 4px solid #dc3545;
}

.complete-vacancy {
    border-left: 4px solid #28a745;
}

.vacancy-actions {
    margin-top: 10px;
    text-align: right;
}

.validation-summary {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
}

.validation-summary.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.validation-summary.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.import-controls {
    margin: 20px 0;
    text-align: center;
}

.tab-buttons {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-button {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-button.active {
    border-bottom-color: var(--kobby-primary);
    color: var(--kobby-primary);
}

.tab-content {
    display: none !important;
}

.tab-content.active {
    display: block !important;
}

.file-info {
    margin: 10px 0;
    padding: 10px;
    background-color: #e9ecef;
    border-radius: 6px;
    font-size: 14px;
}
