.wad-view-list .wad-doc-card {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligns everything to the left */
    text-align: left;
    padding: 12px 20px;
}

/* Icon - Keep it close to the text */
.wad-view-list .wad-icon {
    margin: 0 15px 0 0;
    font-size: 24px;
    flex-shrink: 0; /* Prevents icon from squishing */
}

/* Info Container - Force Title and Subtitle onto one row */
.wad-view-list .wad-info {
    display: flex;
    flex-direction: row; /* Horizontal layout */
    align-items: baseline; /* Aligns text bottoms */
    gap: 10px; /* Space between Title and Subtitle */
    flex-grow: 1; /* Pushes the Download button to the far right */
}

/* Title Styling */
.wad-view-list .wad-info h3 {
    margin: 0;
    font-size: 1.1em;
    white-space: nowrap; /* Prevents title from wrapping */
}

/* Subtitle Styling */
.wad-view-list .wad-subtitle {
    font-size: 0.85em;
    color: #666;
    margin: 0;
    white-space: nowrap;
}

/* Push Download button to the end */
.wad-view-list .wad-gate-trigger {
    margin-left: auto; /* Ensures it stays on the right edge */
}

/* Container */
.wad-portal-wrapper.wad-view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.wad-portal-wrapper.wad-view-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Card Styling */
.wad-doc-card {
    border: 1px solid #eaeaea;
    padding: 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
}
.wad-view-list .wad-doc-card {
    display: flex;
    align-items: center;
    text-align: left;
    justify-content: space-between;
}

/* Icons */
.wad-icon { font-size: 40px; margin-bottom: 10px; }
.wad-icon-pdf::before { content: "📄"; } /* You can replace these with SVGs or FontAwesome */
.wad-icon-xls::before { content: "📊"; }
.wad-icon-doc::before { content: "📝"; }

.wad-subtitle { font-size: 0.9em; color: #777; display: block; }

#wad-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); display: flex; align-items: center;
    justify-content: center; z-index: 9999; transition: opacity 0.3s;
}
.wad-modal-hidden { visibility: hidden; opacity: 0; }

.wad-modal-container {
    background: #fff; padding: 30px; border-radius: 12px;
    width: 100%; max-width: 400px; position: relative; box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
#wad-modal-close {
    position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 24px; cursor: pointer;
}
.wad-modal-header h3 { margin-top: 0; color: #333; }
#wad-gated-form div { margin-bottom: 15px; }
#wad-gated-form label { display: block; font-weight: 600; margin-bottom: 5px; }
#wad-gated-form input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; }
#wad-submit-btn { width: 100%; padding: 12px; background: #0073aa; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; }

.wad-gate-trigger {
    background-color: var(--wad-primary, #0073aa);
    color: var(--wad-button-text, #ffffff);
    border: 1px solid var(--wad-primary, #0073aa);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.wad-gate-trigger:hover {
    opacity: 0.8;
}

.wad-icon::before {
    color: var(--wad-primary, #555);
}
