/* public/assets/css/dashboard.css */


* {
	transition: background-color 300ms ease, color 300ms ease;
}
*:focus {
	background-color: rgba(0, 191, 255, .2);
	outline: none;
}
html, body {
	color: rgba(33, 37, 41, 1);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
	font-size: 16px;
	margin: 0;
	padding: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
header {
	background-color: rgba(247, 248, 249, 1);
	padding: .4rem 0 0;
}
.menu {
	padding: .4rem 2rem;
}
header ul {
	border-bottom: 1px solid rgba(242, 242, 242, 1);
	list-style-type: none;
	margin: 0;
	overflow: hidden;
	padding: 0;
	text-align: right;
}
header li {
	display: inline-block;
}
header li a {
	border-radius: 5px;
	color: rgba(0, 0, 0, .5);
	display: block;
	height: 44px;
	text-decoration: none;
}
header li.menu-item a {
	border-radius: 5px;
	margin: 5px 0;
	height: 38px;
	line-height: 36px;
	padding: .4rem .65rem;
	text-align: center;
}
header li.menu-item a:hover,
header li.menu-item a:focus {
	background-color: rgba(0, 191, 255, .2);;
	color: rgba(0, 191, 255, 1);
}
header .logo {
	float: left;
	height: 44px;
	padding: .4rem .5rem;
}
header .menu-toggle {
	display: none;
	float: right;
	font-size: 2rem;
	font-weight: bold;
}
header .menu-toggle button {
	background-color: rgba(0, 191, 255, 1);
	border: none;
	border-radius: 3px;
	color: rgba(255, 255, 255, 1);
	cursor: pointer;
	font: inherit;
	font-size: 1.3rem;
	height: 36px;
	padding: 0;
	margin: 11px 0;
	overflow: visible;
	width: 40px;
}
header .menu-toggle button:hover,
header .menu-toggle button:focus {
	background-color: rgba(0, 191, 255, .8);
	color: rgba(255, 255, 255, .8);
}
header .heroe {
	margin: 0 auto;
	max-width: 1100px;
	padding: 1rem 1.75rem 1.75rem 1.75rem;
}
header .heroe h1 {
	font-size: 2.5rem;
	font-weight: 500;
}
header .heroe h2 {
	font-size: 1.5rem;
	font-weight: 300;
}
section {
	margin: 0 auto;
	max-width: 1100px;
	padding: 2.5rem 1.75rem 3.5rem 1.75rem;
}
section h1 {
	margin-bottom: 2.5rem;
}
section h2 {
	font-size: 120%;
	line-height: 2.5rem;
	padding-top: 1.5rem;
}
section pre {
	background-color: rgba(247, 248, 249, 1);
	border: 1px solid rgba(242, 242, 242, 1);
	display: block;
	font-size: .9rem;
	margin: 2rem 0;
	padding: 1rem 1.5rem;
	white-space: pre-wrap;
	word-break: break-all;
}
section code {
	display: block;
}
section a {
	color: rgba(0, 191, 255, 1);
}
section svg {
	margin-bottom: -5px;
	margin-right: 5px;
	width: 25px;
}
.further {
	background-color: rgba(247, 248, 249, 1);
	border-bottom: 1px solid rgba(242, 242, 242, 1);
	border-top: 1px solid rgba(242, 242, 242, 1);
}
.further h2:first-of-type {
	padding-top: 0;
}
.svg-stroke {
	fill: none;
	stroke: #000;
	stroke-width: 32px;
}
footer {
	background-color: rgba(0, 191, 255, 1);
	text-align: center;
}
footer .environment {
	color: rgba(255, 255, 255, 1);
	padding: 2rem 1.75rem;
}
footer .copyrights {
	background-color: rgba(47, 79, 79, 1);
	color: rgba(200, 200, 200, 1);
	padding: .25rem 1.75rem;
}
@media (max-width: 629px) {
	header ul {
		padding: 0;
	}
	header .menu-toggle {
		padding: 0 1rem;
	}
	header .menu-item {
		background-color: rgba(244, 245, 246, 1);
		border-top: 1px solid rgba(242, 242, 242, 1);
		margin: 0 15px;
		width: calc(100% - 30px);
	}
	header .menu-toggle {
		display: block;
	}
	header .hidden {
		display: none;
	}
	header li.menu-item a {
		background-color: rgba(0, 191, 255, .1);
	}
	header li.menu-item a:hover,
	header li.menu-item a:focus {
		background-color: rgba(0, 191, 255, .7);
		color: rgba(255, 255, 255, .8);
	}
}

/**
Form 
*/

/* Batasi lebar form agar tidak terlalu melebar di layar PC */
form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-family: sans-serif;
}

