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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #3498db;
}

/* Layout */
header, footer {
    background-color: #2c3e50;
    color: white;
    padding: 1rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 1.5rem;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Typography */
h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.subtitle {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

/* Buttons */
.button {
    display: inline-block;
    background-color: #95a5a6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.button.primary {
    background-color: #3498db;
}

.button.danger {
    background-color: #e74c3c;
}

.button.small {
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
}

/* Tables */
.documents-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.documents-table th,
.documents-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.documents-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.documents-table .actions {
    display: flex;
    gap: 0.5rem;
}

/* Forms */
.title-input {
    font-size: 1.5rem;
    padding: 0.5rem;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.description-input {
    width: 100%;
    min-height: 60px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-family: inherit;
    resize: vertical;
}

/* Utility classes */
.loading {
    color: #7f8c8d;
    font-style: italic;
}

.error {
    color: #e74c3c;
    font-weight: bold;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
}

.tab-button {
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
}

.tab-button.active {
    border-bottom: 2px solid #3498db;
    font-weight: bold;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.feedback-content {
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
    white-space: pre-wrap;
}

.evaluate-content-button {
    display: inline-block !important;
}