:root {
    --primary-color: #c7966c;
    --primary-hover: #b8885f;
    --secondary-color: #6b7280;
    --secondary-hover: #5b626e;
    --dark-grey: #263238;
    --light-grey: #f3f4f6;
    --border-color: #d1d5db;
    --text-muted: #6b7280;
    --white: #ffffff;
}

/* Component imports */
@import url("components/badges.5443c1dd347e.css");
@import url("components/buttons.ec22f8a40d81.css");

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--white);
    color: var(--dark-grey);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    color: var(--dark-grey);
}

.logo {
    height: 40px;
    width: auto;
}

main {
    padding: 40px 0;
}

.suggested-type-container {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggested-type-label {
    font-weight: bold;
    margin: 0;
    color: #495057;
}

.suggested-type-value {
    color: #28a745;
    font-weight: 500;
}

.use-suggested-type {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.use-suggested-type:hover {
    background-color: #218838;
}

.type-separator {
    text-align: center;
    margin: 15px 0;
    position: relative;
}

.type-separator::before,
.type-separator::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background-color: #dee2e6;
}

.type-separator::before {
    left: 0;
}

.type-separator::after {
    right: 0;
}

.type-separator span {
    background-color: white;
    padding: 0 10px;
    color: #6c757d;
    font-size: 0.9em;
}

/* Document Detail Styles */
.document-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.document-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.document-header h2 {
    color: var(--dark-grey);
    margin-bottom: 1rem;
}

.document-meta {
    color: #666;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.document-meta p {
    margin-bottom: 0.5rem;
}

.document-actions {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.document-actions button,
.document-actions a {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}

/* Button styles removed - using buttons.css component */

/* Button styles removed - using buttons.css component */

/* Button styles removed - using buttons.css component */

/* View markdown button styles removed - using buttons.css component */

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    margin: 1rem 0;
}

/* Document Type Form Styles */
.document-type-form {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.document-type-form .form-group {
    margin-bottom: 1rem;
}

.document-type-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.update-type-button {
    background: #666;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.update-type-button:hover {
    background: #555;
}

/* PDF Viewer Styles */
.pdf-viewer-container {
    width: 100%;
    height: 800px;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
}

/* Markdown Content Styles */
.markdown-content {
    margin-top: 1rem;
    padding: 2rem;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.markdown-rendered {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Pulse Jobs Styles */
.pulse-jobs-list {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.pulse-jobs-list h3 {
    margin-bottom: 1rem;
    color: var(--dark-grey);
}

.pulse-job-info {
    padding: 1rem;
    background: white;
    border-radius: 4px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pulse-job-info p {
    margin: 0.5rem 0;
}

.pulse-job-info button {
    margin-right: 0.5rem;
}

.pulse-results {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.json-response {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    font-family: monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 500px;
    overflow-y: auto;
}

/* Unlock PDF Form Styles */
.unlock-pdf-form {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.password-input {
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 1rem;
    margin-right: 0.5rem;
}

.unlock-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.unlock-button:hover {
    background: #45a049;
}

.unlock-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    overflow-y: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 4px;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-top: -10px;
}

.close:hover {
    color: black;
}

.form-group {
    margin-bottom: 0.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 0.4rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

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

.submit-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    width: 100%;
    margin-top: 0.75rem;
}

.submit-button:hover {
    background: #45a049;
}

.form-group label[for^="checkbox"] {
    margin-left: 0.5rem;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.fetch-from-pulse {
    background: #2196F3;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    height: 32px;
    line-height: 1;
}

.fetch-from-pulse:hover {
    background: #1976D2;
}

.pulse-status {
    margin-top: 2rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pulse-status h3 {
    margin-top: 0;
}

#pulse-results {
    margin-top: 1rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 4px;
    display: none;
}

#pulse-results.visible {
    display: block;
}

#pulse-results pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.markdown-rendered h1 {
    font-size: 2em;
    margin-bottom: 1em;
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.3em;
}

.markdown-rendered h2 {
    font-size: 1.5em;
    margin: 1.5em 0 0.5em;
    color: #2c3e50;
}

.markdown-rendered p {
    margin: 1em 0;
}

.markdown-rendered ul {
    margin: 1em 0;
    padding-left: 2em;
}

.markdown-rendered li {
    margin: 0.5em 0;
}

.markdown-rendered pre {
    background: #f8f9fa;
    padding: 1em;
    border-radius: 4px;
    overflow-x: auto;
}

.markdown-rendered code {
    background: #f8f9fa;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: monospace;
}

.markdown-rendered blockquote {
    border-left: 4px solid #ddd;
    padding-left: 1em;
    color: #666;
    margin: 1em 0;
}

/* Active state for view buttons */
.btn.active {
    opacity: 0.85;
    transform: translateY(1px);
}

.view-pulse-response {
    background: #FF9800;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
}

.view-pulse-response:hover {
    background: #F57C00;
}

.view-pulse-response.active {
    background: #F57C00;
}

.hidden {
    display: none !important;
} 