/* List View Styles - PMTNM Resources */

.container { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: var(--spacing-xl); 
}

.list-card { 
    background: #fff; 
    border-radius: 12px; 
    box-shadow: 0 2px 12px rgba(0,0,0,0.06); 
    overflow: hidden; 
}

.list-header { 
    padding: 24px; 
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); 
    border-bottom: 1px solid #dee2e6; 
}

.list-title { 
    margin: 0; 
    font-size: 1.6rem; 
    color: #183661; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.list-meta { 
    margin-top: 8px; 
    color: #6c757d; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 14px; 
}

.share-actions { 
    margin-top: 10px; 
    display: flex; 
    gap: 10px; 
    align-items: center; 
}

.btn-share { 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    padding: 6px 10px; 
    border: 1px solid #dee2e6; 
    border-radius: 8px; 
    text-decoration: none; 
    color: #183661; 
    background: #fff; 
}

.btn-share:hover { 
    background: #f8f9fa; 
}

.list-body { 
    padding: 20px; 
}

.url-item { 
    background: #f8f9fb; 
    border: 1px solid #e9ecef; 
    border-radius: 8px; 
    padding: 12px; 
    margin-bottom: 10px; 
}

.url-title { 
    font-weight: 600; 
    color: #183661; 
    margin-bottom: 4px; 
}

.url-description { 
    color: #555; 
    font-size: 0.95rem; 
    margin-bottom: 6px; 
}

.url-link { 
    color: #007bff; 
    font-size: 0.9rem; 
    word-break: break-all; 
    text-decoration: none; 
}

.top-links { 
    margin-bottom: 14px; 
}

/* Subscribe modal */
.subscribe-modal-backdrop { 
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,0.35); 
    display: none; 
    align-items: center; 
    justify-content: center; 
    z-index: 1000; 
}

.subscribe-modal-backdrop.show { 
    display: flex; 
}

.subscribe-modal { 
    background: #ffffff; 
    border: 1px solid #e9ecef; 
    border-radius: 12px; 
    box-shadow: 0 6px 28px rgba(0,0,0,0.18); 
    max-width: 520px; 
    width: 92%; 
    padding: 20px; 
}

.subscribe-modal h3 { 
    margin: 0 0 8px 0; 
    color: #183661; 
}

.subscribe-modal p { 
    margin: 0 0 14px 0; 
    color: #495057; 
}

.subscribe-actions { 
    display: flex; 
    gap: 10px; 
    justify-content: flex-end; 
}

.btn { 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    padding: 8px 12px; 
    border: 1px solid #dee2e6; 
    border-radius: 8px; 
    text-decoration: none; 
    color: #183661; 
    background: #fff; 
    cursor: pointer; 
}

.btn-primary { 
    background: #183661; 
    color: #fff; 
    border-color: #12284a; 
}

.btn-secondary { 
    background: #f8f9fa; 
}

/* Elegant Type-ahead Member Search */
.member-search-container { 
    position: relative; 
}

.member-search-input { 
    width: 100%; 
    padding: 12px 16px; 
    border: 2px solid #e9ecef; 
    border-radius: 12px; 
    font-size: 1rem; 
    background: #ffffff;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.member-search-input:focus { 
    outline: none; 
    border-color: #183661; 
    box-shadow: 0 0 0 3px rgba(24, 54, 97, 0.1), 0 4px 12px rgba(0,0,0,0.1);
    background: #ffffff;
}

.member-search-input.has-selection {
    background: #f8f9fb;
    border-color: #28a745;
    color: #155724;
    font-weight: 500;
}

.member-search-results { 
    position: absolute; 
    top: 100%; 
    left: 0; 
    right: 0; 
    background: #ffffff; 
    border: 1px solid #e9ecef; 
    border-radius: 8px; 
    box-shadow: 0 8px 24px rgba(0,0,0,0.12); 
    max-height: 240px; 
    overflow-y: auto; 
    z-index: 1000; 
    display: none;
    margin-top: 4px;
}

.member-search-results.show { 
    display: block; 
}

.member-search-result { 
    padding: 12px 16px; 
    cursor: pointer; 
    border-bottom: 1px solid #f8f9fa; 
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.member-search-result:last-child { 
    border-bottom: none; 
}

.member-search-result:hover, 
.member-search-result.highlighted { 
    background: linear-gradient(135deg, #f8f9fb 0%, #e9ecef 100%); 
    color: #183661;
}

.member-search-result.selected { 
    background: linear-gradient(135deg, #183661 0%, #2c4c80 100%); 
    color: #ffffff;
}

.member-name { 
    font-weight: 500; 
    color: inherit; 
}

.member-nctm { 
    background: #ffc107; 
    color: #856404; 
    padding: 2px 6px; 
    border-radius: 4px; 
    font-size: 0.75rem; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-search-result:hover .member-nctm, 
.member-search-result.highlighted .member-nctm { 
    background: #ffcd39; 
}

.member-search-result.selected .member-nctm { 
    background: #fff3cd; 
    color: #856404;
}

.search-no-results { 
    padding: 16px; 
    text-align: center; 
    color: #6c757d; 
    font-style: italic;
}

/* Form styling */
.form-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #183661;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: #183661;
    box-shadow: 0 0 0 2px rgba(24, 54, 97, 0.1);
}

/* Message styling */
.message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.message.success {
    background: #e6ffed;
    color: #155724;
    border-color: #c3e6cb;
}

.message.error {
    background: #fff5f5;
    color: #842029;
    border-color: #f5c2c7;
}
