/* Custom CSS untuk Aplikasi Pengelola Tautan */

/* Styling umum */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 500;
}

/* Styling untuk tabel */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    border-top: none;
}

.table td {
    vertical-align: middle;
}

/* Membatasi panjang URL dalam tabel */
.table td a {
    max-width: 250px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.table td a:hover {
    text-decoration: underline;
}

/* Styling untuk tombol */
.btn-sm {
    border-radius: 4px;
    margin-right: 3px;
}

/* Styling untuk modal */
.modal-content {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-radius: 10px 10px 0 0;
}

/* Styling untuk form */
.form-control, .form-select {
    border-radius: 6px;
    padding: 10px 12px;
    border: 1px solid #ced4da;
}

.form-control:focus, .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Animasi untuk card */
.card {
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        align-items: start !important;
    }
    
    .card-header div {
        margin-top: 10px;
    }
    
    .table td a {
        max-width: 150px;
    }
}

/* Styling untuk filter dan pencarian */
.form-select, #searchInput {
    height: 38px;
}

/* Styling untuk tombol aksi */
.btn-info {
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-info:hover {
    color: #fff;
    background-color: #138496;
    border-color: #117a8b;
}

/* Styling untuk pesan kosong */
.empty-message {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

/* Styling untuk highlight pada pencarian */
.highlight {
    background-color: #ffff99;
    padding: 2px;
    border-radius: 3px;
}

#categoryFilter {
    min-width: 250px;
    width: auto;
    max-width: 100%;
    white-space: nowrap;
}

/* Styling untuk semua dropdown */
/* Perbaikan untuk dropdown agar tinggi teks normal dan lebar sama */
.dropdown-fix {
    height: auto !important; /* Menyesuaikan tinggi otomatis */
    padding-top: 0.5rem !important; /* Padding atas */
    padding-bottom: 0.5rem !important; /* Padding bawah */
    line-height: 1.5 !important; /* Jarak antar baris */
    width: 100% !important; /* Membuat lebar dropdown mengisi kolomnya */
}

/* Anda mungkin masih memerlukan ini jika ingin lebar minimum pada filter kategori */
#categoryFilter {
    /* min-width: 250px; */ /* Hapus atau sesuaikan jika perlu */
    white-space: nowrap;
}