/**
 * WooDocs Elite - Frontend Styles v8.3.7
 * Developed for Moorman Digital Services
 * Features: Responsive Grid, Live Search Styling & Interactive Cards
 */

/* --- 1. CONTAINER & GLOBAL VARIABLES --- */
:root {
    --wd-primary: #4f46e5; /* Dynamisch overschreven door PHP indien ingesteld */
    --wd-bg-light: #f8f9fb;
    --wd-text-main: #1a1f36;
    --wd-text-muted: #64748b;
    --wd-border: #eef0f2;
    --wd-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.wd-vault-container {
    background: #ffffff;
    border: 1px solid var(--wd-border);
    border-radius: 12px;
    padding: 30px;
    margin: 25px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: var(--wd-shadow);
}

/* --- 2. SEARCH INTERFACE --- */
.wd-search-wrapper {
    position: relative;
    margin-bottom: 35px;
    display: flex;
    justify-content: flex-end;
}

#wd-tab-search {
    width: 100%;
    max-width: 350px;
    padding: 12px 45px 12px 20px;
    border-radius: 30px;
    border: 1px solid #dcdfe6;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

#wd-tab-search:focus {
    border-color: var(--wd-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    outline: none;
}

.wd-search-wrapper .dashicons-search {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--wd-text-muted);
    pointer-events: none;
}

/* --- 3. DOCUMENT LIST & CARDS --- */
.wd-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wd-file-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--wd-border);
    padding: 20px;
    border-radius: 12px;
    transition: all 0.2s ease-in-out;
}

.wd-file-card:hover {
    border-color: var(--wd-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.wd-file-icon {
    width: 52px;
    height: 52px;
    background: var(--wd-bg-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.wd-file-icon .dashicons {
    font-size: 28px;
    color: var(--wd-primary);
}

.wd-file-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.wd-file-info strong {
    font-size: 16px;
    font-weight: 600;
    color: var(--wd-text-main);
}

/* --- 4. ACTIONS & FEEDBACK --- */
.wd-file-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wd-btn-dl {
    background: var(--wd-primary);
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    transition: filter 0.2s;
}

.wd-btn-dl:hover {
    filter: brightness(1.1);
}

/* Feedback Buttons */
.wd-fb {
    display: flex;
    gap: 8px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
}

.wd-f-btn {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    padding: 4px 10px;
    font-size: 14px;
    transition: all 0.2s;
}

.wd-f-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.wd-thanks {
    font-size: 12px;
    font-weight: 600;
    color: #059669;
    padding: 0 10px;
}

/* --- 5. SECURITY & SECTIONS --- */
.wd-locked-box {
    background: #fff1f2;
    color: #9f1239;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #ffe4e6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wd-locked-box .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.wd-section-header h4 {
    margin: 40px 0 15px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--wd-primary);
    color: var(--wd-text-main);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .wd-file-card { flex-direction: column; text-align: center; }
    .wd-file-icon { margin-right: 0; margin-bottom: 15px; }
    .wd-file-info { flex-direction: column; gap: 15px; }
    .wd-search-wrapper { justify-content: center; }
    #wd-tab-search { max-width: 100%; }
}