/* style.css */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.card {
    border: none;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.card-header-primary {
    border-bottom: none;
    border-radius: 0.75rem 0.75rem 0 0;
    padding: 1rem;
    text-align: center;
}

.card-title {
    margin-bottom: 0;
    font-size: 1.75rem;
    font-weight: bold;
    color: #dc3545;
}

.card-body {
    padding: 1.5rem;
}

.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

.table-bordered {
    border: 1px solid #dee2e6;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    vertical-align: middle;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    background-color: #dc3545 !important;
    color: #fff;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

.text-primary {
    color: #007bff !important;
}

.card-header-warning {
    background-color: #ffc107 !important;
    color: #212529;
}

/* Efek Zoom yang Lebih Smooth */
.zoom {
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.zoom:hover {
    transform: scale(1.03);
    font-weight: 600;
    background-color: #ffebee;
}

/* Style Logo */
.logo-container {
    text-align: center;
    margin-bottom: 0rem; /* Menambah margin bawah untuk menurunkan logo */
        
}

.logo {
    max-width: 400px;
    height: auto;
}

/* Media Queries untuk Responsivitas */
@media (max-width: 768px) {
    .card-title {
        font-size: 1.5rem;
    }

    .table-bordered th,
    .table-bordered td {
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    .logo {
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .card-title {
        font-size: 1.25rem;
    }

    .table-bordered th,
    .table-bordered td {
        padding: 0.25rem;
        font-size: 0.75rem;
    }

    .logo {
        max-width: 240px;
    }
}

/* Media Queries untuk Responsivitas (Layar Handphone) */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto; /* Hilangkan scroll horizontal */
    }

    .table {
        display: block; /* Ubah tabel menjadi block */
    }

    .table thead,
    .table tbody,
    .table tr,
    .table td,
    .table th {
        display: block; /* Ubah semua elemen tabel menjadi block */
        width: auto !important; /* Lebar otomatis */
        border: none !important; /* Hilangkan border */
        padding: 0.5rem; /* Padding */
        text-align: center !important; /* Rata tengah semua teks */
    }

    .table thead {
        display: none; /* Sembunyikan header tabel */
    }

    .table tr {
        margin-bottom: 1rem; /* Margin bawah untuk setiap baris */
        border: 1px solid #dee2e6; /* Tambahkan border untuk setiap baris */
    }

    .table td {
        position: relative;
        padding-left: 0 !important; /* Hilangkan ruang untuk label */
        word-wrap: break-word; /* Memaksa teks turun ke baris berikutnya */
        overflow-wrap: break-word; /* Alternatif untuk word-wrap */
    }

    .table td:before {
        display: none !important; /* Sembunyikan label */
    }

    /* Sembunyikan kolom NO. dan JML */
    .table td:nth-of-type(1), /* Kolom NO. */
    .table th:nth-of-type(1),
    .table td:nth-of-type(5), /* Kolom JML */
    .table th:nth-of-type(5) {
        display: none !important;
    }

    /* Buat container untuk Hari, Tanggal, Jam */
    .table tr::after {
        content: "";
        display: flex;
        justify-content: space-around; /* Distribusi ruang yang sama di antara item */
        align-items: center; /* Vertikal tengah */
        width: 100%;
        margin-top: 0.5rem;
    }

    .table td:nth-of-type(2), /* Hari */
    .table td:nth-of-type(3), /* Tanggal */
    .table td:nth-of-type(4)  /* Jam */{
        display: inline-block; /* Sejajarkan secara horizontal */
        width: auto; /* Lebar otomatis */
        float: none; /* Hilangkan float */
    }

    /* Tempatkan Tempat Kegiatan di baris baru */
    .table td:nth-of-type(6) {
        clear: both; /* Tempatkan di baris baru */
        margin-top: 0.5rem;
    }

    /* Style untuk tempat kegiatan container */
    .tempat-kegiatan-container {
        display: block;
        margin-top: 0.5rem;
    }
}