/* Rechtmaschine Styles */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.upload-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

input[type="file"] {
    margin: 10px 0;
}

.btn {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.btn:hover {
    background-color: #2980b9;
}

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

.btn.btn-danger:hover {
    background-color: #c0392b;
}

.loading {
    display: none;
    color: #7f8c8d;
    font-style: italic;
    text-align: center;
    margin: 10px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

.category-box {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-height: 300px;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid;
}

.category-box h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid;
    margin: 0;
}

.btn-add-doc {
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    font-family: Arial, sans-serif;
}

.btn-add-doc:hover {
    background-color: #229954;
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.btn-add-doc:active {
    transform: scale(0.95);
}

.category-box.anhoerung {
    border-top: 4px solid #3498db;
}

.category-box.anhoerung h3 {
    color: #3498db;
    border-color: #3498db;
}

.category-box.bescheid {
    border-top: 4px solid #27ae60;
}

.category-box.bescheid h3 {
    color: #27ae60;
    border-color: #27ae60;
}

.category-box.akte {
    border-top: 4px solid #8e44ad;
}

.category-box.akte h3 {
    color: #8e44ad;
    border-color: #8e44ad;
}

.category-box.rechtsprechung {
    border-top: 4px solid #e67e22;
}

.category-box.rechtsprechung h3 {
    color: #e67e22;
    border-color: #e67e22;
}

.category-box.sonstiges {
    border-top: 4px solid #95a5a6;
}

.category-box.sonstiges h3 {
    color: #95a5a6;
    border-color: #95a5a6;
}

.document-card {
    background: #f8f9fa;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border-left: 3px solid #3498db;
    position: relative;
}

.document-card .filename {
    font-weight: bold;
    color: #2c3e50;
    word-break: break-word;
    margin-bottom: 5px;
}

.document-card .confidence {
    font-size: 12px;
    color: #7f8c8d;
}

.document-card .status-badge {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    background-color: #e8f6f0;
    color: #2c7a4b;
}

.document-card .delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
}

.document-card .delete-btn:hover {
    background: #c0392b;
}

.document-card .anonymize-btn {
    margin-top: 8px;
    padding: 4px 8px;
    font-size: 11px;
    background-color: #4A90E2;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
}

.document-card .anonymize-btn:hover {
    background-color: #357ABD;
}

.document-card .anonymize-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.document-card .anonymize-btn.secondary {
    background-color: #27ae60;
}

.document-card .anonymize-btn.secondary:hover {
    background-color: #1f8a4c;
}

.document-card .status-badge.ocr-needed {
    background-color: #fff3cd;
    color: #856404;
}

.document-card .status-badge.ocr-completed {
    background-color: #e8f6f0;
    color: #2c7a4b;
}

.document-card .status-badge.anonymized {
    background-color: #e8f6f0;
    color: #2c7a4b;
}

.document-card .ocr-btn {
    margin-top: 8px;
    padding: 4px 8px;
    font-size: 11px;
    background-color: #ffc107;
    color: #000;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
}

.document-card .ocr-btn:hover {
    background-color: #e0a800;
}

.document-card .ocr-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.selection-wrapper {
    margin-bottom: 8px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.selection-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.selection-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #2c3e50;
}

.selection-option input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.empty-message {
    color: #95a5a6;
    font-style: italic;
    text-align: center;
    margin-top: 20px;
}
