body {
    font-family: Arial, sans-serif;
    background-color: #f0f8ff;
    margin: 0;
    padding: 0;
    color: #333;
}

header {
    background-color: #1e90ff;
    color: white;
    text-align: center;
    padding: 25px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    font-size: 28px;
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.module {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
    padding: 25px;
    margin: 25px;
    width: 350px;
    min-height: 350px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.2);
}

.module h2 {
    color: #1e90ff;
    border-bottom: 3px solid #1e90ff;
    padding-bottom: 12px;
    margin-top: 0;
    font-size: 24px;
}

.control-module {
    background-color: #e0f0ff;
}

.switch-container {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-top: 30px;
}

.switch-container input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #1e90ff;
}

input:focus+.slider {
    box-shadow: 0 0 1px #1e90ff;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.recognition-module {
    background-color: #fff5e0;
}

.measurement-module {
    background-color: #e0ffe0;
}

.weather-module {
    background-color: #ffffe0;
}

.weather-module a {
    color: #1e90ff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 18px;
}

.weather-module a:hover {
    color: #007acc;
    text-decoration: underline;
}

.alarm-module {
    background-color: #ffe0e0;
}

.statistics-module {
    background-color: #e0e0ff;
}

.prediction-module {
    background-color: #fff0e0;
}

.module-image {
    max-width: 100%;
    height: auto;
    margin-top: 25px;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.statistics-info p,
.prediction-info p {
    margin-bottom: 15px;
    font-size: 18px;
}