/* Footer-specific styles */
.prayer-times-footer {
    position: fixed;
    bottom: 0px;
    right: 0%;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    width: 25%;
    z-index: 9999;
    border-radius: 2px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: width 0.3s ease-in-out, right 0.3s ease-in-out;
}

/* Header for Footer */
.prayer-times-footer-header {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    background-color: #cfcfcf;
    color: #252525;
    font-weight: bold;
    border-radius: 2px 2px 0 0;
}

/* Toggle Button */
.prayer-times-footer-toggle {
    cursor: pointer;
    padding: 10px;
    text-align: center;
    border-radius: 50%;
    line-height: 10px;
}

/* Footer Content */
.prayer-times-footer-content {
    display: none;
    padding: 0px;
    background-color: #fff;
    border-radius: 0 0 8px 8px;
}

/* Jummah Header */
.jummah-time-header {
    background-color: #efefef;
    color: #252525;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    border-radius: inherit;
}
/* Prayer Header */
.prayer-time-header {
    background-color: #fff;
    color: #252525;
    padding: 10px;
    font-weight: bold;
    font-size: 16px;
}

/* Table Styling */
table.prayer-time-table {
    width: 80%; /* Adjust width as needed */
    margin: 0 auto; /* Centers the table */
    border-collapse: collapse;
}

table.prayer-time-table tr td {
    padding: 4px 24px!important;
}

/* Table Cells */
.prayer-time-table td {
    border: 1px solid #ddd;
    padding: 12px 10px; /* Adjust padding for better spacing */
    text-align: left; /* Text inside cells will be left-aligned */
    vertical-align: middle; /* Ensures vertical centering */
    font-size: 16px;
    white-space: nowrap; /* Prevents text from wrapping */
}

/* Table Header */
.prayer-time-table th {
    background-color: #2f2f2f;
    color: white;
    text-transform: uppercase;
    padding: 4px 24px!important;
}

/* Alternating Row Colors */
.prayer-time-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Hover Effect */
.prayer-time-table tr:hover {
    background-color: #f1f1f1;
}



/* Media Query for Mobile */
@media screen and (max-width: 768px) {
    .prayer-times-footer {
        width: 90%; /* Expand to almost full width */
        right: 5%; /* Center it horizontally */
        bottom: 10px; /* Add some space from the bottom */
        border-radius: 8px;
    }

    .prayer-times-footer-header {
        font-size: 14px; /* Reduce font size for the header */
        padding: 8px; /* Adjust padding for smaller screens */
    }

    .prayer-times-footer-table th,
    .prayer-times-footer-table td {
        font-size: 12px; /* Reduce font size in the table */
        padding: 6px; /* Adjust padding */
    }

    .jummah-time-header,
    .prayer-time-header {
        font-size: 14px; /* Adjust header font sizes */
        padding: 8px;
    }
}

/* Media Query for Extra Small Screens */
@media screen and (max-width: 480px) {
    .prayer-times-footer {
        width: 100%; /* Full width on very small screens */
        right: 0; /* Remove horizontal offset */
        bottom: 0; /* Stick to the bottom */
        border-radius: 0; /* No border radius for a flat look */
    }

    .prayer-times-footer-header {
        font-size: 12px; /* Further reduce font size */
        padding: 6px; /* Adjust padding */
    }

    .prayer-times-footer-table th,
    .prayer-times-footer-table td {
        font-size: 10px; /* Smaller font size for tiny screens */
        padding: 4px;
    }

    .jummah-time-header,
    .prayer-time-header {
        font-size: 12px; /* Further reduce font size */
        padding: 6px;
    }
}

