Doctype HTML
Doctype HTML
DOCTYPE html>
<head>
<meta charset=”UTF-8”>
<style>
:root {
--primary-color: #0d904f;
--secondary-color: #81c784;
--accent-color: #4caf50;
--background-color: #f8f9fa;
--text-color: #212121;
--light-text: #f5f5f5;
*{
margin: 0;
padding: 0;
box-sizing: border-box;
body {
background-color: var(--background-color);
color: var(--text-color);
}
header {
background-color: var(--primary-color);
color: white;
padding: 1rem;
box-shadow: var(--shadow);
display: flex;
justify-content: space-between;
align-items: center;
.logo {
display: flex;
align-items: center;
gap: 10px;
font-size: 1.5rem;
font-weight: bold;
.logo-icon {
font-size: 2rem;
nav ul {
display: flex;
list-style: none;
}
nav ul li {
margin-right: 1rem;
nav ul li a {
color: white;
text-decoration: none;
padding: 0.5rem;
nav ul li a:hover {
border-radius: 4px;
main {
max-width: 1200px;
padding: 0 1rem;
.dashboard {
display: grid;
gap: 1.5rem;
margin-bottom: 2rem;
.card {
background-color: white;
border-radius: 8px;
padding: 1.5rem;
box-shadow: var(--shadow);
.card:hover {
transform: translateY(-5px);
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
color: var(--primary-color);
.card-icon {
font-size: 1.8rem;
color: var(--accent-color);
}
.sensor-value {
font-size: 2.5rem;
font-weight: bold;
margin: 1rem 0;
text-align: center;
.sensor-unit {
font-size: 1rem;
color: #666;
margin-right: 5px;
.sensor-status {
display: flex;
justify-content: center;
align-items: center;
padding: 0.5rem;
border-radius: 4px;
font-weight: bold;
.status-optimal {
color: #2e7d32;
}
.status-warning {
color: #f57f17;
.status-alert {
color: #d32f2f;
.irrigation-zones {
background-color: white;
border-radius: 8px;
padding: 1.5rem;
box-shadow: var(--shadow);
margin-bottom: 2rem;
.zones-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
color: var(--primary-color);
}
.zone-list {
display: grid;
gap: 1rem;
.zone-item {
background-color: var(--background-color);
border-radius: 8px;
padding: 1rem;
display: flex;
flex-direction: column;
.zone-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
.zone-name {
font-weight: bold;
font-size: 1.1rem;
.zone-status {
display: inline-block;
width: 15px;
height: 15px;
border-radius: 50%;
.zone-active {
background-color: #4caf50;
.zone-inactive {
background-color: #9e9e9e;
.zone-controls {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 1rem;
.switch {
position: relative;
display: inline-block;
width: 60px;
height: 34px;
}
.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;
border-radius: 34px;
.slider:before {
position: absolute;
content: “”;
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
background-color: white;
transition: .4s;
border-radius: 50%;
input:checked + .slider {
background-color: var(--accent-color);
input:checked + .slider:before {
transform: translateX(26px);
.btn {
background-color: var(--primary-color);
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
.btn:hover {
background-color: #0a7a40;
}
.weather-forecast {
background-color: white;
border-radius: 8px;
padding: 1.5rem;
box-shadow: var(--shadow);
.forecast-header {
margin-bottom: 1.5rem;
color: var(--primary-color);
.forecast-days {
display: flex;
justify-content: space-between;
overflow-x: auto;
padding-bottom: 1rem;
.forecast-day {
display: flex;
flex-direction: column;
align-items: center;
min-width: 80px;
.day-name {
font-weight: bold;
margin-bottom: 0.5rem;
.weather-icon {
font-size: 2rem;
margin-bottom: 0.5rem;
color: var(--accent-color);
.temperature {
font-weight: bold;
.rain-chance {
font-size: 0.9rem;
color: #666;
.charts {
background-color: white;
border-radius: 8px;
padding: 1.5rem;
box-shadow: var(--shadow);
margin-bottom: 2rem;
}
.charts-header {
margin-bottom: 1.5rem;
color: var(--primary-color);
.chart-container {
height: 300px;
position: relative;
margin-bottom: 1rem;
/* * نظام التنبيهات/
.alerts {
background-color: white;
border-radius: 8px;
padding: 1.5rem;
box-shadow: var(--shadow);
margin-bottom: 2rem;
.alerts-header {
margin-bottom: 1.5rem;
color: var(--primary-color);
.alert-list {
display: flex;
flex-direction: column;
gap: 1rem;
.alert-item {
background-color: var(--background-color);
border-radius: 8px;
padding: 1rem;
display: flex;
justify-content: space-between;
align-items: center;
.alert-icon {
font-size: 1.5rem;
margin-left: 1rem;
.alert-critical {
color: #d32f2f;
.alert-warning {
color: #f57f17;
.alert-info {
color: #0288d1;
.alert-content {
flex-grow: 1;
.alert-title {
font-weight: bold;
margin-bottom: 0.5rem;
.alert-time {
font-size: 0.9rem;
color: #666;
.alert-action {
display: flex;
gap: 0.5rem;
.schedule-container {
background-color: white;
border-radius: 8px;
padding: 1.5rem;
box-shadow: var(--shadow);
margin-bottom: 2rem;
display: none;
.schedule-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
color: var(--primary-color);
.schedule-form {
display: grid;
gap: 1rem;
.form-group {
margin-bottom: 1rem;
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: bold;
}
width: 100%;
padding: 0.5rem;
border-radius: 4px;
.form-actions {
grid-column: 1 / -1;
display: flex;
justify-content: flex-end;
gap: 1rem;
margin-top: 1rem;
.btn-secondary {
background-color: #757575;
.btn-secondary:hover {
background-color: #616161;
.smart-control {
background-color: white;
border-radius: 8px;
padding: 1.5rem;
box-shadow: var(--shadow);
margin-bottom: 2rem;
.smart-control-header {
margin-bottom: 1.5rem;
color: var(--primary-color);
.smart-modes {
display: flex;
flex-wrap: wrap;
gap: 1rem;
margin-bottom: 1rem;
.smart-mode {
flex: 1;
min-width: 150px;
background-color: var(--background-color);
border-radius: 8px;
padding: 1rem;
text-align: center;
cursor: pointer;
transition: all 0.3s ease;
.smart-mode:hover {
transform: translateY(-5px);
.smart-mode-icon {
font-size: 2rem;
margin-bottom: 0.5rem;
color: var(--accent-color);
.smart-mode-title {
font-weight: bold;
margin-bottom: 0.5rem;
.smart-mode-desc {
font-size: 0.9rem;
color: #666;
.smart-mode.active {
}
/* * نظام إعداد التقارير/
.reports {
background-color: white;
border-radius: 8px;
padding: 1.5rem;
box-shadow: var(--shadow);
margin-bottom: 2rem;
.reports-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
color: var(--primary-color);
.report-options {
display: flex;
gap: 1rem;
margin-bottom: 1rem;
flex-wrap: wrap;
.report-option {
border-radius: 4px;
cursor: pointer;
.report-option.active {
background-color: var(--primary-color);
color: white;
footer {
background-color: var(--primary-color);
color: white;
text-align: center;
padding: 1rem;
margin-top: 2rem;
/* * اللوحة الجانبية/
.sidebar {
position: fixed;
top: 0;
width: 300px;
height: 100%;
background-color: white;
z-index: 1000;
padding: 1rem;
overflow-y: auto;
.sidebar.active {
right: 0;
.sidebar-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
padding-bottom: 1rem;
.close-sidebar {
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
.profile-info {
display: flex;
align-items: center;
margin-bottom: 2rem;
.profile-avatar {
width: 60px;
height: 60px;
border-radius: 50%;
background-color: var(--primary-color);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1.5rem;
margin-left: 1rem;
.profile-name {
font-weight: bold;
.profile-role {
color: #666;
font-size: 0.9rem;
}
.sidebar-menu {
list-style: none;
.sidebar-menu li {
margin-bottom: 0.5rem;
.sidebar-menu a {
display: block;
padding: 0.75rem;
color: var(--text-color);
text-decoration: none;
border-radius: 4px;
.sidebar-menu a:hover {
background-color: var(--background-color);
.menu-icon {
margin-left: 0.5rem;
.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: none;
z-index: 999;
.user-actions {
margin-top: auto;
padding-top: 1rem;
.mobile-menu-btn {
display: none;
background: none;
border: none;
color: white;
font-size: 1.5rem;
cursor: pointer;
.dashboard, .zone-list {
grid-template-columns: 1fr;
}
.forecast-days {
padding-bottom: 1rem;
.forecast-day {
min-width: 60px;
nav ul {
display: none;
.mobile-menu-btn {
display: block;
</style>
</head>
<body>
<div class=”sidebar-header”>
<h3><اإلعدادات/h3>
<div class=”profile-info”>
<div class=”profile-avatar”>👤</div>
<div>
</div>
</div>
<ul class=”sidebar-menu”>
</ul>
<div class=”user-actions”>
</div>
</div>
<header>
<div class=”logo”>
<span class=”logo-icon”>💧</span>
</div>
<nav>
<ul>
<li><a href=”#”><المناطق/a></li>
<li><a href=”#”><التقارير/a></li>
<li><a href=”#”><اإلعدادات/a></li>
</ul>
</nav>
</header>
<main>
<section class=”dashboard”>
<div class=”card”>
<div class=”card-header”>
<h3><رطوبة التربة/h3>
<span class=”card-icon”>💧</span>
</div>
</div>
<div class=”card”>
<div class=”card-header”>
<h3><درجة الحرارة/h3>
<span class=”card-icon”></span>
;
</div>
</div>
<div class=”card”>
<div class=”card-header”>
<h3><استهالك المياه/h3>
<span class=”card-icon”>📊</span>