/* Dashboard Wrapper */
#mf-view-dashboard {
    background-color: #fcfcfc;
    color: #333333;
    font-family: 'Open Sans', Arial, sans-serif;
    padding: 60px 5%;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    box-sizing: border-box !important;
    min-height: 80vh;
}

#mainDashboardTitle {
    text-align: center;
    color: #222222;
    margin-bottom: 50px;
    font-size: 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#mf-view-dashboard.has-custom-bg {
    color: #ffffff !important;
}

#mf-view-dashboard.has-custom-bg #mainDashboardTitle,
#mf-view-dashboard.has-custom-bg .collection-group-title {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2);
}

#mf-view-dashboard.has-custom-bg #dashboardFooter {
    color: #cccccc !important;
    border-color: rgba(255, 255, 255, 0.1);
}

.archive-collection-section {
    margin-bottom: 60px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.collection-group-title {
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 12px;
    margin-bottom: 25px;
    color: #444;
    font-size: 24px;
    font-weight: 300;
}

.book-shelf {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.book-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 16px;
    width: 220px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    border-color: #ccc;
    color: #0056b3;
}

.book-cover-icon-wrap {
    width: 100%;
    height: 280px;
    margin-bottom: 15px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    border-radius: 2px;
}

.book-cover-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.book-card:hover .book-cover-icon {
    transform: scale(1.03);
}

.book-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    flex-grow: 1;
}

.book-card-link-text {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
}

.search-section {
    max-width: 800px;
    margin: 60px auto 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.search-section h3 {
    margin-top: 0;
    color: #333;
    font-weight: 600;
}

.search-box {
    display: flex;
    gap: 10px;
}

#globalSearchInput {
    flex: 1;
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    font-size: 16px;
}

#globalSearchBtn, #globalClearSearchBtn {
    padding: 0 20px;
    border-radius: 4px;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

#globalSearchBtn { background: #333; color: #fff; }
#globalSearchBtn:hover { background: #555; }
#globalClearSearchBtn { background: #eaeaea; color: #333; }
#globalClearSearchBtn:hover { background: #ccc; }

#globalResults {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.result-item {
    background: #f9f9f9;
    padding: 15px;
    border-bottom: 1px solid #eaeaea;
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
    color: #333;
}

.result-item:hover {
    background: #f1f1f1;
}

.result-meta {
    color: #0056b3;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.result-snippet {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

#dashboardFooter {
    text-align: center;
    color: #888;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    font-size: 13px;
}