/* Common styles */
body {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

h1, h2 {
    color: #333;
    text-align: center;
}

/* Navigation */
.nav-links {
    text-align: center;
    margin: 20px 0;
    padding: 10px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-links a {
    margin: 0 10px;
    text-decoration: none;
    color: #007bff;
    padding: 5px 10px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: #e9ecef;
}

.nav-links a.active {
    background-color: #007bff;
    color: white;
}

/* View Toggle */
.view-toggle {
    text-align: center;
    margin: 20px 0;
    padding: 10px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.view-toggle button {
    padding: 10px 20px;
    margin: 0 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #f0f0f0;
    transition: all 0.3s ease;
}

.view-toggle button.active {
    background-color: #007bff;
    color: white;
}

/* Content Items */
.result-item, .candidate-item {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.result-header, .candidate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.result-filename, .candidate-name {
    font-weight: bold;
    font-size: 18px;
}

.result-date, .candidate-date {
    color: #666;
    font-size: 14px;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}

.tab-btn {
    padding: 8px 15px;
    cursor: pointer;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-bottom: none;
    margin-right: 5px;
    border-radius: 3px 3px 0 0;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background-color: white;
    border-bottom: 1px solid white;
    margin-bottom: -1px;
}

.tab-content {
    display: none;
    background-color: white;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.tab-content.active {
    display: block;
}

/* Text Content */
.result-text {
    max-height: 400px;
    overflow-y: auto;
    font-family: monospace;
    white-space: pre-wrap;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 3px;
}

.cleaned-data {
    font-family: monospace;
    white-space: pre-wrap;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 3px;
}

.raw-data {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 3px;
    font-family: monospace;
    white-space: pre-wrap;
    max-height: 500px;
    overflow-y: auto;
}

/* Messages */
.no-items {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 50px;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Action Container */
.action-container {
    text-align: right;
    margin-bottom: 20px;
}

/* Candidate Info */
.candidate-info {
    margin-bottom: 15px;
}

.candidate-actions {
    text-align: right;
}

/* Buttons */
.action-btn, .btn {
    padding: 8px 15px;
    margin: 0 5px;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

.extraction-btn {
    background-color: #28a745;
    margin-top: 10px;
}

.extraction-btn:hover {
    background-color: #218838;
}

/* Button Container */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    gap: 10px;
}

.reset-form {
    display: inline-block;
}

/* Forms */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-actions {
    text-align: center;
    margin-top: 20px;
}

/* Upload */
.upload-container {
    text-align: center;
    padding: 40px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.upload-area {
    border: 2px dashed #ddd;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #007bff;
}

.upload-instructions {
    color: #666;
    margin-bottom: 10px;
}

.file-input {
    display: none;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 3px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Labels */
.candidate-source {
    display: inline-block;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 10px;
    vertical-align: middle;
}

.source-results {
    background-color: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #0d47a1;
}

.source-manual {
    background-color: #f1f8e9;
    color: #33691e;
    border: 1px solid #33691e;
}

/* Section header styles */
.section-header {
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.section-header h2 {
    font-size: 18px;
    color: #007bff;
    text-align: left;
    margin-bottom: 5px;
}

/* Project styles */
.project-entry {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    background-color: #f9f9f9;
    position: relative;
}

.project-details {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    background-color: #f8f9fa;
}

.project-details h3 {
    font-size: 16px;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
}

.remove-project {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Buttons for project management */
#add-project {
    margin-bottom: 20px;
}

/* URL field styling */
input[type="url"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 16px;
} 