/* Hero background image overlay for AFHArchive */
.hero-section {
    position: relative;
    overflow: hidden;
}
.hero-bg-img {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    opacity: 0.2;
    z-index: 1;
    pointer-events: none;
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}


/* Make the random device image match the hero-section height and hide on mobile */
.random-device-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    min-height: 350px;
    max-height: 100%;
    border-radius: 0 0 10px 10px;
    display: block;
}

@media (min-width: 992px) {
    .random-device-img {
        height: 100%;
        min-height: 350px;
        max-height: 100%;
    }
    /* .col-lg-4 .card { height: 100%; } -- removed to prevent stretching of Important Notice box */
}
/* AFHArchive Custom Styles */

.hero-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.navbar-brand {
    font-weight: bold;
}

.card {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.btn {
    border-radius: 6px;
}

.alert {
    border-radius: 8px;
}

.upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.upload-zone:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.file-info {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin: 10px 0;
}

.status-badge {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
}

.status-pending {
    background-color: #ffc107;
    color: #000;
}

.status-approved {
    background-color: #28a745;
    color: #fff;
}

.status-rejected {
    background-color: #dc3545;
    color: #fff;
}

.metadata-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #dee2e6;
}

.metadata-table td:first-child {
    font-weight: 600;
    background-color: #f8f9fa;
    width: 150px;
}

footer {
    margin-top: auto;
}

.table-responsive {
    border-radius: 8px;
}

.pagination {
    justify-content: center;
}

.search-filters {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.admin-section {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 30px 20px !important;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .card {
        margin-bottom: 15px;
    }
}

/* Error Page Styles */
.error-page {
    padding: 40px 20px;
}

.error-page .display-1 {
    font-size: 8rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.error-page h2 {
    color: #495057;
    margin-bottom: 20px;
}

.error-page .lead {
    color: #6c757d;
    font-size: 1.2rem;
}

.error-page .alert {
    text-align: left;
    max-width: 500px;
    margin: 0 auto 20px auto;
}

.error-page .input-group {
    max-width: 400px;
    margin: 0 auto;
}

.error-page .btn {
    margin: 5px;
    min-width: 120px;
}

@media (max-width: 768px) {
    .error-page .display-1 {
        font-size: 6rem;
    }
    
    .error-page {
        padding: 20px 10px;
    }
    
    .error-page .btn {
        width: 100%;
        margin: 5px 0;
    }
}
