/* content-wrapper */

.content-wrapper{
    overflow-x: hidden;
}

/* Sidebar */

.custom-sidebar{
    background-color: #215d7b !important;
}

/* .sidebar-custom *{
    color: #fff;
} */

.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active, .sidebar-light-primary .nav-sidebar>.nav-item>.nav-link.active{
    background-color: transparent !important;
    box-shadow: none !important;
}

.active-menu{
    background-color: #f7cdbc !important;
    color:#215d7b !important;
}

/* Dashboard */

.main-content{
    background-color: rgb(234, 231, 227);
}

.bg-one{
    background-color: #f4d2ae;
}

.bg-two{
    background-color: #e6d4c5;
}

.bg-three{
    background-color: #ffead1;
}

.bg-four{
    background-color: #ffd5a3;
}

.bg-five{
    background-color: #fdeac2;
}

.bg-one,.bg-two,.bg-three,.bg-four,.bg-five{
    color:chocolate;
}

/* Content Header */

.content-header{
    color: #215d7b;
}

/* button bg  */

.dark-blue-btn{
    background-image: linear-gradient(to bottom, #2a87b5, #215d7b);
}
.dark-blue-btn:hover{
    background-image: linear-gradient(to bottom, #215d7b, #2a87b5);
}

/* 
.
.
    DataTable
.
. 
*/

.dt-button{
    background-image: linear-gradient(to bottom, #2a87b5, #215d7b);
    border: 1px solid rgb(42, 135, 181);
    color:#fff;
    padding: 5px;
    border-radius: 4px;
}

.dt-button:hover{
    background-image: linear-gradient(to bottom, #215d7b,#2a87b5);
}

/* Ensure the table container can scroll horizontally */
.table-container {
    width: 100%;              /* Make the container full width */
    overflow: hidden;         /* Enable horizontal scrolling when the table is too wide */
    margin: 20px 0;           /* Add margin for some spacing */
}

/* Style the table to make it visually appealing */
.table {
    width: 100%;              /* Ensure table takes up full width */
    border-collapse: collapse;/* For cleaner borders */
    table-layout: auto;       /* Allow columns to expand based on content */
}

/* Style for table heading */
.table th{
    vertical-align: middle !important;
}
/* Style for table data */
.table td {
    padding: 5px;            /* Add padding for readability */
}

/* Optional: Add hover effect for rows */
.table tbody tr:hover,table.dataTable.table-striped>tbody>tr:nth-of-type(2n+1):hover {
    background-color: #D1E5F4 !important;
}
table.dataTable.table-striped>tbody>tr:nth-of-type(2n+1){
    background-color: #F5FBFF !important;
}

/* Limit the maximum width of columns to prevent them from becoming too wide */
.table th, .table td {
    /* max-width: 150px;         */
    word-wrap: break-word;   
}

/* First column of datatable: for detail button */

table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control>#detail:before, table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control>#detail:before {
    content: "► 詳細" !important;
}
table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td.dtr-control>#detail:before, table.dataTable.dtr-inline.collapsed>tbody>tr.parent>th.dtr-control>#detail:before {
    content: "▼ 閉じる" !important;
}
table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td.dtr-control:before, table.dataTable.dtr-inline.collapsed>tbody>tr.parent>th.dtr-control:before,table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before, table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before{
    content: "" !important;
}
#detail{
    color: #fff;
    background-image: linear-gradient(to bottom, #2a87b5, #215d7b);
    border-color: rgb(42, 135, 181) !important;
    font-size: 14px;
}
#detail:hover{
    background-image: linear-gradient(to bottom, #215d7b,#2a87b5);
}

@media (max-width: 768px) {
    #example1 th, #example1 td {
        min-width: 60px !important;       
    } 
}

@media (min-width: 1024px) and (max-width: 1440px) {
    #example1 th, #example1 td {
        min-width: 100px !important;     
    }
    .table th, .table td{
        font-size: 14px !important;  
    }
    .edit-btn,.del-btn{
        padding: 2px 5px !important;
    }
} 

@media (min-width: 1920px) {
    #example1 .detail {
        display: none !important;
    }
     .table th, .table td{
        max-width: 50px;   
        font-size: 13px;
    }
}

