/* ============================================
   Custom CSS untuk Sistem Absensi Guru
   ============================================ */

/* Perbaikan lebar sidebar agar teks brand centered */
.brand-link .brand-text {
    display: block;
    text-align: center;
    padding: 0.8rem 0;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* Badge besar */
.badge-lg {
    font-size: 0.9rem;
    padding: 0.4em 0.8em;
}

/* Info box responsif */
.info-box {
    min-height: 80px;
}

.info-box .info-box-icon {
    height: 80px;
    line-height: 80px;
    font-size: 1.4rem;
}

.info-box .info-box-content {
    padding: 10px 10px;
}

.info-box .info-box-number {
    font-size: 1.1rem;
}

/* Tabel kecil */
.table-sm th,
.table-sm td {
    padding: 0.4rem 0.5rem;
}

/* Pre format contoh file */
pre {
    white-space: pre-wrap;
    word-break: break-all;
}

/* Custom file input - tampilkan nama file */
.custom-file-label.selected {
    color: #007bff;
    font-weight: 600;
}

/* Tabel rekap bulanan - merge visual untuk pin yang sama */
.table tbody tr td:first-child,
.table tbody tr td:nth-child(2),
.table tbody tr td:nth-child(3) {
    vertical-align: middle;
}

/* Card outline lebih rapi */
.card-outline {
    border-top: 3px solid #007bff;
}

/* Responsive tabel */
.table-responsive {
    overflow-x: auto;
}

/* Animasi masuk */
.content-wrapper .card {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Warna teks untuk hari weekend di laporan guru */
.text-danger.font-weight-bold {
    font-size: 0.85rem;
}

/* Quick pick button aktif */
.btn-primary.btn-xs {
    font-weight: 600;
}

/* Fix DataTables di AdminLTE3 */
.dataTables_wrapper .dataTables_filter input {
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
}

/* Sidebar active state yang lebih jelas */
.nav-sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 600;
}

/* Print styles */
@media print {
    .main-sidebar,
    .main-header,
    .main-footer,
    .content-header,
    .btn,
    .dataTables_filter,
    .dataTables_length,
    .dataTables_paginate {
        display: none !important;
    }

    .content-wrapper {
        margin-left: 0 !important;
    }

    .card {
        border: none !important;
        box-shadow: none !important;
    }
}