/* Jarak antar bungkus input */
form div {
    margin-bottom: 15px;
}

/* Mengatur Label */
label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

/* Mengatur Input dan Textarea */
input[type="text"], 
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Memastikan padding tidak merusak lebar 100% */
    font-size: 14px;
    transition: border-color 0.3s;
}

/* Efek saat input diklik (fokus) */
input[type="text"]:focus, 
textarea:focus {
    border-color: #007bff;
    outline: none;
}

/* Khusus Textarea agar bisa di-resize vertikal saja dan punya tinggi ideal */
textarea {
    height: 100px;
    resize: vertical;
}

/* Mengatur Tombol Save */
button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    width: 100%; /* Tombol penuh, hapus baris ini jika ingin tombol kecil */
}

button[type="submit"]:hover {
    background-color: #0056b3;
}


/**
Tabel
*/

/* Font utama disamakan dengan form Pilihan 1 */
.modern-table {
    width: 100%;
    border-collapse: collapse; /* Menghilangkan double border */
    margin: 20px 0;
    font-size: 14px;
    font-family: sans-serif;
    min-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden; /* Agar border-radius bekerja di sudut tabel */
}

/* Mengatur Header Tabel */
.modern-table thead tr {
    background-color: #007bff; /* Biru yang sama dengan Form Pilihan 1 */
    color: #ffffff;
    text-align: left;
    font-weight: bold;
}

/* Mengatur Padding / Jarak Sel */
.modern-table th,
.modern-table td {
    padding: 12px 15px;
    vertical-align: middle;
}

/* Mengatur Garis Tipis Antar Baris di Body */
.modern-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

/* Efek Zebra (Baris Belang-Belang) & Background */
.modern-table tbody tr:nth-of-type(even) {
    background-color: #f9f9f9;
}

/* Efek Hover saat baris dilewati mouse */
.modern-table tbody tr:hover {
    background-color: #f1f1f1;
}

/* --- Styling untuk Kolom Action (Link & Button) --- */

/* Link Edit */
.modern-table td a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.modern-table td a:hover {
    text-decoration: underline;
}

/* Tombol Delete (Supaya tidak terlihat seperti tombol bawaan browser yang kaku) */
.modern-table td button {
    background: none;
    border: none;
    color: #dc3545; /* Warna merah untuk delete */
    font-weight: bold;
    padding: 0;
    cursor: pointer;
    font-family: sans-serif;
    font-size: 14px;
}

.modern-table td button:hover {
    text-decoration: underline;
}

/* Membuat isi kolom aksi sejajar secara horizontal dan vertikal */
.modern-table .action-cell {
    display: flex;
    align-items: center;
    gap: 10px; /* Jarak antara tombol Edit dan Delete */
}

/* Link Edit */
.modern-table .action-cell a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    line-height: 1; /* Memastikan tinggi teks konsisten */
}

/* Memastikan form tidak merusak susunan flex */
.modern-table .action-cell form {
    display: inline-flex;
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    max-width: none;
}

/* Tombol Delete */
.modern-table .action-cell button {
    background: none;
    border: none;
    color: #dc3545;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    line-height: 1; /* Menyamakan tinggi dengan link Edit */
    font-family: sans-serif;
}

/* Efek Hover */
.modern-table .action-cell a:hover,
.modern-table .action-cell button:hover {
    text-decoration: underline;
}

.flash {
	margin: 0 auto;
	max-width: 1100px;
	padding: 1rem 1.75rem 0 1.75rem;
}