/* Sidebar Container */
.prayer-times-sidebar {
    transform: none;
    padding: 0.6rem 0.5rem;
    font-size: 1rem;
    width: auto;
    display: flex;
    flex-direction: row-reverse;
    border-radius: 0;
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    background-color: #ffffff;
    color: #212121;
    z-index: 9999;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

/* Sidebar Header (Rotated Button) */
.prayer-times-sidebar-header {
    transform: rotate(-90deg) translateY(-50%);
    background-color: #cfcfcf;
    color: #212121;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    position: absolute;
    right: -146px;
    gap: 8px;
    top: 50%;
    width: max-content;
}
@media (max-width: 768px) {
    .prayer-times-sidebar-header {
        top: -100px; /* Adjust for smaller screens */
    }
}

/* Sidebar Content */
.prayer-times-sidebar-content {
    display: none; /* Initially hidden */
    position: fixed;
    top: 50%;
    right: 50px; /* Adjust position based on your layout */
    transform: translateY(-50%);
    background-color: #fff;
    color: #212121;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9998;
    width: 300px; /* Adjust width as needed */
    transition: all 0.4s ease-in-out; /* Smooth opening effect */
}

/* Show Content on Hover */
.prayer-times-sidebar:hover .prayer-times-sidebar-content {
    display: block;
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Prayer Table Styling */
.prayer-times-sidebar-table {
    width: 100%;
    border-collapse: collapse;
}

.prayer-times-sidebar-table th,
.prayer-times-sidebar-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.prayer-times-sidebar-table th {
    background-color: #cfcfcf;
    color: rgb(54, 54, 54);
    text-transform: uppercase;
}

.prayer-times-sidebar-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.prayer-times-sidebar-table tr:hover {
    background-color: #f1f1f1;
}
p.prayer-time{
    margin: 0px;
    padding: 0px;
}



.prayer-time-body-widget {
    color: #2c2c2c;
    text-align: center;
    padding: 0px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin: 20px auto;
    align-items: center;
    max-width: fit-content;
}

.prayer-time-header p {
    font-size: 16px;
    color: #252525;
    font-weight: bold;
    margin-bottom: 20px;
}

.prayer-time-body-widget.vertical .prayer-time-header p{
    color: #373737;
} 

.prayer-time-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Default: 6 columns on large screens */
    gap: 10px;
}

@media (max-width: 1024px) {
    .prayer-time-container {
        grid-template-columns: repeat(3, 1fr); /* 4 columns on tablets */
    }
}

@media (max-width: 768px) {
    .prayer-time-container {
        grid-template-columns: repeat(2, 1fr); /* 3 columns on mobile */
    }
}


.prayer-time-item {
    text-align: center;
    width: 150px;
    padding: 0px;
}

.prayer-time-icon img {
    width: 40px;
    height: 40px;
}

.prayer-time-info {
    margin-top: 10px;
}

.prayer-name {
    font-size: 14px;
    font-weight: bold;
    color: #1f1f1f;
    margin-bottom: 0px;
    padding-bottom: 0px;
}

.prayer-time {
    font-size: 14px;
    color: #1f1f1f;
}


table.prayer-time-table tr td {
    border: 1px solid #ffffff;
    background: #fff;
}
table.prayer-time-table tbody {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

table.prayer-time-table thead th, table.prayer-time-table tr th{
    font-size: 16px;
    font-weight: 500;
    color: #333;
    padding: 4px 24px;
}




.prayer-time-body-widget.vertical {
    color: #333;
    border: 0px solid #ddd;
    box-shadow: 0px 4px 10px #445a501c;
    border-radius: 5px;
    padding-top: 0px;
    max-width: 440px;
    margin: auto;
}

/* Add these styles to your prayer-times.css file */
.prayer-time-next {
    background-color:#fff !important;
    border-left: 0px solid #008000 !important;
    font-weight: bold !important;
}

/* For horizontal layout */
.prayer-time-item.prayer-time-next {
    box-shadow: none;
    transform: translateY(-3px) !important;
    transition: all 0.3s ease !important;
}

/* For vertical layout */
.prayer-row.prayer-time-next td {
    font-weight: bold !important;
}

.prayer-time-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.prayer-time-table th{
    padding: 12px;
    border: 1px solid #fff;
    font-weight:400;
    font-size: 16px;
    color: #2c2c2c;
    text-align: center; /* Default center alignment */
}

.prayer-time-table td {
    padding: 12px;
    border: 1px solid #fff;
    font-size: 16px;
    font-weight: 600;
    color: #333;
      text-align: center; /* Default center alignment */

}
.prayer-time-table th:first-child,
.prayer-time-table td:first-child {
    text-align: left; /* Align first column to the left */
    padding-left: 15px; /* Optional: Add left padding for better spacing */
}

.prayer-time-table th:last-child,
.prayer-time-table td:last-child {
    text-align: right; /* Align last column to the right */
    padding-right: 15px; /* Optional: Adds spacing for better readability */
}
.prayer-time-table th {
    background-color: #fff;
}

.prayer-time-table tr:nth-child(odd) {
    background-color: #fff;
}
.jummah-times {
        border-top: 1px solid #f7f7f7;
        color: #050505;
        padding: 4px 20px;
        justify-content: space-evenly;
        gap: 40px;
        display: flex;
        border-radius: 0px 0px 2px 2px;
        text-align: center;
        font-size: 16px;
        font-weight: 600;
        margin-top: 0px;
}

.jummah-times p {
    margin: 5px 0;
    letter-spacing: 0.5px;
}
.prayer-time-next {
    background-color: #fff;
    border-left: 0px solid #accbbd  !important;
    font-weight: bold !important;
}
.vertical .prayer-time-next td {
    background-color: rgba(0, 128, 0, 0.15);
    font-weight: bold;
}
.horizontal .prayer-time-item.prayer-time-next {
    background-color: #fff;
    border-radius: 2px;
    border-bottom: 3px solid green;
    transform: translateY(-3px);
    box-shadow: none;
}



/* Responsive: Adjust for smaller screens */
@media (max-width: 768px) {
    .jummah-times {
        padding: 4px 4px;
        font-size: 12px;
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }
  .prayer-time-table th{
    font-size: 12px;
}
    .prayer-time-table td {
        font-size: 12px;
    }
}



.mpt-copy-button {
    margin-left: 10px;
    padding: 4px 10px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}
.mpt-copy-button:hover {
    background-color: #005177;
}

/* Footer Widget Styles */
.prayer-times-footer {
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 350px;
    z-index: 999;
    background: white;
    width: fit-content;
  }
  
  .prayer-times-footer-header {
    background: #002855;
    color: white;
    padding: 12px 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .prayer-times-footer-toggle {
    font-size: 10px;
    transition: transform 0.3s ease;
  }
  
  .prayer-times-footer-content {
    padding: 15px;
    border: 1px solid #eaeaea;
    border-top: none;
    display: none; /* Hidden by default */
    background: white;
  }
  
  .prayer-times-footer-table {
    width: 100%;
    border-collapse: collapse;
  }
  
  .prayer-times-footer-table th,
  .prayer-times-footer-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
  }
  
  .prayer-times-footer-table th {
    color: #002855;
    font-weight: bold;
  }
  
  .prayer-times-footer-table tr:last-child td {
    border-bottom: none;
  }
 
  