/* Custom CSS */
body {
    padding-top: 60px;
    padding-bottom: 70px;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
}
.navbar-nav .nav-link.active {
    color: #3F51B5;
}

.card {
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.card:hover {
    transform: scale(1.05);
}

/* Dark mode styles */
body.dark-mode {
    background-color: #333;
    color: #fff;
}

body.dark-mode .navbar,
body.dark-mode .card,
body.dark-mode .modal-content {
    background-color: #444;
    color: #fff;
}

body.dark-mode .navbar-dark .navbar-nav .nav-link {
    color: #fff;
}

body.dark-mode .navbar-dark .navbar-nav .nav-link.active {
    color: #3F51B5;
}

/* Theme switch styles */
.form-check-input {
    width: 60px;
    height: 30px;
}

.form-check-label {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.form-check-label .fas {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.form-check-label .fa-sun {
    left: 5px;
    color: #ffd700;
}

.form-check-label .fa-moon {
    right: 5px;
    color: #c0c0c0;
}

/* Responsive card layout */
@media (min-width: 768px) {
    .card-container {
        display: flex;
        flex-wrap: wrap;
    }

    .card-container .card {
        flex: 0 0 calc(33.333% - 20px);
        margin: 10px;
    }
}

/* Icon colors */
body.dark-mode .fas {
    color: #fff;
}

body:not(.dark-mode) .fas {
    color: #333;
}

/* New Theme switch styles */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
}

input:checked + .slider {
    background-color: #ddcd41;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.slider .fa-sun,
.slider .fa-moon {
    color: #ffffff;
    font-size: 18px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: .4s;
}

.slider .fa-sun {
    left: 6px;
    opacity: 0;
}

.slider .fa-moon {
    right: 6px;
}

input:checked + .slider .fa-sun {
    opacity: 1;
}

input:checked + .slider .fa-moon {
    opacity: 0;
}

.lottery-card {
    position: relative;
}

.countdown-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.267); /* Light transparent background */
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
}