/* Container Form Pencarian */
.search-form {
    display: flex;
    align-items: center;
    gap: 10px; /* Jarak antar elemen ke samping */
    margin: 20px 0;
    font-family: sans-serif;
    max-width: 600px; /* Lebar maksimal search bar */
}

/* Input Search */
.search-form input[type="search"] {
    flex: 1; /* Membuat input mengisi ruang kosong yang tersedia */
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.search-form input[type="search"]:focus {
    border-color: #007bff; /* Biru yang sama dengan tema utama */
    outline: none;
}

/* Tombol Search */
.search-form button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap; /* Mencegah teks "Search" terlipat ke bawah */
    transition: background-color 0.2s;
}

.search-form button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Link/Tombol Reset */
.search-form .btn-reset {
    color: #6c757d; /* Warna abu-abu netral */
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    white-space: nowrap;
    transition: all 0.2s;
}

.search-form .btn-reset:hover {
    background-color: #f8f9fa;
    color: #333;
    border-color: #bbb;
}


/* Container Utama Bulk Action */
.bulk-action-container {
    display: inline-flex; /* Menggunakan inline-flex agar lebarnya pas dengan isi, tidak penuh ke samping */
    align-items: center;
    gap: 8px; /* Jarak antara dropdown dan tombol Apply */
    margin: 15px 0;
    font-family: sans-serif;
}

/* Mengatur Elemen Dropdown (Select) */
.bulk-action-container select {
    padding: 10px 15px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #ffffff;
    color: #333;
    cursor: pointer;
    box-sizing: border-box;
    height: 40px; /* Menyamakan tinggi konkrit */
    transition: border-color 0.3s;
}

.bulk-action-container select:focus {
    border-color: #007bff;
    outline: none;
}

/* Mengatur Tombol Apply */
.bulk-action-container button[type="submit"] {
    background-color: #28a745; /* Menggunakan warna hijau (sukses) untuk eksekusi aksi */
    color: white;
    padding: 0 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    height: 40px; /* Tinggi disamakan dengan select */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.bulk-action-container button[type="submit"]:hover {
    background-color: #218838;
}


/* ==========================================================================
   STYLING PAGINATION 
   ========================================================================== */
nav[aria-label="Page navigation"] {
    margin: 2rem 0;
    display: flex;
    justify-content: center; /* Memposisikan pagination di tengah halaman */
}

ul.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem; /* Memberikan jarak antar nomor halaman */
    flex-wrap: wrap;
}

ul.pagination li {
    display: inline-flex;
}

ul.pagination li a,
ul.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    text-decoration: none;
    color: var(--color-text, #333); /* Menyesuaikan warna teks utama Anda */
    background-color: var(--color-bg-secondary, #f5f5f5); /* Background default abu-abu terang */
    border: 1px solid var(--color-border, #ddd);
    border-radius: 6px; /* Membuat sudutnya sedikit melengkung (rounded) */
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

/* Efek Hover untuk Tombol yang Bisa Diklik */
ul.pagination li:not(.active):not(.disabled) a:hover {
    background-color: var(--color-border, #e2e2e2);
    border-color: var(--color-text-muted, #999);
    color: #000;
}

/* Styling untuk Halaman Aktif (Active State) */
ul.pagination li.active a,
ul.pagination li.active span {
    background-color: var(--color-primary, #007bff); /* Warna utama tema Anda */
    color: #ffffff; /* Warna teks putih saat aktif */
    border-color: var(--color-primary, #007bff);
    cursor: default;
    pointer-events: none; /* Mencegah klik ulang pada halaman aktif */
}

/* Styling Tambahan untuk Penanda Titik-titik (Ellipsis) atau Disabel jika ada */
ul.pagination li.disabled a,
ul.pagination li.disabled span {
    color: #ccc;
    background-color: #fafafa;
    border-color: #eee;
    cursor: not-allowed;
}

hr {
    border: 0;
    height: 1px;
    background-color: #e6e6e6; /* Sangat tipis, ubah ke #333 jika di dark mode */
    margin: 2rem 0; /* Memberikan ruang vertikal yang seimbang */
    opacity: 0.7; /* Membuat warnanya semakin membaur dengan background */
}