body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.main-display {
    display: flex;
    height: 100vh;
    width: 100%;
    background-color: #0b4d85;
    background-size: cover;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    /* background-color: #0b4d85; */
    color: white;
    display: flex;
    flex-direction: column;
        border-right: 2px solid #0b4d85;
}

.sidebar-header-container {
    padding: 15px;
        background: linear-gradient(to right, #272f54, #191e36);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5px;
}

.logo-container img {
    height: 60px;
    width: auto;
    margin-bottom: 10px;
}

.logo-container h2 {
    font-size: 18px;
    margin: 0;
    color: #ffc107;
}

.sidebar-address {
    font-size: 12px;
    margin: 0;
    opacity: 0.8;
}

/* Sidebar Clock Container */
.sidebar-clock-container {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex: 1;
    background-color: #ffffff;
}

/* .sidebar-clock-container .analog-clock {
		width: 220px;
		height: 220px;
		position: relative;
	} */

.digital-time {
    /* position: absolute; */
    bottom: -30px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 56px;
    margin-top: 12px;
    color: #000000;
    font-weight: bold;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.2);
}

.mosque-header {
    background-color: rgba(22, 53, 102, 0.9);
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mosque-title h1 {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.mosque-title h1 span {
    color: #ffc107;
}

.mosque-address {
    font-size: 14px;
    margin: 5px 0;
}

.date-display {
    font-size: 16px;
    padding: 10px 15px;
    background: linear-gradient(to right, #272f54, #191e36);
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.date-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #ffc107, transparent);
}

.date-display p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.date-display i {
    color: #ffc107;
    margin-right: 10px;
    font-size: 18px;
}

.date-display span {
    position: relative;
    padding: 0 5px;
}

#gregorian-date {
    color: #ffffff;
    font-weight: 600;
}

#hijri-date {
    color: #ffc107;
    font-weight: 600;
}

.date-display span:first-of-type::after {
    content: '/';
    position: absolute;
    right: -5px;
    color: rgba(255, 255, 255, 0.6);
}

/* Improved Carousel Styles */
.intro-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.carousel {
    height: 100%;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    position: relative;
}

/* Dark overlay to improve text contrast */
.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay */
    z-index: 1;
}

