/* MAGNDATA Wiki custom styles */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.stat-card {
    transition: transform 0.15s;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.stat-card .card-title {
    font-size: 2rem;
    font-weight: 700;
}

.cat-card {
    transition: transform 0.15s, box-shadow 0.15s;
    color: inherit;
}
.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Paper content */
.paper-content {
    max-height: 800px;
    overflow-y: auto;
    padding: 1rem;
    line-height: 1.7;
}
.paper-content h2 {
    font-size: 1.4rem;
    color: #333;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.3rem;
    margin-top: 1.5rem;
}
.paper-content h3 {
    font-size: 1.2rem;
    color: #555;
}
.paper-content ul, .paper-content ol {
    padding-left: 1.5rem;
}
.ocr-content {
    font-size: 0.9rem;
}

/* DataTables adjustments */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
}

/* Badge in tables */
table .badge {
    font-size: 0.7rem;
    margin-right: 2px;
}

/* Entry page */
.card-header {
    background-color: #f8f9fa;
    font-weight: 500;
}

/* Responsive image gallery */
.tab-pane img {
    max-height: 300px;
    object-fit: contain;
}

/* Material cards on home page */
.material-card {
    transition: transform 0.15s, box-shadow 0.15s;
    border-left: 4px solid #ffc107;
}
.material-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.material-card .table th {
    width: 40%;
    font-size: 0.85rem;
    color: #555;
}
.material-card .table td {
    font-size: 0.85rem;
}

/* Footer */
footer a {
    text-decoration: none;
}
