@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
}

.img-thumbnail.small {
  max-width: 100px;
}

.list-group-form-item {
  background-color: #FBFBFB;
  padding: 30px 15px;
  border: solid 1px #EEE;
  border-radius: 5px;
  list-style: none;
}

.auth-bg .bg-overlay {
  opacity: .6;
}

.loader {
    color: #002e6e;
    width: 3px;
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow: 19px 0 0 7px, 38px 0 0 3px, 57px 0 0 0;
    transform: translateX(-38px);
    animation: loader 0.5s infinite alternate linear;
    -webkit-box-shadow: 19px 0 0 7px, 38px 0 0 3px, 57px 0 0 0;
    -webkit-transform: translateX(-38px);
    -webkit-animation: loader 0.5s infinite alternate linear;
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 99999;
    display: none;
}

@keyframes loader {
    50% {
        box-shadow: 19px 0 0 3px, 38px 0 0 7px, 57px 0 0 3px;
    }

    100% {
        box-shadow: 19px 0 0 0, 38px 0 0 3px, 57px 0 0 7px;
    }
}

@-webkit-keyframes loader {
    50% {
        box-shadow: 19px 0 0 3px, 38px 0 0 7px, 57px 0 0 3px;
    }

    100% {
        box-shadow: 19px 0 0 0, 38px 0 0 3px, 57px 0 0 7px;
    }
}

.bg-w {
    background-color: #f8f6f4;
}

.img-prev {
    object-fit: cover;
    height: 70px;
    width: 70px;
}

.img-default-prev {
    height: auto;
    width: 70px;
}

.img-thumbnail-form {
    height: auto;
    width: 100px;
}

.filter-background {
    background-color: #f8f6f4;
}

.trash-button-answers {
    margin-top: 3.5%;
}

.alert-error {
    height: 150px;
    overflow: auto;
}

.table-activity tr {
    word-wrap: break-word;
    white-space: normal;
}
.required:after {
    content: ' *';
    color: #dc3545;
    font-weight: bold;
    display: inline;
}

.table td {
    vertical-align: middle !important;
}

.table.table-detail td:first-child
{
    width: 220px;
}

select.form-control {
    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.datetime-with-icon,
.flatpickr-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='gray' viewBox='0 0 24 24'%3E%3Cpath d='M7 10h10v2H7zm0 4h7v2H7z'/%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px; /* Beri ruang untuk ikon */
}

/* Committees of BOC Custom Styles */
.section-controls .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.card.border-primary {
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
    transition: box-shadow 0.3s ease;
}

.card.border-primary:hover {
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.15);
}

.card.border-success {
    box-shadow: 0 1px 3px rgba(40, 167, 69, 0.1);
    transition: box-shadow 0.3s ease;
}

.card.border-success:hover {
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.15);
}

.list-group-form-item {
    cursor: move;
}

.list-group-form-item:hover {
    background-color: rgba(0, 123, 255, 0.05);
    border-radius: 0.375rem;
}

/* Drag and drop visual feedback */
.sortable-ghost {
    opacity: 0.4;
    background-color: #f8f9fa;
}

.sortable-chosen {
    background-color: rgba(0, 123, 255, 0.1);
}

/* Section headers with icons */
.text-primary.border-bottom {
    border-bottom: 2px solid #007bff !important;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.text-secondary.border-bottom {
    border-bottom: 2px solid #6c757d !important;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.text-success.border-bottom {
    border-bottom: 2px solid #28a745 !important;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Alert improvements */
.alert-info {
    border-left: 4px solid #17a2b8;
}

.alert-light {
    border-left: 4px solid #e9ecef;
    background-color: #f8f9fa;
}

/* Multiple buttons styling */
.multiple-buttons {
    min-width: 120px;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .card-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .section-controls {
        margin-top: 0.5rem;
    }
    
    .col-md-11 {
        margin-bottom: 1rem;
    }
}