.catmenubtn {
    
    background-color: #3c3c3c; 
    color: white; 
    height: auto; 
    font-size: 13px; 
    border-radius: 5px; 
    text-align: center; 
    font-family: Arial, Helvetica, sans-serif; 
    padding-bottom: 10px;
    padding-top: 10px; 
    position: -webkit-sticky; 
    width: 14.7%;
    margin-right: 1%;
    margin-left: 10px;
}

.catmenubtn-admin {
    
    background-color: #3c3c3c; 
    color: white; 
    height: auto; 
    font-size: 13px; 
    border-radius: 5px; 
    text-align: center; 
    font-family: Arial, Helvetica, sans-serif; 
    padding-bottom: 10px;
    padding-top: 10px; 
    position: -webkit-sticky; 
    width: 14.5%;
    margin-right: 1%;
    margin-left: 10px;
}

.searchbtn {
    
    background: rgb(197,0,65);
    border-style: none;
    margin: 2px;
    margin-top: 5px;
    margin-bottom: 0;
    margin-right: 5px;
    width: 10%;
    padding: 8px 12px;
    border-radius: 5px;
    color: white;
    
}

.searchinput {
    
    width: 88%;
    height: 40px;
    padding: 0px 2px;
    color: rgb(41,41,41);
    border-radius: 5px;
    border: 1px solid rgb(230,230,230);
    margin-right: 5px;
    padding-left: 40px;
    margin-top: 5px;
    
}

.searchbtnadmin {
    
    background: rgb(197,0,65);
    border-style: none;
    margin: 2px;
    margin-top: 5px;
    margin-bottom: 0;
    margin-right: 5px;
    width: 21%;
    padding: 8px 12px;
    border-radius: 5px;
    color: white;
    
}

.searchinputadmin {
    
    width: 77%;
    height: 40px;
    padding: 0px 2px;
    color: rgb(41,41,41);
    border-radius: 5px;
    border: 1px solid rgb(230,230,230);
    margin-right: 5px;
    padding-left: 40px;
    margin-top: 5px;
    
}

.sticky-message-writer {
    position: fixed;
    bottom: 40px;
    width: 100%;
    color: white;
    z-index: 1000;
    box-sizing: border-box; /* Prevents padding from affecting width */
}

body, html {
    height: 100%;
    margin: 0;
}

@media (max-width: 767px) {
    .sticky-bottom {
        padding: 15px; /* Adjust padding for mobile */
    }
}


.mobileloginbtn {
      display: none;
    }
.onmobile-top {
                border-radius: 10px;
            }
         
            .navbar { /* Or a more specific selector if you only want this shadow on certain navbars */
  box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1); /* Adjust values as needed */
                
}
            .activemobilebtn {
                /* Giving active button color*/
                color:#c50041;
            }
            .card-img-container {
            width: 100%;
            height: 209px; /* Fixed height */
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #f0f0f0; /* Fallback background */
        }

        .card-img-container img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* Ensures the image maintains its aspect ratio while cropping */
            object-position: center; /* Centers the image */
        }

        .active-page {
            background-color: rgb(197,0,65) !important;
            border-color: rgb(197,0,65) !important;
        }
            
            .custom-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 100px;
    background: #fff;
    border: 0px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-align: center;
}
.custom-dialog button {
    margin: 5px;
    cursor: pointer;
}

/* Tools Table */
.tools-table {
    margin: 0px;
    width: 100%;
}

/* Table Header */
.tools-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    background-color: #f1f1f1;
    padding: 10px;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

.header-item {
    text-align: left;
    padding: 0px;
}

/* Tool Rows */
.tool-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 0px;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.tool-item {
    padding: 0px;
    font-size: 12px;
    text-align: left;
}
        /* Hide <span> on desktop */
.tool-item span {
    display: none;
}

.pagination-btn {
    margin: 5px;
    background-color: #cdcdcd;
    border-width: 0;
}

/* Highlight Active Page */
.active-page {
    background-color: #37ab00;
    color: white;
    font-weight: bold;
    border-color: #007bff;
    border-width: 0;
}

