/* documents.css - Styling für Dokumentenliste */

.documents-header {
    padding: 1rem;
    background: var(--background-color);
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
}

.documents-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.documents-list {
    max-height: 500px;
    overflow-y: auto;
}

.document-directory {
    padding: 0.75rem 1rem;
    background: #f0f0f0;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin-top: 0.5rem;
}

.document-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
    cursor: pointer;
}

.document-item:hover {
    background-color: #f8f9fa;
}

.document-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1rem;
    min-width: 2rem;
    text-align: center;
}

.document-icon .fa-file-pdf {
    color: #d32f2f;
}

.document-icon .fa-file-word {
    color: #2b579a;
}

.document-icon .fa-file-excel {
    color: #217346;
}

.document-icon .fa-file-powerpoint {
    color: #d24726;
}

.document-icon .fa-file-image {
    color: #7c4dff;
}

.document-icon .fa-file-archive {
    color: #ff6f00;
}

.document-icon .fa-map {
    color: #00897b;
}

.document-info {
    flex: 1;
    min-width: 0;
}

.document-name {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.document-meta {
    font-size: 0.875rem;
    color: #666;
}

/* Links innerhalb der Dokumentzeile */
.document-link,
.document-link-icon {
    color: inherit;
    text-decoration: none;
}
.document-link:hover,
.document-link-icon:hover {
    text-decoration: underline;
}

.document-actions {
    margin-left: 1rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
}

.btn-download:hover {
    background: #c52643;
}

.btn-download i {
    font-size: 1rem;
}

.no-documents {
    padding: 3rem;
    text-align: center;
    color: #999;
}

.no-documents p {
    margin: 0;
    font-size: 1.1rem;
}

/* Button zum Öffnen der Dokumente */
.btn-documents {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.2s;
    text-decoration: none;
}

.btn-documents:hover {
    background: #c52643;
}

.btn-documents i {
    font-size: 1rem;
}

/* Kleine Variante für Tabellen */
.btn-documents-small {
    padding: 0.35rem 0.75rem;
    font-size: 0.813rem;
}

/* Icon-only Variante */
.btn-documents-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    justify-content: center;
}

.btn-documents-icon span {
    display: none;
}

/* Dokumenten-Sektion in Details-Ansicht */
.documents-section {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: 4px;
    border: 1px solid #ddd;
}

.documents-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.documents-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
