/* General Styling */
*{
    box-sizing: border-box;
}
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

h1 {
    color: #333;
    text-align: center;
    padding: 20px;
    font-size: 20px;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #ffffff;
    height: 100vh;
    overflow:scroll;
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px;
    border-right:0.5px solid #cfcfcf;
}
.mobile-dashboard-lnk{
    width:100%;
    margin:0;
    display: none;
}
.sidebar h4 {
    margin-bottom: 20px; /* Space below heading */
    text-align: center; /* Center heading text */
    font-size: 16px; /* Font size for heading */
}

.sidebar ul {
    list-style-type: none; /* Remove bullets */
    padding: 0; /* Remove padding */
}

.sidebar ul li {
    margin:0; /* Space between list items */
}

.sidebar ul li a {
    text-decoration: none; /* Remove underline */
    font-size:14px;
    color: #333; /* White text color */
    display: flex; /* Flex layout for alignment */
    align-items: center; /* Center icons and text vertically */
    padding: 8px 10px; /* Padding for clickable area */
    border-radius: 4px; /* Rounded corners */
    transition: background-color 0.3s; /* Smooth transition */
}

.sidebar ul li a:hover {
    background-color: #34495E; /* Change background on hover */
    color:#fff;
}

.sidebar ul li a i {
    margin-right: 10px; /* Space between icon and text */
    font-size: 14px; /* Icon size */
}

/* Main content area */
.content {
    margin-left: 250px;
    padding: 20px;
    background-color: #fff;
    min-height: 100vh;
}
.content h1{
    text-align:left;
    font-size:16px;
}
/* Button Styling */
.btn {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    background-color: #3498db;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
}

.add-service {
    margin-bottom: 20px;
}

/* Services List */
.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.service-item {
    background-color: #ecf0f1;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: scale(1.05);
}

.service-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.service-item h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.service-item .editServiceBtn,
.service-item .deleteServiceBtn {
    padding: 10px 15px;
    margin: 5px;
    background-color: #fff;
    color: #333;
    border: 1px solid #333;
    border-radius: 2px;
    cursor: pointer;
}
.service-item .editServiceBtn:hover,
.service-item .deleteServiceBtn:hover {
    background-color: #333;
    color: #fff;
}


.service-item button:hover {
    opacity: 0.9;
}
.form-group{
    border:1px solid #ccc;
    padding:10px;
    border-radius:5px;
    width:100%;
}
/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    padding-top: 100px;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    width: 50%;
    position: relative;
}

.modal-content h2 {
    margin-bottom: 20px;
}

.modal-content .form-group {
    margin-bottom: 15px;
}

.modal-content .form-group label {
    font-weight: bold;
    color: #2c3e50;
}

.modal-content .form-group input,
.modal-content .form-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #bdc3c7;
    font-size:14px;
}

.modal-content .form-group textarea {
    height: 150px;
}

.submit-btn {
    background-color: #27ae60;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

.submit-btn:hover {
    background-color: #1e8449;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.log-container{
    width:100%;
    height:100vh;
    background-color:#293a4a;
    color:#fff;
    margin:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
       display: none;   
    }

   .mobile-dashboard-lnk{
    display: flex;
    background: #3125a0;
    color: #fff;
    padding:15px;
    justify-content: center;
    align-items: center;
   }
   .mobile-dashboard-lnk a{
    text-decoration: none;
    color: #fff;
   }

    .content {
        margin-left: 0;
    }

    .service-item {
        width: 100%;
    }

    .modal-content {
        width: 90%;
    }
}

.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); /* Modal background */
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
}

/* Form Styling */
#headerForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 90%;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#headerForm .form-group {
    display: flex;
   gap:20px;
    justify-content: flex-start;
}

#headerForm label {
    width:50%;
    font-size: 14px;
    
    margin-bottom: 5px;
    color: #333;
}

#headerForm input[type="tel"], 
#headerForm select, 
#headerForm input[type="file"] {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s ease-in-out;
}

#headerForm input[type="tel"]:focus, 
#headerForm select:focus, 
#headerForm input[type="file"]:focus {
    border-color: #007bff;
    outline: none;
}

#headerForm small {
    color: #666;
    margin-top: 5px;
}

