/* Globale Container für das Plugin */
.sdh-container {
    max-width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* Grund-Styling für das Formular */
.sdh-form {
}

.sdh-form h3 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4em;
    color: #202124;
}

.sdh-form p {
    font-size: 14px;
    color: #5f6368;
    margin-top: 0;
    margin-bottom: 24px;
}

hr {
    border: none;
    border-top: 1px solid #dadce0;
    margin: 32px 0;
}

/* Dashboard-Struktur */
.sdh-document-dashboard {
    display: grid;
    grid-template-columns: 1fr; /* Eine Spalte auf Mobilgeräten */
    gap: 16px;
}

/* Auf größeren Bildschirmen zwei Spalten */
@media (min-width: 768px) {
    .sdh-document-dashboard {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Styling für die einzelnen Dokumenten-Slots */
.sdh-document-slot {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #dadce0;
    border-left-width: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.2s ease-in-out;
}

.sdh-document-slot:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.sdh-document-slot.status-missing {
    border-left-color: #80868b; /* Grau für fehlende Doks */
}
.sdh-document-slot.status-ok {
    border-left-color: #34a853; /* Grün für erledigt */
}
.sdh-document-slot.status-expired {
    border-left-color: #ea4335; /* Rot für abgelaufen */
    background-color: #fce8e6;
}

.slot-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 500;
}

.slot-info p {
    font-size: 14px;
    color: #5f6368;
    margin: 0;
    line-height: 1.4;
}

.uploaded-file-info {
    margin-top: 16px;
    font-size: 14px;
    background: #fff;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #dadce0;
}

.uploaded-file-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.uploaded-file-info .file-icon {
    font-size: 18px;
}

.uploaded-file-info small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #5f6368;
}

.expiry-notice {
    font-weight: 500;
}

.status-expired .expiry-notice strong {
    color: #c5221f;
}
.status-ok .expiry-notice {
    color: #1e8e3e;
}

.slot-action {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}

/* Styling für Formulargruppen (Label + Input) */
.sdh-form-group {
    margin-bottom: 20px;
}
.sdh-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #5f6368;
}
.sdh-form-group input[type="file"],
.sdh-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    background-color: #fff;
}
.sdh-form-group select:disabled {
    background-color: #f1f3f4;
    cursor: not-allowed;
}
.sdh-form-group input[type="file"]:focus,
.sdh-form-group select:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

/* Styling für den Haupt-Button */
.sdh-btn {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    display: inline-block;
    text-align: center;
}
.sdh-btn:hover {
    background-color: #185abc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Styling für sekundäre Buttons und Links */
.sdh-btn-secondary {
    background-color: #e8eaed;
    color: #3c4043;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}
.sdh-btn-secondary:hover {
    background-color: #dadce0;
}

/* Styling für die Löschen-Checkbox */
.sdh-delete-label {
    font-size: 14px;
    color: #5f6368;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}