/* --- GRUNDLAYOUT -------------------------------------------------- */

/* Gesamtbereich mittig, gestapelt untereinander */
.skfm-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Ordner-Regal oben über die volle Breite, scrollbar */
.skfm-folder-shelf {
    width: 100%;
    padding: 16px 0 20px;
    border-bottom: 3px solid #ddd;
    margin-bottom: 10px;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

/* Ordner-Kacheln */
.skfm-folder {
    flex: 0 0 auto;
    width: 90px;
    text-align: center;
    cursor: pointer;
    transition: transform .2s ease, filter .2s ease;
}
.skfm-folder a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.skfm-folder:hover {
    transform: translateY(-6px);
    filter: brightness(1.15);
}
.skfm-folder svg {
    display: block;
    margin: 0 auto;
}
.skfm-folder-title {
    font-size: 13px;
    margin-top: 8px;
    font-weight: 600;
    color: #222;
}
.skfm-folder-count {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}
.skfm-folder-active svg {
    stroke: #0056d6 !important;
    filter: drop-shadow(0 0 4px rgba(0,86,214,0.4));
}

/* Dateien-Bereich */
.skfm-files {
    width: 100%;
}

/* "Keine Dateien vorhanden" fest unter der Überschrift */
.skfm-empty {
    margin-top: 8px;
    font-size: 14px;
    color: #555;
}

/* Uploader unten, volle Breite */
.skfm-upload {
    width: 100%;
    background: #f7f9fc;
    border-radius: 10px;
    border: 1px solid #e3e7ef;
    padding: 18px 18px 20px;
    margin-top: 10px;
}

/* SECTION TITLE */
.skfm-section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* NOTICE */
.skfm-notice {
    background: #e6f4ea;
    border: 1px solid #b7e1c4;
    color: #1e4620;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 5px;
}

/* BREADCRUMBS */
.skfm-breadcrumbs {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}
.skfm-breadcrumbs a {
    color: #0056d6;
    text-decoration: none;
}
.skfm-breadcrumbs a:hover {
    text-decoration: underline;
}

/* FILE LIST */
.skfm-file-list {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e3e7ef;
    padding: 15px 18px;
}
.skfm-file-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 10px;
}
.skfm-file-item:last-child {
    border-bottom: none;
}
.skfm-file-icon {
    font-size: 22px;
    margin-right: 6px;
}
.skfm-file-link {
    color: #0056d6;
    text-decoration: none;
    flex: 1;
}
.skfm-file-link:hover {
    text-decoration: underline;
}
.skfm-file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.skfm-empty {
    margin: 0;
    color: #777;
}

/* BUTTONS */
.skfm-btn,
.skfm-btn-main {
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    border: none;
    cursor: pointer;
}
.skfm-btn-main {
    background: #0056d6;
    color: #fff;
    padding: 10px 18px;
}
.skfm-btn-main:hover {
    background: #003f9e;
}
.skfm-btn-share {
    background: #f0f4ff;
    color: #0056d6;
}
.skfm-btn-send {
    background: #e6f4ea;
    color: #1e4620;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.skfm-btn-wa {
    background: #e8f5ff;
    color: #075e54;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.skfm-btn-delete {
    background: #fdecea;
    color: #b3261e;
    text-decoration: none;
}

/* UPLOAD-FORMULAR */
.skfm-upload-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.skfm-upload-row label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}
.skfm-upload-row input[type="text"],
.skfm-upload-row select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccd2e0;
    font-size: 14px;
}

/* Drag & Drop */
.skfm-dropzone {
    border: 2px dashed #ccd2e0;
    border-radius: 10px;
    padding: 18px;
    background: #fff;
    cursor: pointer;
    transition: 0.2s;
}
.skfm-dropzone-inner {
    text-align: center;
}
.skfm-dropzone-icon {
    font-size: 30px;
    margin-bottom: 8px;
}
.skfm-dropzone-text {
    font-size: 14px;
    color: #555;
}
.skfm-dropzone input[type="file"] {
    display: none;
}
.skfm-dropzone.skfm-dropzone--hover {
    border-color: #0056d6;
    background: #eef3ff;
}

/* Responsive – alles bleibt untereinander, daher nur kleine Anpassungen */
@media (max-width: 600px) {
    .skfm-file-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .skfm-file-actions {
        justify-content: flex-start;
    }
}


/* Datei wurde ausgewählt */
.skfm-dropzone.skfm-has-file .skfm-dropzone-text {
    font-weight: bold;
    color: #0056d6;
    content: "Datei ausgewählt";
}

/* Dragover-Effekt */
.skfm-dropzone.skfm-dragover {
    border-color: #0056d6;
    background: #eef4ff;
}

/* Optional: Icon einfärben */
.skfm-dropzone.skfm-has-file .skfm-dropzone-icon {
    color: #0056d6;
}
