@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap');

/* Light Theme (Default) */
body.light-theme {
    background-color: #f4f4f4;
    color: #333;
    font-family: 'Montserrat', sans-serif;
}

.light-theme .navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #ddd;
}

.light-theme .navbar-brand {
    color: #333;
    font-weight: 700;
}

.light-theme h2 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.light-theme .card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 10px;
}

.light-theme .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.light-theme .card-title {
    font-weight: 700;
    color: #007bff;
}

.light-theme .card-text {
    color: #333;
}

.light-theme a {
    color: #007bff;
}

.light-theme a:hover {
    color: #0056b3;
}

.light-theme footer {
    background-color: #ffffff !important;
    border-top: 1px solid #ddd;
    color: #333;
}

/* Dark Theme */
body.dark-theme {
    background-color: #121212;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
}

.dark-theme .navbar {
    background-color: #1f1f1f !important;
    border-bottom: 1px solid #333;
}

.dark-theme .navbar-brand {
    color: #fff;
    font-weight: 700;
}

.dark-theme h2 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.dark-theme .card {
    background-color: #1f1f1f;
    border: 1px solid #333;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 10px;
}

.dark-theme .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.15);
}

.dark-theme .card-title {
    font-weight: 700;
    color: #64b5f6;
}

.dark-theme .card-text {
    color: #ffffff;
}

.dark-theme a {
    color: #007bff;
}

.dark-theme a:hover {
    color: #0056b3;
}

.dark-theme footer {
    background-color: #1f1f1f !important;
    border-top: 1px solid #333;
}

.dark-theme .table {
    color: #ffffff;
}

/* Theme-agnostic styles */
.navbar-brand {
    font-weight: 700;
}

.btn-secondary,
.btn-danger,
.btn-primary {
    color: #ffffff !important;
}

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

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

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

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

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

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

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

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

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

.theme-icon {
    margin-left: 10px;
    font-size: 1.5rem;
}