/* Enhance carousel container positioning */
.carousel-container {
    position: relative;
    z-index: 2; /* Place above the overlay */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

.container-fluid {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 20px;
    max-width: 90%;
    margin: 0 auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* Enhance carousel text */
.carousel-container h2 {
    color: #ffc107;
    margin-bottom: 20px;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
}

.carousel-container p {
    color: #ffffff;
    font-size: 2rem;
    line-height: 1.6;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Improve carousel indicators */
.carousel-indicators {
    bottom: 20px;
    z-index: 5;
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators li.active {
    background-color: #ffd152;
    width: 14px;
    height: 14px;
}

/* Add slide controls for better navigation */
.carousel-control-prev, .carousel-control-next {
    width: 10%;
    z-index: 5;
    opacity: 0.7;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-container h2 {
        font-size: 2rem;
    }
    
    .carousel-container p {
        font-size: 1.2rem;
    }
    
    .container-fluid {
        padding: 15px;
    }
}

/* Clock Styles */
/* .analog-clock {
		width: 250px;
		height: 250px;
		position: relative;
		background-color: rgba(0, 51, 102, 0.7);
		border-radius: 50%;
		border: 8px solid rgba(255, 255, 255, 0.1);
		box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
	} */

.clock-face {
    width: 100%;
    height: 100%;
    position: relative;
}

.clock-center {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #ffc107;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.clock-marking {
    position: absolute;
    font-size: 16px;
    color: white;
    font-weight: bold;
    text-align: center;
    width: 20px;
    height: 20px;
}

.marking-12 {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.marking-1 {
    top: 20px;
    right: 75px;
}

.marking-2 {
    top: 55px;
    right: 35px;
}

.marking-3 {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.marking-4 {
    bottom: 55px;
    right: 35px;
}

.marking-5 {
    bottom: 20px;
    right: 75px;
}

.marking-6 {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.marking-7 {
    bottom: 20px;
    left: 75px;
}

.marking-8 {
    bottom: 55px;
    left: 35px;
}

.marking-9 {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.marking-10 {
    top: 55px;
    left: 35px;
}

.marking-11 {
    top: 20px;
    left: 75px;
}

#hour-hand {
    position: absolute;
    width: 6px;
    height: 60px;
    background-color: white;
    border-radius: 3px;
    transform-origin: bottom center;
    left: calc(50% - 3px);
    bottom: 50%;
    z-index: 8;
}

#minute-hand {
    position: absolute;
    width: 4px;
    height: 80px;
    background-color: white;
    border-radius: 2px;
    transform-origin: bottom center;
    left: calc(50% - 2px);
    bottom: 50%;
    z-index: 9;
}

#second-hand {
    position: absolute;
    width: 2px;
    height: 90px;
    background-color: red;
    transform-origin: bottom center;
    left: calc(50% - 1px);
    bottom: 50%;
    z-index: 10;
}

.mosque-brand {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translateX(-50%);
    color: #ffc107;
    font-size: 14px;
    letter-spacing: 2px;
}

/* Running Text Styles */
.running-text-container {
    background-color: #ffc107;
    color: #000000;
    padding-top: 10px;
    font-size: 21px;
    font-weight: bold;
}

/* Next Prayer Styles */
.next-prayer {
    background: linear-gradient(to right, #272f54, #191e36);
    color: white;
    border-bottom: 1px solid #ffc107;
    border-top: 1px solid #ffc107;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.next-prayer-label {
    display: flex;
    align-items: center;
    margin-right: 15px;
    font-size: 16px;
}

.next-prayer-label i {
    margin-right: 10px;
    color: #ffc107;
    font-size: 20px;
}

.countdown-time {
    font-size: 50px;
    font-weight: bold;
    color: #19ff1e;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    background-color: rgb(255 255 255 / 20%);
    padding: 5px 15px;
    border-radius: 4px;
    min-width: 120px;
    text-align: center;
}

/* Updated Footer Prayer Times Styles */
.footer-prayer-times {
    display: flex;
    /* background: linear-gradient(to bottom, #0a3d6a, #0b4d85); */
    color: white;
    background: linear-gradient(to right, #272f54, #191e36);
    justify-content: space-between;
    padding: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.prayer-time-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 5px;
    flex: 1;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.prayer-time-item:last-child {
    border-right: none;
}

.prayer-time-item.active {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.prayer-time-item.active .prayer-name {
    font-weight: bold;
}

.prayer-time-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 4px;
    width: 100%;
    background-color: #ffc107;
    box-shadow: 0 0 8px rgba(249, 220, 92, 0.6);
}

/* Enhanced Prayer Icons */
.prayer-icon {
    margin-top: 10px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
}

.prayer-time-item:hover .prayer-icon {
    transform: scale(1.1);
}

/* Fajr/Shubuh - Dawn with stars */
#prayer-container-1 .prayer-icon i {
    color: #FFC125;
    filter: drop-shadow(0 0 3px rgba(255, 193, 37, 0.6));
    position: relative;
}

#prayer-container-1 .prayer-icon::before {
    content: "\f005"; /* Star icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    font-size: 12px;
    color: white;
    top: -5px;
    right: 30%;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
}

/* Syuruq - Sunrise over horizon */
#prayer-container-2 .prayer-icon {
    position: relative;
}

#prayer-container-2 .prayer-icon i {
    color: #FF9800;
    filter: drop-shadow(0 0 5px rgba(255, 152, 0, 0.7));
}

#prayer-container-2 .prayer-icon::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    bottom: -2px;
}

/* Dzuhur - Mosque with sunshine */
#prayer-container-3 .prayer-icon i {
    color: #4CAF50;
    filter: drop-shadow(0 0 3px rgba(76, 175, 80, 0.6));
}

#prayer-container-3 .prayer-icon::before {
    content: "\f185"; /* Sun icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    font-size: 14px;
    color: #FFEB3B;
    top: -5px;
    right: 25%;
    filter: drop-shadow(0 0 3px rgba(255, 235, 59, 0.7));
}

/* Ashar - Afternoon sun */
#prayer-container-4 .prayer-icon i {
    color: #FF5722;
    filter: drop-shadow(0 0 4px rgba(255, 87, 34, 0.6));
    transform: rotate(-20deg);
}

/* Maghrib - Sunset */
#prayer-container-5 .prayer-icon {
    position: relative;
}

#prayer-container-5 .prayer-icon i {
    color: #7E57C2;
    filter: drop-shadow(0 0 4px rgba(126, 87, 194, 0.6));
}

#prayer-container-5 .prayer-icon::before {
    content: "\f185"; /* Sun icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    font-size: 14px;
    color: #FF5722;
    bottom: 0;
    opacity: 0.6;
    transform: translateY(30%);
}

/* Isha - Night with stars */
#prayer-container-6 .prayer-icon i {
    color: #3F51B5;
    filter: drop-shadow(0 0 5px rgba(63, 81, 181, 0.7));
}

