@import 'tailwindcss';

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../**/*.blade.php';
@source '../**/*.js';

@theme {
    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol', 'Noto Color Emoji';
}

  .table-responsive {
        overflow-x: auto;
    }
    
    /* Truncate text with ellipsis */
    .text-truncate {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Ensure table cells don't expand */
    .table td {
        word-wrap: break-word;
        /* word-break: break-word; */
    }
    
    /* Fixed width for specific columns */
    .table td:nth-child(1) { /* Name column */
        max-width: 200px;
    }
    
    .table td:nth-child(2) { /* URL column */
        max-width: 250px;
    }
    
    .table td:nth-child(3) { /* Type column */
        width: 120px;
    }
    
    .table td:nth-child(4) { /* Status toggle column */
        width: 80px;
    }
    
    .table td:nth-child(5) { /* Total builds column */
        width: 100px;
    }
    
    .table td:nth-child(6) { /* Last build date column */
        min-width: 120px;
        width: 150px;
    }
    
    .table td:nth-child(7) { /* Actions column */
        min-width: 100px;
        width: 120px;
    }
    
    /* Tooltip on hover for truncated text */
    [title] {
        cursor: help;
    }
    .btn-check:checked + .home-and-login-screen-btn {
        background-color: #DA0003 !important;
        color: #fff !important;
        border-color: #DA0003 !important;
        box-shadow: none !important;
    }
    .home-and-login-screen-btn {
        background: transparent !important;
        color: #DA0003 !important;
        border-color: #DA0003 !important;
        box-shadow: none !important;
        transition: background 0.2s, color 0.2s, border-color 0.2s;
    }
    .btn-check:not(:checked) + .home-and-login-screen-btn {
        background: transparent !important;
        color: #DA0003 !important;
        border-color: #DA0003 !important;
    }
    .home-and-login-screen-btn:focus, .home-and-login-screen-btn:active {
        box-shadow: none !important;
    }
    .setting-btn-container{
    justify-content: space-around;
    }
   .form-check-input:checked,
    .form-switch .form-check-input:checked {
        background-color: var(--bs-success) !important;
        border-color: var(--bs-success) !important;
    }

    .form-check-input:checked:focus,
    .form-switch .form-check-input:checked:focus {
        /* small translucent outline using success RGB (approx) */
        box-shadow: 0 0 0 .25rem rgba(25,135,84,.25) !important;
    }
    .progress-bar.progress-bar-striped,
    .progress-bar.progress-bar-animated {
        background-color: #DA0003 !important;
    }
    .pagination-container nav{
        width: 100% !important;
    }
    .pagination-container nav{
        width: 100% !important;
    }
    /* Remove underline from menu name links */
    .restaurant-menu-table a {
        text-decoration: none !important;
    }
    #pdfs-table th:last-child{
        width: 150px !important;
    }
    #pdfs-table td:not(:nth-child(2)) {
        text-align: center;
        vertical-align: middle;
    }
    #pdfs-table th:nth-child(2) {
        width: 130px !important;
    }
    .dt-ellipsis {
        display: -webkit-box;
        -webkit-line-clamp: 1;   /* change to 3 if needed */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-word;
        max-width: 100%;
    }
    .dt-ellipsis-menu {
        display: -webkit-box;
        -webkit-line-clamp: 1;   /* change to 3 if needed */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-word;
        max-width: 100%;
        color: #0B6EFD !important;
    }
    #additional-pages-table td:not(:nth-child(2)):not(:nth-child(4)) {
        text-align: center;
        vertical-align: middle;
    }
    #additional-pages-table td:nth-child(4){
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    #additional-pages-table th:last-child{
        width: 150px !important;
    }
    #list-pages-table td:not(:nth-child(2)) {
        text-align: center;
        vertical-align: middle;
    } 
    #customers-table td:not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(6)) {
        text-align: center;
        vertical-align: middle;
    }
    #customers-table th:nth-child(2),
    #customers-table th:nth-child(3){
        width: 180px !important;
    }
    #customers-table th:nth-child(5){
        width: 130px !important;
    }
    #customers-table th:nth-child(6){
        width: 180px !important;
    }
    #customers-table th:nth-child(7){
        width: 140px !important;
    }
    #customers-table th:last-child{
        width: 140px !important;
    }
      
    #businesses-table td:not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(4)){
        text-align: center;
        vertical-align: middle;
    }
    #businesses-table td div{
     display: flex;
     justify-content: center;
    }
    #businesses-table th:nth-child(2),
    #businesses-table td:nth-child(3){
        width: 250px !important;
    }
    #businesses-table th:nth-child(6){
        width: 140px !important;
    } 
    #businesses-table td:nth-child(3) {
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .form-label{
        font-weight: 500;
        font-size: 14px;
        color: #211E1E;
    }
    .form-control{
        background-color: #fff !important;
        border: none;
        padding: 4px 12px;
        border-radius: 8px;
        color: #6C757D !important;
        font-size: 14px;
        font-weight: 400;
        height: 50px;
        border: 1px solid #dee2e6 !important;
    }
    #pdfs-table_wrapper .dataTables_length{
        margin-bottom: 10px;
    }
    #customers-table_wrapper .dataTables_length{
        margin-bottom: 10px;
    }
    #announcement-logs-table_wrapper .dataTables_length{
        margin-bottom: 10px;
    }
    #businesses-table_wrapper .dataTables_length{
        margin-bottom: 10px;
    }
    #templatesTable_wrapper .dataTables_length{
        margin-bottom: 10px;
    }
    #additional-pages-table_length, #list-pages-table_length{
        margin-bottom: 10px;
    }
    #permissions-table_wrapper .dataTables_length{
        margin-bottom: 10px;
    }
    #users-table_length{
        margin-bottom: 10px;
    }
    #build-servers-table_wrapper .dataTables_length{
        margin-bottom: 10px;
    }
    #accounts-table_wrapper .dataTables_length{
        margin-bottom: 10px;
    }
    #apps-table_wrapper .dataTables_length{
        margin-bottom: 10px;
    }
    .theme-btn{
        background-color: #DA0003;
        padding: 10px;
        border-radius: 8px;
        color: #FFFFFF;
        font-weight: 600;
        font-size: 18px;
    }
    .theme-btn:hover{
        background-color: #FFFFFF;
        color: #DA0003;
        border: 1px solid #DA0003;
    }
    .theme-btn-navigation{
        background-color:  #FFFFFF;
        padding: 10px;
        border-radius: 8px;
        color: #DA0003;
        font-weight: 600;
        font-size: 18px;
    }
    .theme-btn-navigation:hover{
        background-color: #DA0003;
        color: #FFFFFF;
        border: 1px solid #DA0003;
    }
    .theme-btn-cancel{
        background-color: #6c757d;
        padding: 10px;
        border-radius: 8px;
        color: #FFFFFF;
        font-weight: 600;
        font-size: 18px;
    }
    .btn-theme-template{
        background-color: #DA0003;
        color: #FFFFFF;
    }
    .btn-theme-template:hover{
        background-color: #FFFFFF;
        color: #DA0003;
    }
    .theme-btn-cancel:hover{
        background-color: #FFFFFF;
        color: #6c757d;
        border: 1px solid #6c757d;
    }
    .theme-btn-version-history{
        padding: 10px;
        background-color: #FFFFFF;
        color: #DA0003;
        border: 1px solid #DA0003;
        font-weight: 600;
        font-size: 16px;
    }
    .theme-btn-version-history:hover{
        background-color: #DA0003;
        color: #FFFFFF;

    }
    .theme-btn-save-template{
        background-color: #0d6efd;
        padding: 10px;
        border-radius: 8px;
        color: #FFFFFF;
        font-weight: 600;
        font-size: 16px;
    }
    .theme-btn-save-template:hover{
        background-color: #fff;
        color: #0d6efd;
        border: 1px solid #0d6efd;
    }
    .theme-edit-btn{
        background-color: #155DFC33;
        color: #155DFC;
        border-radius: 9px;
    }
    .theme-edit-btn:hover{
        background-color: #FFFFFF;
        color: #155DFC;
        border: 1px solid #155DFC;
    }
    .theme-view-btn{
        background-color: #155DFC33;
        color: #155DFC;
        border-radius: 9px;
    }
    .theme-view-btn:hover{
        background-color: #FFFFFF;
        color: #155DFC;
        border: 1px solid #155DFC;
    }
    .theme-status-active {
        background-color: #28a74533;
        color: #28a745;
        border-radius: 9px;

    }
    .theme-status-active:hover {
        background-color: #FFFFFF;
        color: #28a745;
        border: 1px solid #28a745;
 
    }

    .theme-status-inactive {
        background-color: #155DFC33;
        color: #155DFC;
        border-radius: 9px;
    }
    .theme-status-inactive:hover {
        background-color: #FFFFFF;
        color: #155DFC;
        border: 1px solid #155DFC;
    }
    .theme-assign-role-btn{
        background-color: #28a74533;
        color: #28a745;
        border-radius: 9px;
    }
    .theme-assign-role-btn:hover {
        background-color: #FFFFFF;
        color: #28a745;
        border: 1px solid #28a745;
    }
    .theme-delete-btn{
        background-color: #E7000B33;
        color: #E7000B;
        border-radius: 9px;
    }
    .theme-delete-btn:hover{
        background-color: #FFFFFF;
        color: #E7000B;
        border: 1px solid #E7000B;
    }
    .theme-rounded-circle{
        background-color: #DA0003 ;
        color: #FFFFFF;
    }
    .table thead th {
        color: #211E1E;
        font-weight: 600;
        font-size: 16px;
    }
    .restaurant-menu-title {
        margin-top: 15px;
    }
    .restaurant-menu-title,.additional-pages-title,.announcement-title{
        font-weight: 600;
        font-size: 24px;
        color: #211E1E;
    }
    .theme-btn-add-upload{
        background-color: #DA0003;
        padding: 5px 10px;
        border-radius: 8px;
        color: #FFFFFF;
        font-weight: 600;
        font-size: 18px;
    }
    .theme-btn-add-upload:hover{
        background-color: #FFFFFF;
        color: #DA0003;
        border: 1px solid #DA0003;
    }
    /* Disabled state */
    .theme-btn-add-upload:disabled {
        background-color: #DA0003; 
        color: #fff;
        cursor: not-allowed;
        opacity: 0.7;
        padding: 5px 10px;
        border-radius: 8px;
        font-weight: 600;
        font-size: 18px;
    }
    .theme-text{
        color: #DA0003;
    }
    .active-icon {
        color: #DA0003 !important;
    }
    .active-badge {
        background-color: #DA00031A !important;
        color: #DA0003 !important;
        border: 1px solid #DA0003 !important;
    }
    .category-badge {
        background-color: #f8f9fa;
        color: #6c757d;
        border: 1px solid #dee2e6;
    }
    .theme-btn-settings{
        background-color: #DA0003;
        padding: 5px 5px;
        border-radius: 3px;
        color: #FFFFFF;
        font-weight: 600;
        font-size: 14px;
    }
    #announcement-logs-table td:not(:nth-child(2)):not(:nth-child(3)) {
        text-align: center;
        vertical-align: middle;
    }
    #permissions-table td:not(:nth-child(2)) {
        text-align: center;
        vertical-align: middle;
    }
    #permissions-table th:nth-child(2){
        width: 260px !important;
    }
    #users-table td:not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(4)) {
        text-align: center;
        vertical-align: middle;
    }
    #announcement-logs-table th:nth-child(4){
        width: 200px !important;
    }
    #announcement-logs-table th:nth-child(8){
        width: 200px !important;
    }
    #announcement-logs-table th:last-child{
        width: 130px !important;

    }
    #announcement-logs-table td > div {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    #build-servers-table td:not(:nth-child(2)):not(:nth-child(3)) {
        text-align: center;
        vertical-align: middle;

    }
    .bi-x{
        font-size: 30px;
        color:#DA0003;

    }
    .form-select{
        color:#6C757D !important;
    }
    #templatesTable td:not(:nth-child(2)):not(:nth-child(3)){
        text-align: center;
        vertical-align: middle;
    }

    .branch-checkbox-container{
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid rgb(233, 236, 239); border-radius: 8px;
    padding: 16px;
    background: rgb(250, 250, 250);
    }
    .branch-checkbox-item{
    cursor: pointer;
    border: 1px solid rgb(233, 236, 239);
    border-radius: 8px;
    padding: 8px;
    background: rgb(255, 255, 255);
    height: 50px;
    }

    @media (min-width: 1440px) { 
        #main-content{
            width: 1700px;
        } 
    }
    @media (max-width: 1440px) {
        #build-servers-table td div{
            display: flex;
            gap: 10px;
        }
    }
    @media (max-width: 1024px) {
        .setting-btn-container{
           flex-direction: column;
           gap: 15px;
        }
         #customers-table td div{
            display: flex;
            gap: 10px;
        }
        #templatesTable td div{
            display: flex;
            gap: 10px;
        }
    }
    @media screen and (max-width: 480px) {
        #pdfs-table td div {
        display: flex;
        gap: 10px;
    }
    .announcement-logs-page-header{
        flex-direction: column;
        gap: 15px;
    }
     #permissions-table th:nth-child(2){
        width: auto !important;
    }
     .reject-and-pending-buttons{
        flex-direction: column;
        gap: 2px;
    }
    .manage-permission-container{
        flex-direction: column;
        gap: 10px;
    }
        
    }
    @media  screen and (max-width:375px) {
       .user-email{
        font-size: 16px;
       } 
       .user-edit-and-back-btn{
        flex-direction: column;
        gap: 5px;
       }
       .web-and-template{
        flex-direction: column;
        gap: 5px;
       }
    }   
    @media  screen and (max-width:375px) {
        .user-email{
        font-size: 12px;
       } 
    }
    @media screen and (max-width:1024px) and (min-width:768px) {
        .dataTables_wrapper {
             width: 700px;
        }
        
    }