/* General responsive improvements */
img, video {
    max-width: 100%;
    height: auto;
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive > .table {
    margin-bottom: 0;
}

/* Custom styles untuk mempercantik Tailwind */
table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    white-space: nowrap; /* Prevent table cell content from wrapping */
}

thead tr {
    background-color: #2d3748;
}

tbody tr:hover {
    background-color: #4a5568;
}

input, select, textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

button, .btn {
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

button:hover, .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

button:active, .btn:active {
    transform: translateY(0);
}

/* Button Variants */
.btn-primary {
    background-color: #3b82f6;
    color: white;
}
.btn-primary:hover {
    background-color: #2563eb;
}

.btn-secondary {
    background-color: #4b5563;
    color: white;
}
.btn-secondary:hover {
    background-color: #374151;
}

.btn-success {
    background-color: #10b981;
    color: white;
}
.btn-success:hover {
    background-color: #059669;
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}
.btn-danger:hover {
    background-color: #dc2626;
}

.btn-warning {
    background-color: #f59e0b;
    color: white;
}
.btn-warning:hover {
    background-color: #d97706;
}

/* Button Sizes */
.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 0.375rem;
}

.btn-md {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.625rem;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px; /* For horizontal scrollbar */
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #1a202c;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

/* Responsive Button Width */
@media (max-width: 640px) {
    .btn-mobile-full {
        width: 100%;
        display: flex;
    }
}

/* Image Utilities */
.img-sharp {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.qr-container {
    background: white;
    padding: 4px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.qr-container:hover {
    transform: scale(1.5);
    z-index: 50;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.bg-gray-800 {
    background-color: #2d3748;
}

.bg-gray-700 {
    background-color: #4a5568;
}

.border-gray-700 {
    border-color: #4a5568;
}

.text-gray-300 {
    color: #e2e8f0;
}

.text-blue-400 {
    color: #63b3ed;
}