#prayer-container-6 .prayer-icon::before {
    content: "\f005"; /* Star icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    font-size: 10px;
    color: white;
    top: -2px;
    left: 35%;
}

#prayer-container-6 .prayer-icon::after {
    content: "\f005"; /* Star icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    font-size: 8px;
    color: white;
    top: 5px;
    right: 35%;
}

.prayer-name {
    font-size: 28px;
    /* margin-bottom: 6px; */
    font-weight: 500;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prayer-time {
    font-size: 46px;
    font-weight: bold;
    color: #19ff1e;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments for prayer times */
@media (max-width: 768px) {
    .prayer-time-item {
        padding: 10px 2px;
    }

    .prayer-icon {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .prayer-name {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .prayer-time {
        font-size: 18px;
    }
}

/* Footer Styles */
.footer-message {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 20px;
    text-align: center;
    font-size: 14px;
}

.clock {
    background: linear-gradient(to right, #272f54, #191e36);
    width: 236px;
    height: 236px;
    margin: 0 auto;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.1);
    position: relative;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffc107;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    position: absolute;
    z-index: 10;
    box-shadow: 0 2px 4px -1px black;
}

.hour-hand {
    position: absolute;
    z-index: 5;
    width: 6px;
    height: 60px;
    background: white;
    top: 50px;
    transform-origin: 50% 60px;
    left: 50%;
    margin-left: -3px;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
}

.minute-hand {
    position: absolute;
    z-index: 6;
    width: 4px;
    height: 80px;
    background: white;
    top: 30px;
    left: 50%;
    margin-left: -2px;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    transform-origin: 50% 80px;
}

.second-hand {
    position: absolute;
    z-index: 7;
    width: 2px;
    height: 90px;
    background: #ffc107;
    top: 20px;
    left: 50%;
    margin-left: -1px;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    transform-origin: 50% 90px;
}

.clock span {
    display: inline-block;
    position: absolute;
    color: white;
    font-size: 18px;
    font-weight: 700;
    z-index: 4;
}

.h12 {
    top: 20px;
    left: 50%;
    margin-left: -9px;
}

.h3 {
    top: 103px;
    right: 20px;
}

.h6 {
    bottom: 20px;
    left: 50%;
    margin-left: -5px;
}

.h9 {
    left: 20px;
    top: 103px;
}

.diallines {
    position: absolute;
    z-index: 2;
    width: 2px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    left: 50%;
    margin-left: -1px;
    transform-origin: 50% 110px;
}

.diallines:nth-of-type(3n) {
    position: absolute;
    z-index: 2;
    width: 3px;
    height: 15px;
    background: rgba(255, 255, 255, 0.8);
    left: 50%;
    margin-left: -1.5px;
    transform-origin: 50% 110px;
}

.info {
    position: absolute;
    width: 120px;
    height: 20px;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
    line-height: 20px;
    color: #ffc107;
    font-size: 11px;
    left: 50%;
    margin-left: -60px;
    font-weight: 700;
    z-index: 3;
    letter-spacing: 1px;
}

.date {
    top: 80px;
}

.day {
    display: none;
}

.mosque-brand {
        position: absolute;
        top: 65%;
        left: 50%;
        transform: translateX(-50%);
        color: #ffc107;
        font-size: 14px;
        letter-spacing: 2px;
        z-index: 5;
        text-align: center;
}


#next-prayer-name {
    font-size: 50px;
    text-transform: uppercase;
    color: #ffc107;
    font-weight: bold;
    position: relative;
    display: inline-block;
}

/* Add subtle emphasis to "MENUJU" prefix */
#next-prayer-name::before {
    content: "MENUJU ";
    color: white;
    font-weight: normal;
}

/* Remove the word "MENUJU" from the actual span since we're adding it via CSS */
.next-prayer-label {
    display: flex;
    align-items: center;
    margin-right: 15px;
    font-size: 16px;
}

.next-prayer-label i {
    margin-right: 10px;
    color: #ffc107;
    font-size: 20px;
}

/* Fullscreen Toggle Button */
.fullscreen-button-container {
    text-align: center;
    margin-top: 15px;
}

.fullscreen-toggle {
    background-color: rgba(0, 51, 102, 0.7);
    color: #ffc107;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fullscreen-toggle:hover {
    background-color: rgba(0, 77, 153, 0.8);
    transform: scale(1.05);
}

.fullscreen-toggle:focus {
    outline: none;
}

.fullscreen-toggle i {
    font-size: 18px;
}