/* Mobile View Adjustments */
@media screen and (max-width: 768px) {
    
    
.catmenubtn {
    
    background-color: #3c3c3c; 
    color: white; 
    height: auto; 
    font-size: 13px; 
    border-radius: 5px; 
    text-align: center; 
    font-family: Arial, Helvetica, sans-serif; 
    padding-bottom: 10px;
    padding-top: 10px; 
    position: -webkit-sticky; 
    width: 28.5%;
    margin-bottom: 10px;
}

    .catmenubtn-admin {
    
    background-color: #3c3c3c; 
    color: white; 
    height: auto; 
    font-size: 13px; 
    border-radius: 5px; 
    text-align: center; 
    font-family: Arial, Helvetica, sans-serif; 
    padding-bottom: 10px;
    padding-top: 10px; 
    position: -webkit-sticky; 
    width: 28%;
    margin-right: 1%;
    margin-left: 10px;
        margin-bottom: 10px;
}
    
    
    
.searchbtn {
    
    background: rgb(197,0,65);
    border-style: none;
    margin: 2px;
    margin-top: 5px;
    margin-bottom: 0;
    margin-right: 5px;
    width: 30%;
    padding: 8px 12px;
    border-radius: 5px;
    color: white;
    
}

.searchinput {
    
    width: 65%;
    height: 40px;
    padding: 0px 2px;
    color: rgb(41,41,41);
    border-radius: 5px;
    border: 1px solid rgb(230,230,230);
    margin-right: 5px;
    padding-left: 20px;
    margin-top: 5px;
    
}
    
    .searchbtnadmin {
    
    background: rgb(197,0,65);
    border-style: none;
    margin: 2px;
    margin-top: 5px;
    margin-bottom: 0;
    margin-right: 5px;
    width: 35%;
    padding: 8px 12px;
    border-radius: 5px;
    color: white;
    
}

.searchinputadmin {
    
    width: 59%;
    height: 40px;
    padding: 0px 2px;
    color: rgb(41,41,41);
    border-radius: 5px;
    border: 1px solid rgb(230,230,230);
    margin-right: 0px;
    padding-left: 20px;
    margin-top: 5px;
    
}
    
    
    .navbarmobile {
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
    display: none;
}
    
    * {
  box-sizing: border-box;
  overflow-x: hidden;
}
    
    .mobileloginbtn {
      display:flex;
        text-align: end;
    }
    
    .onmobile-top {
        border-radius: 0px;
    }
    
    .container{
    /* width: 100%; */
    padding-right: 0px;
    padding-left: 0px;
    /* margin-right: auto; */
    /* margin-left: auto; */
}
        .onmobile{
    /* width: 100%; */
    padding-right: 20px;
    padding-left: 20px;
    /* margin-right: auto; */
    /* margin-left: auto; */
}
  
    .mobile-hidden {
      display: none;
    }
    /* Grid Layout for Larger Screens (Tablet and Desktop) */
    .tools-header, .tool-row {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
        gap: 10px;
    }
    
    /* Mobile View - Stack the data vertically */
    .tool-row {
        display: block;
        padding: 10px;
        border-bottom: 1px solid #ddd;
        background-color: #fff;
    }

    .tool-item {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        font-size: 14px;
    }

    /* Label on left and data on the right */
    .tool-item span {
        font-weight: bold;
        margin-right: 10px;
    }

    /* Button Alignment */
    .tool-item .action-buttons {
        text-align: center;
        margin-top: 10px;
    }

    /* Hide the Header Row on Mobile */
    .tools-header {
        display: none;
    }

    .tool-item button {
        font-size: 12px;
        padding: 8px 12px;
        margin: 5px;
    }
    
     .tool-item span {
        display: inline-block;
    }
}



/* Very Small Screen (Mobile Portrait Mode) Adjustments */
@media screen and (max-width: 480px) {
    

    .tool-item {
        font-size: 12px;
    }

    .tool-item span {
        font-size: 12px;
    }

    .tool-item button {
        font-size: 10px;
        padding: 6px 10px;
    }
    
     .tool-item span {
        display: inline-block;
    }
}