/* Submit Button Styling */
.submit-btn {
    background-color: #292b2d;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.submit-btn:hover {
    background-color: #0056b3;
}

/* Logo Upload Styling */


.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-img {
    width: 150px;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px;
}

.file-input {
    display: none;
    font-size: 14px;
    padding: 8px;
}

#logo_preview {
    cursor: pointer;
    transition: transform 0.2s;
}

#logo_preview:hover {
    transform: scale(1.05);
}


/* Responsive Styling */
@media (max-width: 768px) {
    #headerForm {
        max-width: 100%;
        padding: 15px;
    }

    .logo-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .submit-btn {
        width: 100%;
    }
}

.admin-login{
    width:400px;
    background-color:#293a4a;
}
/* Form Container */
form {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Form Label Styling */
form label {
    width:50%;
    margin-bottom: 5px;
    color: #333;
}
.admin-login form label{
    color:#fff;
}

/* Text Inputs and Select Fields */
form input[type="text"],
form input[type="number"],
form input[type="password"],
form select,
form textarea {   
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

/* Textarea Styling */
form textarea {
    width:50%;
    resize: vertical;
    min-height: 200px;
}

/* Focus State for Inputs */
form input:focus,
form select:focus,
form textarea:focus {
    border-color: #007bff;
    outline: none;
}

/* Image Upload and Preview */
#aboutus_image_preview {
    width: 150px;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

#aboutus_image_preview:hover {
    transform: scale(1.05);
}

/* File Input Hidden */
#image {
    display: none;
}

/* Submit Button */
form button {
    background-color: #179bd7;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}
 

form button:hover {
    background-color: #b92323;
}

/* Responsive Design */
@media (max-width: 768px) {
    form {
        max-width: 100%;
        padding: 15px;
    }

    #aboutus_image_preview {
        width: 100px;
    }
}


h2 {
    text-align: left;
    color: #333;
    font-size: 16px;
    margin-bottom: 20px;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}

th, td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #e5e5e5;
    color: #333;
    text-transform: capitalize;
}

td {
    background-color: #fff;
    color: #333;
}

tr:nth-child(even) td {
    background-color: #f4f4f4;
}

tr.unread td {
    font-weight: bold;
    background-color: #e7f3ff;
    color: #333;
    cursor: pointer;
}

/* Hidden content row */
tr.content-hidden {
    display: none;
}

tr.content-hidden td {
    background-color: #f9f9f9;
}

/* Archive Button */
.archive-btn {
    background-color: #fff;
    color: #333;
    border: 1px solid #333;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.archive-btn:hover {
    background-color: #333;
    color:#fff;
}

/* Pagination Styles */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    color: #007bff;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.pagination a:hover {
    background-color: #333;
    color: #fff;
}

.pagination a.active {
    background-color: #333;
    color: #fff;
    pointer-events: none;
}

/* Media Query for Mobile */
@media (max-width: 768px) {
    table {
        font-size: 14px;
    }

    th, td {
        padding: 8px 10px;
    }

    .archive-btn {
        padding: 6px 10px;
    }

    .pagination a {
        padding: 8px 10px;
    }
}

/*form input{*/
/*    height: 25px;    */
/*}*/

.gallery {
    margin-top: 20px;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gallery-item img.thumbnail {
    width: 150px; /* Set a fixed width */
    height: 150px; /* Set a fixed height */
    object-fit: cover; /* Ensures images fill the box without distortion */
    border-radius: 8px; /* Optional: Rounded corners for a modern look */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img.thumbnail:hover {
    transform: scale(1.05); /* Slight zoom on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.delete-btn {
    background: none;
    color: #333;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.delete-btn:hover {
    background-color: #c0392b;
}
.emailButton{
    padding:5px 10px;
    background-color:#fff;
    color:#333;
    border:0.5px solid #333;
    border-radius:0;
    cursor:pointer;
}
.emailButton:hover{
     background-color:#333;
    color:#fff;
}

#bulkEmailButton{
    padding:10px 20px;
    background-color:#fff;
    color:#333;
    border:0.5px solid #333;
    border-radius:0;
    margin:20px;
    cursor:pointer;
}
#bulkEmailButton:hover{
    background-color:#333;
    color:#fff;
}