/* ND Uploader — стили для шорткода [nd_uploader] */
/* Палитра на основе #326e5b */

.nd-container {
    width: 100%;
    max-width: 1100px;
    background: #1a2e28;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #e0e0e0;
}
.nd-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
    color: #fff;
}
.nd-dropzone {
    border: 2px dashed #2d4a40;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    position: relative;
}
.nd-dropzone:hover,
.nd-dropzone.nd-dragover {
    border-color: #4a8b74;
    background: rgba(50, 110, 91, 0.08);
}
.nd-dropzone input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.nd-dropzone-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}
.nd-dropzone-text {
    font-size: 14px;
    color: #8aa89e;
}
.nd-dropzone-text strong {
    color: #4a8b74;
}
.nd-progress-wrap {
    margin-top: 24px;
    display: none;
}
.nd-progress-wrap.nd-active {
    display: block;
}
.nd-progress-line {
    height: 4px;
    background: #1f3530;
    border-radius: 2px;
    overflow: hidden;
}
.nd-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #326e5b, #5fa087);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.nd-counter-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}
.nd-counter {
    font-size: 14px;
    font-weight: 500;
    color: #8aa89e;
}
.nd-counter strong {
    color: #fff;
}
.nd-status-text {
    font-size: 12px;
    color: #5a7a6e;
}
.nd-status-text[data-status=error] { color: #ff6b6b; }
.nd-status-text[data-status=success] { color: #51cf66; }
.nd-file-list {
    margin-top: 16px;
    max-height: 200px;
    overflow-y: auto;
}
.nd-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #1f3530;
    font-size: 13px;
}
.nd-file-item:last-child { border-bottom: none; }
.nd-file-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nd-file-size { color: #5a7a6e; font-size: 11px; }
.nd-progress {
    flex: 0 0 60px;
    height: 3px;
    background: #1f3530;
    border-radius: 2px;
    overflow: hidden;
}
.nd-progress-bar { height: 100%; width: 0%; background: #326e5b; transition: width 0.2s; }
.nd-progress-text { font-size: 11px; color: #8aa89e; width: 32px; text-align: right; }
.nd-status { font-size: 11px; width: 60px; text-align: right; }
.nd-done .nd-status { color: #51cf66; }
.nd-error .nd-status { color: #ff6b6b; }
.nd-retry .nd-status { color: #ffa94d; }
.nd-results {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.nd-placeholder-wrap {
    width: 80px;
    text-align: center;
}
.nd-placeholder {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: #1f3530;
}
.nd-placeholder-label {
    display: block;
    font-size: 10px;
    color: #8aa89e;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
