body {
    font-family: "brandon-grotesque", sans-serif;
}

/* เพิ่มใน categories/index.blade.php ในส่วน styles */
.language-item:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 2px;
}

.language-item:hover img {
    transform: scale(1.1);
    transition: transform 0.2s;
}

.translate-all-btn:hover {
    transform: scale(1.05);
    transition: transform 0.2s;
}

/* AI Translation Styles */
.ai-translate-btn {
    margin-left: 5px;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 3px;
}

.ai-translate-header-btn {
    text-align: center;
    vertical-align: middle;
    min-width: 150px;
}

.ai-translate-all-btn {
    font-size: 12px;
    padding: 4px 8px;
}

.ai-translate-btn:hover {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

.ai-translate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ai-translate-header-btn .btn-group {
    display: flex;
    align-items: center;
}

.ai-translate-header-btn .dropdown-menu {
    font-size: 12px;
}

.ai-translate-header-btn .dropdown-item {
    padding: 4px 12px;
    font-size: 12px;
}

.ai-translate-header-btn .dropdown-item i {
    margin-right: 5px;
    width: 12px;
}

.ck-editor__editable,
textarea {
    min-height: 150px;
}

#app {
    overflow: auto;
}

img {
    max-width: 100%;
}

.datatable {
    width: 100% !important;
}

table.dataTable tbody td.select-checkbox::before,
table.dataTable tbody td.select-checkbox::after,
table.dataTable tbody th.select-checkbox::before,
table.dataTable tbody th.select-checkbox::after {
    top: 50%;
}

.dataTables_length,
.dataTables_filter,
.dt-buttons {
    margin-bottom: 0.333em;
}

.dt-buttons .btn {
    margin-left: 0.333em;
    border-radius: 0;
}

.table.datatable {
    box-sizing: border-box;
    border-collapse: collapse;
}

table.dataTable thead th {
    border-bottom: 2px solid #dee2e6;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: 1px solid #dee2e6;
}

.select2 {
    max-width: 100%;
    width: 100%;
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-image: none;
}

.btn-group-xs>.btn,
.btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.searchable-title {
    font-weight: bold;
}

.select2-container--open {
    z-index: 9999;
}

.searchable-fields {
    padding-left: 5px;
}

.searchable-link {
    padding: 0 5px 0 5px;
}

.searchable-link:hover {
    cursor: pointer;
    background: #eaeaea;
}

.select2-results__option {
    padding-left: 0px;
    padding-right: 0px;
}

.form-group .required::after {
    content: " *";
    color: red;
}

.form-check.is-invalid~.invalid-feedback {
    display: block;
}

.dataTables_length label select {
    width: 65px !important;
}

div.dt-button-collection {
    padding: 0;
}

.buttons-columnVisibility {
    display: block;
}

.buttons-columnVisibility.active {
    background-color: rgba(128, 128, 128, 0.1);
    font-weight: bolder;
}

aside.main-sidebar {
    background: #1dd1d5;
}

body .btn {
    border: 2px solid #fff;
    color: #000;
    padding: 0.5em 1em;
    text-transform: uppercase;
    border-radius: 0;
    box-shadow: none;
}

body .btn.btn-danger {
    background: #ffeaac;
}

body .btn.btn-danger:hover {
    color: #000;
}

body .btn.btn-info {
    background: #1dd1d5;
}

body .btn.btn-primary {
    background: linear-gradient(135deg, #ffb347 0%, #ff6b35 100%);
}

body .sidebar-light-primary .nav-treeview>.nav-item>.nav-link {
    color: #ffffff;
}

body .sidebar-light-primary .nav-treeview>.nav-item>.nav-link:hover {
    color: #000000;
}

body .navbar-dark.bg-dark {
    background: #1dd1d5 !important;
}

body .sidebar-light-primary .nav-sidebar>.nav-item>.nav-link.active {
    background: #f5b5f8;
    color: #000;
}

#app>nav.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999999;
}

#app>main {
    position: relative;
    /* margin-top: 3.5rem;
    margin-bottom: 3.5em; */
}

.card,
.card-header,
.card-body {
    border-color: #5BCCD9;
}

.card-header {
    background-color: #5BCCD9;
}

body.slashapp footer {
    position: fixed;
    left: 0;
    bottom: 0;
    right: 0;
    padding: 0;
    margin: 0;
    background: #fff;
    display: flex;
    z-index: 10;
    max-width: 1140px;
    margin: auto;
    /* overflow-x: scroll; */
}

body.slashapp footer .footer-icon {
    flex: 1 0 20%;
    text-align: center;
    border: none;
    /* height:3.5em; */
    padding-top: 0.2em;
    padding-bottom: 0.2em;
    line-height: 1em;
    color: #9fa4a8;
}

body.slashapp footer .footer-icon span {
    font-size: 2em;
    font-weight: normal;
    display: block;
}

body.slashapp footer .footer-icon small {
    font-size: 0.8em;
}

body.slashapp .footer-icon img {
    max-height: 34px;
    width: auto;
}

body.slashapp .footer-icon small {
    display: block;
    font-weight: 600;
}

body.slashapp .footer-icon .footer-icon-a {
    color: #9fa4a8;
}

body.slashapp .footer-icon .footer-icon-a.active {
    color: #00b1b5;
}

.busrow.description {
    z-index: 2;
    position: relative;
    margin-bottom: 0;

}

.sidebar-light-primary .nav-sidebar .nav-item.menu-open .nav-treeview {
    background: #00b1b5;
}

/*custom search*/
.custom_search-wrapper {
    display: grid;
    grid-template-columns: 80% 20%;
    border: solid 2px;
    background: transparent;
    color: #FFFFFF;
    font-weight: bold;
    border-radius: 8px;
}

.custom_search-input {
    border: none;
    padding: 10px 0px 10px 4vw;
    background: transparent;
    color: #FFFFFF;
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.5px;
}

.custom_search-input::placeholder {
    color: #f7f7f7;
    font-weight: 600;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom_search-input:focus {
    outline: none;
    background-color: #00000040;
}

.custom_search-btn {
    background: transparent;
    color: #FFF;
    border: none;
    font-size: 1.5em;
    text-align: right;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: end;
    padding-right: 4vw;
}

.custom_search-btn:focus {
    outline: none;
    color: #00000040;
}

.list-style-none {
    list-style: none;
    padding-left: 0;
}

body .btn-facebook {
    background: #216399;
    color: #fff;
}

body .btn-twitter {
    background: #55adee;
    color: #fff;
}

body .btn-line {
    background: #07b53b;
    color: #fff;
}

body .btn-google {
    background: #b40808;
    color: #fff;
}

body .btn-copy {
    background: #505050;
    color: #fff;
}

body .hidden {
    display: none;
}

@media only screen and (max-width: 500px) {
    body.slashapp footer {
        /*padding:0 0 1.2em 0;*/
        padding: 0;
    }
}