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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.robot-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.robot-icon-small {
    font-size: 32px;
    margin-right: 10px;
}

.login-box h1 {
    color: #333;
    margin-bottom: 5px;
    font-size: 28px;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

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

.form-group label {
    display: block;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.help-text {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-logout {
    background: #f8f9fa;
    color: #667eea;
    border: 1px solid #667eea;
}

.btn-logout:hover {
    background: #667eea;
    color: white;
}

.btn-block {
    width: 100%;
    padding: 14px;
}

.btn-view {
    background: #667eea;
    color: white;
}

.btn-view:hover {
    background: #5568d3;
}

.btn-edit {
    background: #7c69ef;
    color: white;
}

.btn-edit:hover {
    background: #6952de;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.dashboard {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: white;
    padding: 20px 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.header-left h1 {
    font-size: 24px;
    color: #333;
}

.header-right {
    display: flex;
    gap: 10px;
}

.content {
    flex: 1;
    padding: 40px;
}

.candidates-table,
.users-table {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f8f9fa;
}

th {
    padding: 16px;
    text-align: left;
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
}

td {
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
}

tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: #f8f9fa;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-in_progress {
    background: #cfe2ff;
    color: #084298;
}

.status-completed {
    background: #d1e7dd;
    color: #0f5132;
}

.actions {
    display: flex;
    gap: 8px;
}

.actions form {
    margin: 0;
}

.no-data {
    text-align: center;
    color: #666;
    padding: 40px;
}

.form-container,
.view-container,
.users-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.form-container h2,
.view-container h2,
.users-container h2 {
    color: #333;
    margin-bottom: 10px;
}

.form-container .subtitle {
    color: #666;
    margin-bottom: 30px;
    text-align: left;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.info-box {
    background: #e7f3ff;
    border-left: 4px solid #667eea;
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 4px;
    color: #004085;
}

.candidate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.candidate-info {
    margin-bottom: 30px;
}

.info-row {
    margin-bottom: 20px;
}

.info-row strong {
    display: block;
    color: #667eea;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-row span,
.objective-text,
.cv-text {
    color: #333;
    line-height: 1.6;
}

.objective-text,
.cv-text {
    white-space: pre-wrap;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-top: 8px;
}

.assessment-section {
    margin-bottom: 30px;
}

.assessment-section h3 {
    color: #333;
    margin-bottom: 20px;
}

.assessment-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.assessment-box h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 16px;
}

.assessment-content {
    color: #333;
    line-height: 1.8;
    white-space: pre-wrap;
}

.transcript-section h3 {
    color: #333;
    margin-bottom: 20px;
}

.transcript {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    max-height: 600px;
    overflow-y: auto;
}

.message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
}

.message-assistant {
    background: #e7f3ff;
    border-left: 4px solid #667eea;
}

.message-user {
    background: white;
    border-left: 4px solid #28a745;
}

.message-header {
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.message-header strong {
    color: #667eea;
}

.message-user .message-header strong {
    color: #28a745;
}

.timestamp {
    color: #666;
    font-size: 12px;
}

.response-time {
    color: #666;
    font-size: 12px;
    font-style: italic;
}

.message-content {
    color: #333;
    line-height: 1.6;
}

.add-user-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.add-user-form h3 {
    color: #333;
    margin-bottom: 15px;
}

.inline-form {
    display: flex;
    gap: 10px;
}

.inline-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
}

.modal-content h3 {
    color: #333;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .header-right {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .content {
        padding: 20px;
    }
    
    .form-container,
    .view-container,
    .users-container {
        padding: 20px;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 10px;
    }
    
    .actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .actions .btn {
        width: 100%;
    }
}
