/* Album Index Page */
.album-filters {
    background-color: #f8f9fa;
    padding: 1.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.album-filters .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2rem;
    padding: 0;
}

.album-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.album-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    padding: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 61px 20px rgba(0,0,0,0.25);
}

.album-link {
    display: block;
    width: 100%;
}

.album-cover {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: border-radius 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0);
}

.album-cover:hover {
    border-radius: 0px;
}

.album-cover:not(.spinner-border) {
    opacity: 1;
}

.album-title {
    font-size: 0.85rem;
    color: #666;
}

.album-pagination {
    flex-shrink: 0;
    padding: 1rem 0;
    grid-row: 4;
    grid-column: span 5;
    justify-content: center;
}

.album-pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.spinner-border.album-cover {
    display: block;
    margin: 0 auto;
    width: 3rem;
    height: 3rem;
    color: #000;
}

.album-base-info {
    margin-top: 0.5rem;
    text-align: center;
}

.album-artist {
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    color: #333;
}

.album-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Album Details Page */
.album-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    position: relative;
}

.album-title-details {
    grid-column: 2;
    text-align: center;
}

.album-header h1 {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 0;
    color: #222;
}

.album-actions {
    grid-column: 3;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.album-actions a {
    font-size: 1.2rem;
    color: #333;
    transition: color 0.2s ease;
}

.album-actions a:hover .fa-pen-to-square {
    color: green;
}

.album-actions a:hover .fa-trash {
    color: red;
    cursor: pointer;
}

.album-container {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 20px;
}

.album-title-row {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
}

.album-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.album-info-cards {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
}

.album-cover-box {
    display: flex;
    align-items: stretch;
    aspect-ratio: 1 / 1; 
    width: 100%; 
    max-width: 450px;
}

.album-cover-box #coverdiv {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
}

.album-cover-box img.album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.album-cover-box img.album-cover.loaded {
    opacity: 1;
}

.album-cover-box .spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.album-cover-box .spinner-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.info-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.9rem;
}

.info-label {
    font-weight: 600;
    color: #666;
}

.info-value {
    color: #222;
}

.info-value a {
    color: #007bff;
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

/* Technical Info Styles */
.tech-info-empty-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.tech-info-empty {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed #ccc;
    border-radius: 20px;
    padding: 40px 20px;
    color: #555;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.tech-info-empty:hover {
    background: linear-gradient(135deg, #fdfdfd, #f2f4f8);
    border-color: #999;
}

.tech-info-empty .empty-icon {
    font-size: 4rem;
    color: #aaa;
    margin-bottom: 15px;
    opacity: 0.8;
}

.tech-info-empty .empty-text h3 {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.tech-info-empty .empty-text p {
    font-size: 0.95rem;
    color: #666;
}

.tech-info-empty .btn {
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 500;
    margin-top: 15px;
}

.tech-info-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    align-items: stretch;
}

.tech-card {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 0 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    max-height: 220px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.tech-card .spinner-border {
    width: 60px;
    height: 60px;
    margin: 10px auto;
}

.tech-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tech-card .value {
    margin-top: 6px;
    font-weight: 500;
}

.tech-card i {
    display: none;
    color: #999;
    transition: opacity 0.3s ease;
}

.tech-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.label {
    font-weight: bold;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 5px;
}

.value {
    font-size: 1rem;
    color: #111;
}

/* Digitization Table */
.digitization-table {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    font-size: 0.92rem;
    background: #fff;
}

.table-header {
    display: grid;
    grid-template-columns: 0.8fr 0.6fr 0.7fr 0.7fr 1fr 1.5fr 1.5fr 1.5fr 1.5fr 1.2fr;
    background-color: #f7f7f7;
    font-weight: 600;
    padding: 10px 16px;
    border-bottom: 2px solid #ddd;
}

.tech-no-data {
    font-size: 1rem;
    color: #888;
    text-align: center;
    margin-top: 1rem;
}

.table-body {
    display: flex;
    flex-direction: column;
}

.table-row {
    display: grid;
    grid-template-columns: 0.8fr 0.6fr 0.7fr 0.7fr 1fr 1.5fr 1.5fr 1.5fr 1.5fr 1.2fr;
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.table-row:hover {
    background-color: #f2f7ff;
}

.table-row.selected {
    background-color: #d9ecff;
    border-left: 3px solid #007bff;
}

.table-row.visible {
    opacity: 1;
    transform: translateY(0);
}

.digitization-title {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.digitization-spec {
    width: 100%;
    table-layout: fixed;
}

.digitization-spec th, .digitization-spec td {
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.animated-list .list-group-item {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Album Create/Update Page */
.album-create-update-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.album-create-update-no-digitizations {
    display: flex;
    justify-content: center;
}

.album-tabs-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.album-tabs-container .tab-content {
    flex-grow: 1;
}

.cover-image:hover {
    border-color: #999;
    background-color: #f0f0f0;
}

/* Responsive */
@media (max-width: 992px) {
    .album-info-cards {
        flex-direction: column;
    }

    .album-cover-box, .info-card {
        flex: none;
        width: 100%;
    }
}

