/* ISQ CSOD-UPTM Admin Panel Styles */
:root {
    --bs-primary: #1e40af;
    --bs-secondary: #64748b;
}

body {
    background-color: #f8fafc;
}

.navbar {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-container {
    padding: 2rem 0;
}

/* Ensure all rows with cards have equal height children */
.row {
    display: flex;
    flex-wrap: wrap;
}

.row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.card {
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.alert {
    border-radius: 0.5rem;
}

/* Card link styles - clickable card with jump effect */
.card-link {
    display: block;
    transition: all 0.2s ease-out;
    height: 100%;
}

.card-link:hover .card {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.card-link .card {
    transition: all 0.2s ease-out;
    cursor: pointer;
    min-height: 280px;
}

/* Breadcrumb styles */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item {
    font-size: 0.95rem;
}

.breadcrumb-item a {
    color: #1e40af;
}

.breadcrumb-item a:hover {
    text-decoration: underline !important;
}

/* Badge styles */
.badge {
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Table styles */
.table {
    font-size: 0.95rem;
}

.table thead th {
    background-color: #f1f5f9;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
}

/* Form styles */
.form-control,
.form-select {
    border-color: #e2e8f0;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
}

/* Button styles */
.btn {
    font-weight: 500;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: #1e40af;
    border-color: #1e40af;
}

.btn-primary:hover {
    background-color: #1e3a8a;
    border-color: #1e3a8a;
}

/* Loading spinner */
.spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Text utilities */
.text-muted {
    color: #64748b !important;
}

.small {
    font-size: 0.875rem;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
}

.pagination .page-link {
    color: #1e40af;
}

.pagination .page-link:hover {
    background-color: #f1f5f9;
    color: #1e3a8a;
}

.pagination .page-item.active .page-link {
    background-color: #1e40af;
    border-color: #1e40af;
}

/* Empty state */
.text-center.py-5 {
    background-color: #f8fafc;
    border-radius: 0.5rem;
}

.text-center.py-5 .bi {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}