/* Edit and Delete button */

.edit-btn,.del-btn,.dark-blue-btn-p,.ban-btn,.unban-btn{
    color:#fff;
    border-radius: 5px;
    padding: 5px!important;
    margin: 1px;
}

.edit-btn{
    background-image: linear-gradient(to bottom, #ffa600,#ff5200) !important;
    border:1px solid #ffa600;
}
.edit-btn:hover{
    background-image: linear-gradient(to bottom, #ff5200,#ffa600) !important;
    border:1px solid #ff5200;
    color:#fff;
}
.del-btn{
    background-image: linear-gradient(to bottom, #f00,rgb(118, 11, 11)) !important;
    border:1px solid #f00;
}
.del-btn:hover{
    background-image: linear-gradient(to bottom, rgb(118, 11, 11),#f00) !important;
    border:1px solid rgb(118, 11, 11);
}

.ban-btn{
    background-image: linear-gradient(to bottom, rgb(118, 11, 11),#f00) !important;
    border:1px solid #f00;
}
.ban-btn:hover{
    background-image: linear-gradient(to bottom, #f00,rgb(118, 11, 11)) !important;
    border:1px solid rgb(118, 11, 11);
}

.unban-btn{
    background-image: linear-gradient(to bottom, #0f0,rgb(34, 70, 34)) !important;
    border:1px solid #0f0;
}
.unban-btn:hover{
    background-image: linear-gradient(to bottom, rgb(34, 70, 34), #0f0) !important;
    border:1px solid rgb(34, 70, 34);
}

/* Pagination */
.paginate_button{
    border: 1px solid #215d7b;
    color: #215d7b;
    border-radius: 5px;
    padding:5px;
    margin:3px;
    cursor: pointer;
}
.dataTables_paginate .previous,.dataTables_paginate .next{
    color: #fff;
    background-image: linear-gradient(to bottom, #2a87b5, #215d7b);
    border-color: rgb(42, 135, 181) !important;
}
.dataTables_paginate .previous:hover,.dataTables_paginate .next:hover{
    background-image: linear-gradient(to bottom, #215d7b,#2a87b5);
}
div.dataTables_wrapper div.dataTables_paginate{
    padding-bottom: 3% !important;
}

/*########################*/
/*# Modal                *#/
/*#######################*/

/* Ensure the modal dialog is centered in the viewport */
.modal.fade .modal-dialog {
    position: absolute !important;
    top: 40% !important;
    left: 50% !important; 
    transform: translate(-50%, -50%) !important;
    max-width: 500px; 
    width: 100%; 
}

/* Center the content within the modal */
.modal-content {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    padding:30px;
}

/* Style the buttons to make sure they align nicely */
.modal-footer .btn {
    margin: 0 10px;
}

#forceDeleteConfirmModal {
    background-image: linear-gradient(to right, rgba(255, 0, 0, 0.5), rgba(207, 105, 9, 0.5));
}

/*########################*/
/*# Login Page          *#/
/*#######################*/

.login-container{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-form, .forgot-pw-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-form{
    max-width: 400px;
}

.forgot-pw-form {
    max-width: 550px;
}

.logo img {
    width: 100px;
    margin-bottom: 20px;
}

.login-container label {
    color: #fff;
}

.input-group input {
    height: 50px;
    border-radius: 4px;
    padding-left: 15px;
}

.forgot-pw {
    color: #fff;
    font-size: 12px;
}

.forgot-pw:hover {
    color: rgb(99, 200, 247);
}

.login-btn{
    width: 100%;
    padding: 12px !important;
    background: linear-gradient(135deg, rgb(27, 139, 191), rgb(7, 88, 106));
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease !important;
}

.login-btn:hover {
    background: linear-gradient(135deg, rgb(7, 88, 106), rgb(27, 139, 191));
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    color:#fff;
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.login-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(30, 108, 125, 0.4);
}

/* 訓練履歴編集 page */

.edit-page-container{
    overflow:hidden;
}
.edit-form-btn{
    padding:10px 30px;
    color: #fff;
}

/* error page */

.error-page-bg{
    background-image: linear-gradient(180deg, #215d7b, rgb(10, 42, 56));
}

