/* Custom Table Styling - SF Pro Font */
@import url('https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@300;400;500;600;700&display=swap');

/* Base font untuk seluruh aplikasi */
body, html {
    font-family: 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 14px;
    color: #333;
}

/* Standardisasi tabel di seluruh aplikasi */
.table-standard {
    font-family: 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 14px;
    color: #333;
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1rem;
    background-color: #fff;
}

.table-standard th {
    font-family: 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    background-color: #4dabf7 !important;
    padding: 12px 15px;
    text-align: center !important;
    vertical-align: middle;
    border: 1px solid #dee2e6;
    white-space: nowrap;
}

.table-standard td {
    font-family: 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 400;
    font-size: 14px;
    color: #333;
    padding: 12px 15px;
    vertical-align: middle;
    border: 1px solid #dee2e6;
    background-color: #fff;
}

.table-standard tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.table-standard tbody tr:hover {
    background-color: #e3f2fd;
}

/* Dark theme variant */
.table-standard.table-dark {
    background-color: #343a40;
    color: #fff;
}

.table-standard.table-dark th {
    background-color: #495057 !important;
    color: #fff;
    border-color: #495057;
}

.table-standard.table-dark td {
    background-color: #343a40;
    color: #fff;
    border-color: #495057;
}

.table-standard.table-dark tbody tr:nth-child(even) {
    background-color: #3d4449;
}

.table-standard.table-dark tbody tr:hover {
    background-color: #495057;
}

/* Card header styling */
.card-header-standard {
    background-color: #4dabf7 !important;
    color: #fff !important;
    font-family: 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 600;
    font-size: 16px;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
}

.card-header-standard h4,
.card-header-standard h5 {
    color: #fff !important;
    margin: 0;
    font-family: 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 600;
}

/* Badge styling */
.badge-standard {
    font-family: 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 500;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Button styling */
.btn-standard {
    font-family: 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-standard:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Compact action buttons for tables */
.table .btn-action-compact {
    padding: 0.1rem 0.3rem;
    font-size: 0.65rem;
    line-height: 1.1;
    height: 1.4rem;
    width: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.table td .btn-group-action {
    display: inline-flex;
    gap: 1px;
}

/* Make table buttons more compact */
.table td .btn-sm {
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
}

.table td .dropdown-item {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Add tooltips to small buttons */
.table td [title] {
    position: relative;
}

.table td [title]:hover:after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    white-space: nowrap;
    z-index: 10;
}

/* Modal styling */
.modal-standard .modal-header {
    background-color: #4dabf7 !important;
    color: #fff !important;
    border-bottom: 1px solid #dee2e6;
}

.modal-standard .modal-title {
    font-family: 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 600;
    font-size: 18px;
    color: #fff !important;
}

.modal-standard .modal-body {
    font-family: 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 14px;
    color: #333;
}

.modal-standard .form-label {
    font-family: 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.modal-standard .form-control {
    font-family: 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 14px;
    color: #333;
}

/* Text alignment utilities */
.text-center-header {
    text-align: center !important;
}

.text-center-cell {
    text-align: center !important;
}

.text-left-cell {
    text-align: left !important;
}

.text-right-cell {
    text-align: right !important;
}

/* Responsive table wrapper */
.table-responsive-standard {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Empty state styling */
.empty-state-standard {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state-standard i {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 16px;
}

.empty-state-standard h5 {
    font-family: 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 600;
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 8px;
}

.empty-state-standard p {
    font-family: 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 400;
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* Pagination styling */
.pagination-standard .page-link {
    font-family: 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 500;
    font-size: 14px;
    color: #4dabf7;
    border-color: #4dabf7;
}

.pagination-standard .page-item.active .page-link {
    background-color: #4dabf7;
    border-color: #4dabf7;
}

/* Search and filter styling */
.search-filter-standard {
    margin-bottom: 20px;
}

.search-filter-standard .form-control {
    font-family: 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 14px;
    color: #333;
}

.search-filter-standard .btn {
    font-family: 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 500;
    font-size: 14px;
}

/* Alert styling */
.alert-standard {
    font-family: 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 14px;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

/* Dropdown styling */
.dropdown-standard .dropdown-toggle,
.dropdown-standard .dropdown-item {
    font-family: 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 14px;
}

/* Form styling */
.form-standard .form-control,
.form-standard .form-select {
    font-family: 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 14px;
    color: #333;
    border-radius: 6px;
    padding: 10px 12px;
}

.form-standard .form-label {
    font-family: 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

/* Input group styling */
.input-group-standard .input-group-text {
    font-family: 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 14px;
    color: #333;
}

/* Status indicator styling */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-indicator.success {
    background-color: #28a745;
}

.status-indicator.warning {
    background-color: #ffc107;
}

.status-indicator.danger {
    background-color: #dc3545;
}

.status-indicator.info {
    background-color: #17a2b8;
}

/* Custom scrollbar for table */
.table-responsive-standard::-webkit-scrollbar {
    height: 8px;
}

.table-responsive-standard::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-responsive-standard::-webkit-scrollbar-thumb {
    background: #4dabf7;
    border-radius: 4px;
}

.table-responsive-standard::-webkit-scrollbar-thumb:hover {
    background: #339af0;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
    .table-standard {
        font-size: 12px;
    }
    
    .table-standard th,
    .table-standard td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .card-header-standard {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .btn-standard {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 576px) {
    .table-standard {
        font-size: 11px;
    }
    
    .table-standard th,
    .table-standard td {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .card-header-standard {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .btn-standard {
        font-size: 11px;
        padding: 5px 10px;
    }
}
