/**
 * Lokasi File: public_html/manyar/css/
 * Nama File: style.css
 * Nomor Revisi: 9
 * Keterangan: Menambahkan style untuk checkbox, warna kartu, dan highlight saat aktif.
 */

/* Impor Font dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Definisi Variabel Warna Sesuai Konsep Desain */
:root {
    --bg-dark: #343a40;
    --bg-submenu: #454d55;
    --bg-light: #f4f6f9;     
    --accent-blue: #3498db;  
    --accent-blue-light: #eaf5fc; /* Warna baru untuk highlight */
    --text-dark: #34495e;     
    --text-light: #ecf0f1;    
    --border-color: #dee2e6;  
    --white: #ffffff;
    --gray: #6c757d;
}

/* Reset Dasar & Gaya Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%; 
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    background-color: var(--bg-light);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 13px;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h3, .h3 {
    font-size: 1.25rem;
}

.table .checkbox-col {
    width: 50px;
    text-align: center;
    vertical-align: middle;
}

.table .form-check-input {
    transform: scale(1.2);
}

.btn, a.btn {
    transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
}

.btn:active, a.btn:active {
    transform: translateY(2px);
    box-shadow: none;
}

.btn:disabled, .btn.disabled {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .card-header {
        margin-bottom: 0 !important;
    }

    .table-responsive-cards thead {
        display: none;
    }

    .table-responsive-cards tbody,
    .table-responsive-cards tr,
    .table-responsive-cards td {
        display: block;
        width: 100%;
    }

    .table-responsive-cards tr {
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 0.375rem;
        background-color: var(--white) !important;
        transition: background-color 0.2s ease;
    }

    .table-responsive-cards td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0.75rem;
        text-align: right;
        border-bottom: 1px solid #f0f0f0;
        line-height: 1.2;
    }
    
    .table-responsive-cards td:last-child {
        border-bottom: none;
    }
    
    .table-responsive-cards td::before {
        content: attr(data-label);
        font-weight: 600;
        text-align: left;
        margin-right: 10px;
    }

    .table-responsive-cards .checkbox-col .form-check-input {
        transform: scale(1.5);
        margin: 0 auto;
    }
    
    .table-responsive-cards tr.card-selected {
        background-color: var(--accent-blue-light) !important;
        border-color: var(--accent-blue);
    }
}