5185 lines
93 KiB
CSS
5185 lines
93 KiB
CSS
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
|
|
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
|
|
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');
|
|
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');
|
|
|
|
/* ============================================
|
|
CSS VARIABLES FOR LIGHT/DARK MODE
|
|
============================================ */
|
|
|
|
/* Light Mode (Default) */
|
|
body.light-mode {
|
|
--bg-primary: #f3f4f6;
|
|
--bg-secondary: #ffffff;
|
|
--bg-card: #ffffff;
|
|
--bg-sidebar: linear-gradient(180deg, #10b981 0%, #059669 100%);
|
|
--bg-header: #ffffff;
|
|
--bg-hover: #f9fafb;
|
|
--bg-active: #e5e7eb;
|
|
|
|
--text-primary: #1f2937;
|
|
--text-secondary: #6b7280;
|
|
--text-tertiary: #9ca3af;
|
|
--text-inverse: #ffffff;
|
|
|
|
--border-color: #e5e7eb;
|
|
--border-light: #f3f4f6;
|
|
|
|
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
|
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
|
|
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
|
|
|
|
--accent-primary: #10b981;
|
|
--accent-secondary: #059669;
|
|
--accent-light: #34d399;
|
|
--accent-lighter: #6ee7b7;
|
|
}
|
|
|
|
/* Dark Mode */
|
|
body.dark-mode {
|
|
--bg-primary: #0f172a;
|
|
--bg-secondary: #1e293b;
|
|
--bg-card: #1e293b;
|
|
--bg-sidebar: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
|
|
--bg-header: #1e293b;
|
|
--bg-hover: #334155;
|
|
--bg-active: #475569;
|
|
|
|
--text-primary: #f1f5f9;
|
|
--text-secondary: #cbd5e1;
|
|
--text-tertiary: #94a3b8;
|
|
--text-inverse: #ffffff;
|
|
|
|
--border-color: #334155;
|
|
--border-light: #1e293b;
|
|
|
|
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
|
|
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
|
|
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
|
|
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
|
|
|
|
--accent-primary: #10b981;
|
|
--accent-secondary: #059669;
|
|
--accent-light: #34d399;
|
|
--accent-lighter: #6ee7b7;
|
|
}
|
|
|
|
/* Smooth transition for theme changes */
|
|
body {
|
|
transition: background-color 0.3s ease, color 0.3s ease;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
overflow-x: hidden;
|
|
width: 100%;
|
|
-webkit-text-size-adjust: 100%;
|
|
-ms-text-size-adjust: 100%;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
overflow-x: hidden;
|
|
width: 100%;
|
|
min-height: 100vh;
|
|
position: relative;
|
|
background-color: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
/* Allow scrolling on all pages for responsiveness */
|
|
body {
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* Remove tap highlight on mobile */
|
|
* {
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
/* Improve touch scrolling */
|
|
.sidebar-menu,
|
|
.main-content {
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
/* ===== ANIMATED GRADIENT BACKGROUND ===== */
|
|
.animated-bg-gradient {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(-45deg, #10b981, #059669, #34d399, #6ee7b7, #10b981);
|
|
background-size: 400% 400%;
|
|
animation: gradientShift 15s ease infinite;
|
|
z-index: -2;
|
|
}
|
|
|
|
@keyframes gradientShift {
|
|
0% {
|
|
background-position: 0% 50%;
|
|
}
|
|
50% {
|
|
background-position: 100% 50%;
|
|
}
|
|
100% {
|
|
background-position: 0% 50%;
|
|
}
|
|
}
|
|
|
|
/* ===== FALLING LEAVES ANIMATION ===== */
|
|
.leaves-animation {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
overflow: hidden;
|
|
z-index: -1;
|
|
}
|
|
|
|
.leaf {
|
|
position: absolute;
|
|
top: -60px;
|
|
font-size: 32px;
|
|
opacity: 0.4;
|
|
animation: leafFall linear forwards;
|
|
filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.4));
|
|
}
|
|
|
|
@keyframes leafFall {
|
|
0% {
|
|
top: -60px;
|
|
transform: translateX(0) rotate(0deg);
|
|
opacity: 0.4;
|
|
}
|
|
25% {
|
|
transform: translateX(60px) rotate(90deg);
|
|
}
|
|
50% {
|
|
transform: translateX(0) rotate(180deg);
|
|
opacity: 0.5;
|
|
}
|
|
75% {
|
|
transform: translateX(-60px) rotate(270deg);
|
|
}
|
|
100% {
|
|
top: 110vh;
|
|
transform: translateX(0) rotate(360deg);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
/* ===== LOGIN PAGE ===== */
|
|
.login-page {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: 100vh;
|
|
padding: 20px;
|
|
position: relative;
|
|
}
|
|
|
|
/* ===== GLASSMORPHISM LOGIN CARD ===== */
|
|
.glassmorphism-card {
|
|
background: rgba(255, 255, 255, 0.15);
|
|
backdrop-filter: blur(20px);
|
|
-webkit-backdrop-filter: blur(20px);
|
|
border-radius: 30px;
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
box-shadow:
|
|
0 8px 32px rgba(0, 0, 0, 0.15),
|
|
0 0 80px rgba(16, 185, 129, 0.25);
|
|
}
|
|
|
|
.login-container {
|
|
width: 100%;
|
|
max-width: 460px;
|
|
padding: 50px 45px;
|
|
animation: fadeInUp 0.8s ease;
|
|
}
|
|
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(40px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.login-header {
|
|
text-align: center;
|
|
margin-bottom: 35px;
|
|
}
|
|
|
|
.login-logo {
|
|
width: 130px;
|
|
height: 130px;
|
|
margin-bottom: 25px;
|
|
object-fit: contain;
|
|
filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
|
|
animation: logoFloat 3s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes logoFloat {
|
|
0%, 100% {
|
|
transform: translateY(0px);
|
|
}
|
|
50% {
|
|
transform: translateY(-10px);
|
|
}
|
|
}
|
|
|
|
.login-header i {
|
|
font-size: 80px;
|
|
color: #04ff00;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.login-header h1 {
|
|
color: #ffffff;
|
|
font-family: 'Poppins', sans-serif;
|
|
font-size: 40px;
|
|
margin-bottom: 12px;
|
|
font-weight: 800;
|
|
letter-spacing: 3px;
|
|
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.login-header p {
|
|
color: rgba(255, 255, 255, 0.95);
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.login-header p i {
|
|
color: #ffffff;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.login-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.input-group {
|
|
position: relative;
|
|
}
|
|
|
|
.input-wrapper {
|
|
position: relative;
|
|
display: block;
|
|
}
|
|
|
|
.input-group i {
|
|
position: absolute;
|
|
left: 16px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: rgba(255, 255, 255, 0.85);
|
|
font-size: 17px;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* Icon inside input field - centered vertically */
|
|
.input-icon {
|
|
position: absolute;
|
|
left: 15px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: rgba(255, 255, 255, 0.85);
|
|
font-size: 16px;
|
|
pointer-events: none;
|
|
z-index: 1;
|
|
}
|
|
|
|
.input-group label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
color: rgba(255, 255, 255, 0.95);
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.input-field {
|
|
width: 100%;
|
|
padding: 16px 50px;
|
|
border: 2px solid rgba(255, 255, 255, 0.3);
|
|
border-radius: 14px;
|
|
font-size: 15px;
|
|
transition: all 0.3s ease;
|
|
background: rgba(255, 255, 255, 0.25);
|
|
backdrop-filter: blur(10px);
|
|
-webkit-backdrop-filter: blur(10px);
|
|
color: #ffffff;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.input-field::placeholder {
|
|
color: rgba(255, 255, 255, 0.65);
|
|
}
|
|
|
|
.input-field:focus {
|
|
outline: none;
|
|
border-color: rgba(255, 255, 255, 0.6);
|
|
background: rgba(255, 255, 255, 0.3);
|
|
box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
|
|
}
|
|
|
|
/* Dashboard Page Input Field Override (Non-transparent for forms) */
|
|
.dashboard-page .input-field {
|
|
background: var(--bg-card);
|
|
color: var(--text-primary);
|
|
border: 2px solid var(--border-color);
|
|
backdrop-filter: none;
|
|
-webkit-backdrop-filter: none;
|
|
}
|
|
|
|
.dashboard-page .input-field::placeholder {
|
|
color: var(--text-tertiary);
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.dashboard-page .input-field:focus {
|
|
border-color: var(--accent-primary);
|
|
background: var(--bg-card);
|
|
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
|
|
}
|
|
|
|
.dashboard-page .input-group i,
|
|
.dashboard-page .input-icon {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.dashboard-page .input-group label {
|
|
color: var(--text-primary);
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
margin-bottom: 8px;
|
|
display: block;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
|
|
color: white;
|
|
padding: 17px;
|
|
border: none;
|
|
border-radius: 14px;
|
|
font-size: 17px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
margin-top: 10px;
|
|
box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 12px 35px rgba(16, 185, 129, 0.5);
|
|
}
|
|
|
|
.btn-primary:active {
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
/* ===== RESPONSIVE LOGIN PAGE ===== */
|
|
@media (max-width: 768px) {
|
|
.login-container {
|
|
padding: 40px 30px;
|
|
max-width: 90%;
|
|
}
|
|
|
|
.login-logo {
|
|
width: 110px;
|
|
height: 110px;
|
|
}
|
|
|
|
.login-header h1 {
|
|
font-size: 34px;
|
|
letter-spacing: 2px;
|
|
}
|
|
|
|
.login-header p {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.leaf {
|
|
font-size: 26px;
|
|
}
|
|
|
|
.animated-bg-gradient {
|
|
animation-duration: 12s;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.login-container {
|
|
padding: 35px 25px;
|
|
max-width: 95%;
|
|
border-radius: 25px;
|
|
}
|
|
|
|
.login-logo {
|
|
width: 90px;
|
|
height: 90px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.login-header h1 {
|
|
font-size: 28px;
|
|
letter-spacing: 1.5px;
|
|
}
|
|
|
|
.login-header p {
|
|
font-size: 13px;
|
|
}
|
|
|
|
.input-field {
|
|
padding: 14px 45px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.btn-primary {
|
|
padding: 15px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.leaf {
|
|
font-size: 22px;
|
|
}
|
|
}
|
|
|
|
/* ===== DASHBOARD PAGE WITH SIDEBAR ===== */
|
|
.dashboard-page {
|
|
background: var(--bg-primary);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
transition: all 0.3s ease;
|
|
overflow-x: hidden;
|
|
width: 100%;
|
|
}
|
|
|
|
/* ===== SIDEBAR ===== */
|
|
.sidebar {
|
|
width: 280px;
|
|
background: var(--bg-sidebar);
|
|
min-height: 100vh;
|
|
position: fixed;
|
|
left: 0;
|
|
top: 0;
|
|
box-shadow: var(--shadow-lg);
|
|
display: flex;
|
|
flex-direction: column;
|
|
z-index: 1000;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
will-change: transform;
|
|
}
|
|
|
|
.sidebar.collapsed {
|
|
width: 80px;
|
|
}
|
|
|
|
/* Sidebar Brand */
|
|
.sidebar-brand {
|
|
padding: 20px 20px;
|
|
text-align: center;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
transition: all 0.3s ease;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.sidebar-brand-top {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.sidebar-logo {
|
|
width: 70px;
|
|
height: 70px;
|
|
border-radius: 50%;
|
|
background-color: white;
|
|
padding: 12px;
|
|
object-fit: contain;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
|
|
margin-bottom: 0;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sidebar.collapsed .sidebar-logo {
|
|
width: 45px;
|
|
height: 45px;
|
|
padding: 8px;
|
|
}
|
|
|
|
.sidebar.collapsed .sidebar-brand-top {
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.sidebar-title {
|
|
font-family: 'Montserrat', 'Poppins', sans-serif;
|
|
font-size: 20px;
|
|
font-weight: 900;
|
|
color: #ffffff;
|
|
letter-spacing: 1.5px;
|
|
margin-bottom: 0;
|
|
text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(255, 255, 255, 0.2);
|
|
filter: none;
|
|
line-height: 1;
|
|
}
|
|
|
|
.sidebar.collapsed .sidebar-title,
|
|
.sidebar.collapsed .sidebar-subtitle {
|
|
display: none;
|
|
}
|
|
|
|
.sidebar-subtitle {
|
|
font-size: 9px;
|
|
color: rgba(255, 255, 255, 0.85);
|
|
text-transform: uppercase;
|
|
letter-spacing: 1.8px;
|
|
text-align: center;
|
|
width: 100%;
|
|
padding-left: 0;
|
|
margin-left: 0;
|
|
font-family: 'Montserrat', 'Inter', sans-serif;
|
|
font-weight: 500;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
/* Sidebar Menu */
|
|
.sidebar-menu {
|
|
flex: 1;
|
|
padding: 20px 0;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.sidebar-menu::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
.sidebar-menu::-webkit-scrollbar-track {
|
|
background: rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.sidebar-menu::-webkit-scrollbar-thumb {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.menu-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 16px 25px;
|
|
color: rgba(255, 255, 255, 0.8);
|
|
text-decoration: none;
|
|
transition: all 0.3s ease;
|
|
gap: 15px;
|
|
position: relative;
|
|
margin: 4px 12px;
|
|
border-radius: 10px;
|
|
min-height: 48px;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.menu-item i {
|
|
font-size: 20px;
|
|
min-width: 24px;
|
|
text-align: center;
|
|
}
|
|
|
|
.menu-item span {
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.sidebar.collapsed .menu-item span {
|
|
display: none;
|
|
}
|
|
|
|
.menu-item:hover {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
color: white;
|
|
transform: translateX(5px);
|
|
}
|
|
|
|
.menu-item:active {
|
|
background: rgba(255, 255, 255, 0.15);
|
|
transform: translateX(3px);
|
|
}
|
|
|
|
.menu-item.active {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
color: white;
|
|
font-weight: 600;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.menu-item.active::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 4px;
|
|
height: 40px;
|
|
background: white;
|
|
border-radius: 0 4px 4px 0;
|
|
}
|
|
|
|
/* Sidebar Footer */
|
|
.sidebar-footer {
|
|
padding: 20px;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.sidebar-user {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px;
|
|
background: rgba(0, 0, 0, 0.1);
|
|
border-radius: 10px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.sidebar.collapsed .sidebar-user {
|
|
justify-content: center;
|
|
}
|
|
|
|
.user-avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
font-weight: bold;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.user-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.sidebar.collapsed .user-info {
|
|
display: none;
|
|
}
|
|
|
|
.user-name {
|
|
color: white;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.user-email {
|
|
color: rgba(255, 255, 255, 0.6);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.btn-logout {
|
|
width: 100%;
|
|
background: rgba(220, 38, 38, 0.9);
|
|
color: white;
|
|
padding: 12px 16px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
min-height: 44px;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.sidebar.collapsed .btn-logout span {
|
|
display: none;
|
|
}
|
|
|
|
.btn-logout:hover {
|
|
background: #dc2626;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
|
|
}
|
|
|
|
.btn-logout:active {
|
|
transform: translateY(0);
|
|
box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
|
|
}
|
|
|
|
/* Sidebar Toggle Button */
|
|
.sidebar-toggle {
|
|
position: absolute;
|
|
right: -15px;
|
|
top: 30px;
|
|
width: 30px;
|
|
height: 30px;
|
|
background: white;
|
|
border: none;
|
|
border-radius: 50%;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #059669;
|
|
font-size: 14px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.sidebar-toggle:hover {
|
|
transform: scale(1.1);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
/* Main Content Area */
|
|
.main-wrapper {
|
|
flex: 0 0 auto;
|
|
margin-left: 280px;
|
|
transition: all 0.3s ease;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: calc(100% - 280px);
|
|
max-width: calc(100% - 280px);
|
|
overflow-x: hidden;
|
|
min-width: 0;
|
|
}
|
|
|
|
.sidebar.collapsed + .main-wrapper {
|
|
margin-left: 80px;
|
|
width: calc(100% - 80px);
|
|
max-width: calc(100% - 80px);
|
|
}
|
|
|
|
/* Top Header */
|
|
.top-header {
|
|
background: var(--bg-header);
|
|
padding: 20px 40px;
|
|
box-shadow: var(--shadow-md);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.header-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
}
|
|
|
|
.mobile-menu-btn {
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 42px;
|
|
height: 42px;
|
|
background: var(--bg-secondary);
|
|
color: var(--text-primary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 10px;
|
|
cursor: pointer;
|
|
font-size: 20px;
|
|
flex-shrink: 0;
|
|
transition: all 0.25s ease;
|
|
}
|
|
|
|
.mobile-menu-btn:hover {
|
|
background: var(--accent-primary);
|
|
border-color: var(--accent-primary);
|
|
color: #ffffff;
|
|
}
|
|
|
|
.mobile-menu-btn.is-open {
|
|
background: var(--accent-primary);
|
|
border-color: var(--accent-primary);
|
|
color: #ffffff;
|
|
}
|
|
|
|
.header-title h1 {
|
|
color: var(--text-primary);
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
margin: 0;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.header-title i {
|
|
color: var(--accent-primary);
|
|
font-size: 32px;
|
|
}
|
|
|
|
.header-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20px;
|
|
}
|
|
|
|
/* Theme Toggle Button */
|
|
.theme-toggle-btn {
|
|
width: 50px;
|
|
height: 50px;
|
|
border-radius: 50%;
|
|
border: 2px solid var(--border-color);
|
|
background: var(--bg-secondary);
|
|
color: var(--accent-primary);
|
|
font-size: 22px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.3s ease;
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.theme-toggle-btn:hover {
|
|
transform: scale(1.1);
|
|
box-shadow: var(--shadow-lg);
|
|
background: var(--accent-primary);
|
|
color: white;
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
.theme-toggle-btn:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
/* Theme toggle animation */
|
|
.theme-toggle-animate {
|
|
animation: rotateIcon 0.6s ease-in-out;
|
|
}
|
|
|
|
@keyframes rotateIcon {
|
|
0% {
|
|
transform: rotate(0deg) scale(1);
|
|
}
|
|
50% {
|
|
transform: rotate(180deg) scale(1.2);
|
|
}
|
|
100% {
|
|
transform: rotate(360deg) scale(1);
|
|
}
|
|
}
|
|
|
|
.header-time {
|
|
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
|
|
color: white;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
padding: 12px 20px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
transition: all 0.3s ease;
|
|
cursor: pointer;
|
|
letter-spacing: 0.3px;
|
|
animation: pulseSoft 3s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes pulseSoft {
|
|
0%, 100% {
|
|
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
|
|
}
|
|
50% {
|
|
box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5);
|
|
}
|
|
}
|
|
|
|
.header-time:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
|
|
animation: none;
|
|
}
|
|
|
|
.header-time::before {
|
|
content: "\f073";
|
|
font-family: "Font Awesome 6 Free";
|
|
font-weight: 900;
|
|
font-size: 16px;
|
|
color: white;
|
|
}
|
|
|
|
/* Main Content */
|
|
.main-content {
|
|
padding: 40px;
|
|
flex: 1;
|
|
background: var(--bg-primary);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.waterflow-row {
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
margin: 6px 0 10px;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.waterflow-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 18px;
|
|
border-radius: 999px;
|
|
background: #ef4444;
|
|
color: #ffffff;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.5px;
|
|
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
|
|
min-width: 0;
|
|
position: relative;
|
|
top: -4px;
|
|
}
|
|
|
|
.waterflow-badge.has-water {
|
|
background: #10b981;
|
|
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
|
|
}
|
|
|
|
.waterflow-badge.no-water {
|
|
background: #ef4444;
|
|
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
|
|
}
|
|
|
|
.waterflow-dot {
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 50%;
|
|
background: #ffffff;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.waterflow-text {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.waterflow-dot.inactive {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.waterflow-dot.active {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* ===== DASHBOARD SENSOR CARDS ===== */
|
|
.sensor-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
gap: 24px;
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.sensor-card {
|
|
position: relative;
|
|
padding: 32px;
|
|
border-radius: 16px;
|
|
min-height: 140px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
box-shadow: var(--shadow-md);
|
|
overflow: hidden;
|
|
transition: all 0.3s ease;
|
|
cursor: default;
|
|
}
|
|
|
|
.sensor-temp {
|
|
background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
|
|
color: white;
|
|
}
|
|
|
|
.sensor-light {
|
|
background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
|
|
color: white;
|
|
}
|
|
|
|
.sensor-humidity {
|
|
background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
|
|
color: white;
|
|
}
|
|
|
|
.sensor-value {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.sensor-value .value {
|
|
font-size: 56px;
|
|
font-weight: bold;
|
|
line-height: 1;
|
|
}
|
|
|
|
.sensor-value .unit {
|
|
font-size: 32px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.sensor-value .status {
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
margin-left: 8px;
|
|
}
|
|
|
|
.sensor-label {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
letter-spacing: 1px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.sensor-icon {
|
|
position: absolute;
|
|
right: 24px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
font-size: 72px;
|
|
opacity: 0.3;
|
|
}
|
|
|
|
/* ===== SMART POTS ===== */
|
|
.pots-container {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.pot {
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow-md);
|
|
transition: all 0.3s ease;
|
|
cursor: pointer;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.pot:hover {
|
|
transform: translateY(-4px);
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.pot:active {
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.pot-header {
|
|
padding: 10px;
|
|
text-align: center;
|
|
font-weight: bold;
|
|
font-size: 14px;
|
|
color: white;
|
|
letter-spacing: 1px;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.pot-content {
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
/* Soil Moisture Label - Simple Text */
|
|
.pot-moisture-label {
|
|
font-family: 'Montserrat', sans-serif;
|
|
font-size: 13px;
|
|
font-weight: 900;
|
|
text-transform: uppercase;
|
|
letter-spacing: 2px;
|
|
color: var(--text-primary);
|
|
text-align: center;
|
|
opacity: 1;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.pot-label {
|
|
color: white;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
text-align: center;
|
|
}
|
|
|
|
.pot-value {
|
|
font-size: 56px;
|
|
font-weight: bold;
|
|
color: rgba(0, 0, 0, 0.7);
|
|
line-height: 1;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.pot-toggle {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
background: rgba(255, 255, 255, 0.3);
|
|
padding: 6px 16px;
|
|
border-radius: 20px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
user-select: none;
|
|
}
|
|
|
|
.pot-toggle:hover {
|
|
background: rgba(255, 255, 255, 0.4);
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.pot-toggle:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.toggle-status {
|
|
color: white;
|
|
font-weight: bold;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.toggle-indicator {
|
|
width: 16px;
|
|
height: 16px;
|
|
background: #22c55e;
|
|
border-radius: 50%;
|
|
box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.toggle-indicator.active {
|
|
background: #22c55e;
|
|
box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
|
|
}
|
|
|
|
.toggle-indicator.inactive {
|
|
background: #ef4444;
|
|
box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
|
|
}
|
|
|
|
.pot-body {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
padding: 60px 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 200px;
|
|
}
|
|
|
|
.pot-body i {
|
|
font-size: 48px;
|
|
color: rgba(255, 255, 255, 0.8);
|
|
}
|
|
|
|
/* Pot Colors */
|
|
.pot-1 {
|
|
background: linear-gradient(135deg, #a3e635 0%, #84cc16 100%);
|
|
}
|
|
|
|
.pot-2 {
|
|
background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
|
|
}
|
|
|
|
.pot-3 {
|
|
background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 100%);
|
|
}
|
|
|
|
.pot-4 {
|
|
background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
|
|
}
|
|
|
|
.pot-5 {
|
|
background: linear-gradient(135deg, #c4a1a1 0%, #a78a8a 100%);
|
|
}
|
|
|
|
/* ===== ACTUATOR CONTROLS ===== */
|
|
.actuator-controls {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 20px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.actuator-card {
|
|
background: white;
|
|
border-radius: 16px;
|
|
padding: 24px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.actuator-card:hover {
|
|
transform: translateY(-4px);
|
|
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.actuator-header {
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
margin-bottom: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.actuator-water .actuator-header {
|
|
color: #3b82f6;
|
|
}
|
|
|
|
.actuator-water .actuator-header i {
|
|
color: #3b82f6;
|
|
font-size: 24px;
|
|
}
|
|
|
|
.actuator-fertilizer .actuator-header {
|
|
color: #22c55e;
|
|
}
|
|
|
|
.actuator-fertilizer .actuator-header i {
|
|
color: #22c55e;
|
|
font-size: 24px;
|
|
}
|
|
|
|
.actuator-mixer .actuator-header {
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
.actuator-mixer .actuator-header i {
|
|
color: var(--accent-primary);
|
|
font-size: 24px;
|
|
}
|
|
|
|
.actuator-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.actuator-toggle {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
|
|
padding: 12px 24px;
|
|
border-radius: 30px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
user-select: none;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.actuator-toggle:hover {
|
|
background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
|
|
transform: scale(1.05);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.actuator-toggle:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.actuator-toggle .toggle-status {
|
|
color: #1f2937;
|
|
font-weight: bold;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.actuator-toggle .toggle-indicator {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.actuator-label {
|
|
color: #6b7280;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.welcome-section {
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.welcome-section h1 {
|
|
color: #1f2937;
|
|
font-size: 32px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.welcome-section p {
|
|
color: #6b7280;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.page-header {
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.page-header h1 {
|
|
color: var(--text-primary);
|
|
font-size: 32px;
|
|
margin-bottom: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.page-header p {
|
|
color: var(--text-secondary);
|
|
font-size: 16px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
/* Stats Cards */
|
|
.stats-container {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 20px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.stat-card {
|
|
background: var(--bg-card);
|
|
padding: 25px;
|
|
border-radius: 15px;
|
|
box-shadow: var(--shadow-md);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.stat-card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.stat-card i {
|
|
font-size: 48px;
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
.stat-info h3 {
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
margin-bottom: 8px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.stat-number {
|
|
color: var(--text-primary);
|
|
font-size: 28px;
|
|
font-weight: bold;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
/* Card */
|
|
.card {
|
|
background: var(--bg-card);
|
|
border-radius: 15px;
|
|
box-shadow: var(--shadow-md);
|
|
margin-bottom: 25px;
|
|
overflow: hidden;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.card-header {
|
|
background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
|
|
color: white;
|
|
padding: 20px 25px;
|
|
}
|
|
|
|
.card-header h2 {
|
|
font-size: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.card-body {
|
|
padding: 25px;
|
|
}
|
|
|
|
.form-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
/* Table */
|
|
.table-container {
|
|
overflow-x: auto;
|
|
max-width: 100%;
|
|
-webkit-overflow-scrolling: touch;
|
|
position: relative;
|
|
}
|
|
|
|
/* Scrollbar styling untuk table container */
|
|
.table-container::-webkit-scrollbar {
|
|
height: 8px;
|
|
}
|
|
|
|
.table-container::-webkit-scrollbar-track {
|
|
background: #f1f1f1;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.table-container::-webkit-scrollbar-thumb {
|
|
background: #10b981;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.table-container::-webkit-scrollbar-thumb:hover {
|
|
background: #059669;
|
|
}
|
|
|
|
.user-table {
|
|
width: 100%;
|
|
min-width: 600px;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.user-table thead {
|
|
background: var(--bg-hover);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.user-table th {
|
|
padding: 15px;
|
|
text-align: left;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
border-bottom: 2px solid var(--border-color);
|
|
transition: all 0.3s ease;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.user-table td {
|
|
padding: 15px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
color: var(--text-primary);
|
|
transition: all 0.3s ease;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.user-table tbody tr:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.text-center {
|
|
text-align: center;
|
|
}
|
|
|
|
.btn-delete {
|
|
background: #ef4444;
|
|
color: white;
|
|
padding: 8px 16px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.btn-delete:hover {
|
|
background: #dc2626;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
/* ===== MODE KONTROL ===== */
|
|
.mode-kontrol-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: 60vh;
|
|
padding: 40px 20px;
|
|
}
|
|
|
|
.mode-kontrol-box {
|
|
background: var(--bg-card);
|
|
padding: 60px 80px;
|
|
border-radius: 24px;
|
|
box-shadow: var(--shadow-xl);
|
|
max-width: 700px;
|
|
width: 100%;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.mode-title {
|
|
background: var(--accent-primary);
|
|
color: white;
|
|
font-size: 36px;
|
|
font-weight: 900;
|
|
text-align: center;
|
|
padding: 20px 40px;
|
|
border-radius: 12px;
|
|
margin-bottom: 50px;
|
|
letter-spacing: 2px;
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.mode-buttons {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 24px;
|
|
}
|
|
|
|
.mode-btn {
|
|
padding: 20px 50px;
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
border: none;
|
|
border-radius: 12px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
color: white;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
|
|
min-width: 180px;
|
|
}
|
|
|
|
.mode-btn:hover {
|
|
transform: translateY(-4px);
|
|
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.mode-btn:active {
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.mode-btn.active {
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.mode-waktu {
|
|
background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
|
|
}
|
|
|
|
.mode-otomatis {
|
|
background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
|
|
}
|
|
|
|
.mode-waktu:hover {
|
|
background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
|
|
}
|
|
|
|
.mode-otomatis:hover {
|
|
background: linear-gradient(135deg, #65a30d 0%, #4d7c0f 100%);
|
|
}
|
|
|
|
/* ===== CONTROLLER PAGE ===== */
|
|
.controller-container {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
gap: 24px;
|
|
margin-top: 24px;
|
|
}
|
|
|
|
.controller-card {
|
|
background: white;
|
|
padding: 24px;
|
|
border-radius: 16px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.controller-card:hover {
|
|
transform: translateY(-4px);
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.controller-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.controller-header i {
|
|
font-size: 28px;
|
|
color: #10b981;
|
|
}
|
|
|
|
.controller-header h3 {
|
|
font-size: 18px;
|
|
color: #1f2937;
|
|
margin: 0;
|
|
}
|
|
|
|
.controller-value {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.value-number {
|
|
font-size: 48px;
|
|
font-weight: bold;
|
|
color: #10b981;
|
|
line-height: 1;
|
|
}
|
|
|
|
.value-unit {
|
|
font-size: 24px;
|
|
color: #6b7280;
|
|
}
|
|
|
|
.controller-status {
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.status-badge {
|
|
display: inline-block;
|
|
padding: 6px 16px;
|
|
border-radius: 20px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.status-success {
|
|
background: #d1fae5;
|
|
color: #065f46;
|
|
}
|
|
|
|
.status-warning {
|
|
background: #fed7aa;
|
|
color: #92400e;
|
|
}
|
|
|
|
.status-danger {
|
|
background: #fee2e2;
|
|
color: #991b1b;
|
|
}
|
|
|
|
.status-info {
|
|
background: #dbeafe;
|
|
color: #1e40af;
|
|
}
|
|
|
|
/* Toggle Switch */
|
|
.controller-toggle {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.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: 0.4s;
|
|
}
|
|
|
|
.slider:before {
|
|
position: absolute;
|
|
content: "";
|
|
height: 26px;
|
|
width: 26px;
|
|
left: 4px;
|
|
bottom: 4px;
|
|
background-color: white;
|
|
transition: 0.4s;
|
|
}
|
|
|
|
input:checked + .slider {
|
|
background-color: #10b981;
|
|
}
|
|
|
|
input:checked + .slider:before {
|
|
transform: translateX(26px);
|
|
}
|
|
|
|
.slider.round {
|
|
border-radius: 34px;
|
|
}
|
|
|
|
.slider.round:before {
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.toggle-label {
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
color: #1f2937;
|
|
}
|
|
|
|
/* Login Redirect */
|
|
.login-redirect {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: 100vh;
|
|
color: white;
|
|
text-align: center;
|
|
}
|
|
|
|
.login-redirect i {
|
|
font-size: 80px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.login-redirect h2 {
|
|
font-size: 32px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.login-redirect p {
|
|
font-size: 16px;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
/* Notification Toast */
|
|
.notification {
|
|
position: fixed;
|
|
top: 20px;
|
|
right: 20px;
|
|
background: var(--bg-card);
|
|
padding: 16px 24px;
|
|
border-radius: 12px;
|
|
box-shadow: var(--shadow-xl);
|
|
display: none;
|
|
align-items: center;
|
|
gap: 12px;
|
|
z-index: 9999;
|
|
min-width: 300px;
|
|
transition: all 0.3s ease;
|
|
opacity: 0;
|
|
transform: translateX(100px);
|
|
}
|
|
|
|
.notification.show {
|
|
display: flex;
|
|
animation: slideInRight 0.3s ease forwards;
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.notification.hidden {
|
|
display: none;
|
|
opacity: 0;
|
|
transform: translateX(100px);
|
|
}
|
|
|
|
.notification.success {
|
|
border-left: 4px solid var(--accent-primary);
|
|
}
|
|
|
|
.notification.error {
|
|
border-left: 4px solid #ef4444;
|
|
}
|
|
|
|
.notification.warning {
|
|
border-left: 4px solid #f59e0b;
|
|
}
|
|
|
|
.notification.info {
|
|
border-left: 4px solid #3b82f6;
|
|
}
|
|
|
|
.notification-icon {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.notification.success .notification-icon {
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
.notification.error .notification-icon {
|
|
color: #ef4444;
|
|
}
|
|
|
|
.notification.warning .notification-icon {
|
|
color: #f59e0b;
|
|
}
|
|
|
|
.notification.info .notification-icon {
|
|
color: #3b82f6;
|
|
}
|
|
|
|
.notification-message {
|
|
color: var(--text-primary);
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
@keyframes slideInRight {
|
|
from {
|
|
transform: translateX(400px);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: translateX(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 1024px) {
|
|
.main-content {
|
|
max-width: 100%;
|
|
padding: 30px 20px;
|
|
}
|
|
|
|
.otomatis-container {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.pots-container {
|
|
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
body.sidebar-open {
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Sidebar responsive */
|
|
.sidebar {
|
|
transform: translateX(-100%);
|
|
position: fixed;
|
|
z-index: 1001;
|
|
width: 280px;
|
|
}
|
|
|
|
.sidebar.mobile-open {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.sidebar.collapsed {
|
|
width: 280px;
|
|
}
|
|
|
|
.sidebar-toggle {
|
|
display: none !important;
|
|
}
|
|
|
|
.main-wrapper {
|
|
margin-left: 0 !important;
|
|
width: 100%;
|
|
}
|
|
|
|
.mobile-menu-btn {
|
|
display: flex !important;
|
|
width: 40px;
|
|
height: 40px;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.sidebar-overlay {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
z-index: 1000;
|
|
backdrop-filter: blur(2px);
|
|
}
|
|
|
|
.sidebar-overlay.active {
|
|
display: block;
|
|
}
|
|
|
|
.top-header {
|
|
padding: 12px 15px;
|
|
position: sticky;
|
|
top: 0;
|
|
background: var(--bg-header);
|
|
z-index: 100;
|
|
}
|
|
|
|
.header-title {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.header-title h1 {
|
|
font-size: 18px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.header-title i {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.header-actions {
|
|
gap: 10px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.theme-toggle-btn {
|
|
width: 40px;
|
|
height: 40px;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.header-time {
|
|
font-size: 11px;
|
|
padding: 8px 12px;
|
|
gap: 4px;
|
|
white-space: nowrap;
|
|
max-width: 52vw;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.header-time::before {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.main-content {
|
|
padding: 15px;
|
|
padding-bottom: 60px;
|
|
}
|
|
|
|
.navbar {
|
|
padding: 12px 20px;
|
|
}
|
|
|
|
.nav-brand {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.nav-logo {
|
|
width: 40px;
|
|
height: 40px;
|
|
}
|
|
|
|
.nav-menu {
|
|
display: none;
|
|
}
|
|
|
|
.nav-user {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.nav-user span {
|
|
display: none;
|
|
}
|
|
|
|
.btn-logout {
|
|
padding: 8px 16px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.sensor-cards {
|
|
grid-template-columns: 1fr;
|
|
gap: 15px;
|
|
}
|
|
|
|
.sensor-card {
|
|
padding: 24px 20px;
|
|
min-height: 120px;
|
|
}
|
|
|
|
.sensor-value .value {
|
|
font-size: 48px;
|
|
}
|
|
|
|
.sensor-value .unit {
|
|
font-size: 28px;
|
|
}
|
|
|
|
.sensor-icon {
|
|
font-size: 60px;
|
|
right: 20px;
|
|
opacity: 0.2;
|
|
}
|
|
|
|
.pots-container {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 12px;
|
|
}
|
|
|
|
.pot {
|
|
min-width: 0;
|
|
}
|
|
|
|
.pot-value {
|
|
font-size: 42px;
|
|
}
|
|
|
|
.pot-moisture-label {
|
|
font-size: 11px;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.stats-container {
|
|
grid-template-columns: 1fr;
|
|
gap: 15px;
|
|
}
|
|
|
|
.stat-card {
|
|
padding: 20px;
|
|
}
|
|
|
|
.form-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.notification {
|
|
right: 10px;
|
|
left: 10px;
|
|
min-width: auto;
|
|
top: 70px;
|
|
font-size: 14px;
|
|
padding: 12px 15px;
|
|
}
|
|
|
|
.page-header {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.page-header h1 {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.page-header p {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.actuator-controls {
|
|
grid-template-columns: 1fr;
|
|
gap: 15px;
|
|
}
|
|
|
|
.actuator-card {
|
|
padding: 20px;
|
|
}
|
|
|
|
.card-body {
|
|
padding: 20px;
|
|
}
|
|
|
|
.table-container {
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.user-table {
|
|
min-width: 500px;
|
|
}
|
|
|
|
.user-table th,
|
|
.user-table td {
|
|
padding: 10px 8px;
|
|
font-size: 13px;
|
|
}
|
|
}
|
|
|
|
/* Tablet and Large Phone optimization */
|
|
@media (max-width: 640px) and (min-width: 481px) {
|
|
.pots-container {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.sensor-cards {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.header-title h1 {
|
|
font-size: 20px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.navbar {
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.nav-brand {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.nav-logo {
|
|
width: 32px;
|
|
height: 32px;
|
|
}
|
|
|
|
.btn-logout {
|
|
padding: 6px 12px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.top-header {
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.header-title h1 {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.header-title i {
|
|
font-size: 18px;
|
|
display: none;
|
|
}
|
|
|
|
.mobile-menu-btn {
|
|
width: 36px;
|
|
height: 36px;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.theme-toggle-btn {
|
|
width: 36px;
|
|
height: 36px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.header-time {
|
|
display: none;
|
|
}
|
|
|
|
.header-time::before {
|
|
font-size: 11px;
|
|
}
|
|
|
|
.main-content {
|
|
padding: 12px;
|
|
padding-bottom: 50px;
|
|
}
|
|
|
|
.sensor-cards {
|
|
gap: 12px;
|
|
}
|
|
|
|
.sensor-card {
|
|
padding: 20px 16px;
|
|
min-height: 110px;
|
|
}
|
|
|
|
.sensor-value .value {
|
|
font-size: 40px;
|
|
}
|
|
|
|
.sensor-value .unit {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.sensor-value .status {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.sensor-label {
|
|
font-size: 13px;
|
|
}
|
|
|
|
.sensor-icon {
|
|
font-size: 50px;
|
|
right: 16px;
|
|
}
|
|
|
|
.pots-container {
|
|
grid-template-columns: 1fr;
|
|
gap: 12px;
|
|
}
|
|
|
|
.pot-content {
|
|
padding: 16px;
|
|
}
|
|
|
|
.pot-value {
|
|
font-size: 48px;
|
|
}
|
|
|
|
.pot-moisture-label {
|
|
font-size: 11px;
|
|
}
|
|
|
|
.pot-header {
|
|
padding: 8px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.page-header {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.page-header h1 {
|
|
font-size: 20px;
|
|
gap: 8px;
|
|
}
|
|
|
|
.page-header h1 i {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.page-header p {
|
|
font-size: 13px;
|
|
}
|
|
|
|
.actuator-controls {
|
|
gap: 12px;
|
|
}
|
|
|
|
.actuator-card {
|
|
padding: 16px;
|
|
}
|
|
|
|
.actuator-header {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.stat-card {
|
|
padding: 16px;
|
|
gap: 15px;
|
|
}
|
|
|
|
.stat-card i {
|
|
font-size: 36px;
|
|
}
|
|
|
|
.stat-number {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.card-header {
|
|
padding: 16px 20px;
|
|
}
|
|
|
|
.card-header h2 {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.card-body {
|
|
padding: 16px;
|
|
}
|
|
|
|
.sidebar {
|
|
width: 260px;
|
|
}
|
|
|
|
.sidebar.mobile-open {
|
|
width: 260px;
|
|
}
|
|
}
|
|
|
|
/* Mode Otomatis Page Styles */
|
|
.back-nav {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.back-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 20px;
|
|
background: var(--bg-card);
|
|
color: var(--accent-primary);
|
|
border-radius: 8px;
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
transition: all 0.3s ease;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.back-btn:hover {
|
|
background: var(--accent-primary);
|
|
color: white;
|
|
transform: translateX(-5px);
|
|
}
|
|
|
|
.page-header {
|
|
text-align: left;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.page-header h1 {
|
|
color: #065f46;
|
|
font-size: 32px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.page-header h1 i {
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.page-header p {
|
|
color: #666;
|
|
font-size: 16px;
|
|
margin-left: 0;
|
|
}
|
|
|
|
/* Mode Otomatis Header with Toggle */
|
|
.page-header-otomatis {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background: white;
|
|
padding: 15px 25px;
|
|
border-radius: 12px;
|
|
margin-bottom: 20px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
flex-wrap: wrap;
|
|
gap: 15px;
|
|
}
|
|
|
|
.header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.header-left i {
|
|
font-size: 24px;
|
|
color: #065f46;
|
|
}
|
|
|
|
.header-left h1 {
|
|
color: #065f46;
|
|
font-size: 24px;
|
|
margin: 0;
|
|
}
|
|
|
|
.main-toggle-container {
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.main-toggle-switch {
|
|
position: relative;
|
|
width: 60px;
|
|
height: 30px;
|
|
background: #cbd5e1;
|
|
border-radius: 15px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.main-toggle-switch.active {
|
|
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
|
|
}
|
|
|
|
.main-toggle-slider {
|
|
position: absolute;
|
|
top: 3px;
|
|
left: 3px;
|
|
width: 24px;
|
|
height: 24px;
|
|
background: white;
|
|
border-radius: 50%;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.main-toggle-switch.active .main-toggle-slider {
|
|
transform: translateX(30px);
|
|
}
|
|
|
|
/* Kelembaban Card */
|
|
.kelembaban-card {
|
|
background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
|
|
border-radius: 16px;
|
|
padding: 40px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
text-align: center;
|
|
max-width: 500px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.kelembaban-card h3 {
|
|
color: white;
|
|
font-size: 28px;
|
|
margin-bottom: 30px;
|
|
font-weight: 700;
|
|
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.kelembaban-input-group {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.kelembaban-input {
|
|
width: 120px;
|
|
padding: 15px 20px;
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
text-align: center;
|
|
border: 2px solid #e5e7eb;
|
|
border-radius: 12px;
|
|
background: white;
|
|
color: #1f2937;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.kelembaban-input:disabled {
|
|
background: #f3f4f6;
|
|
color: #9ca3af;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.kelembaban-input:not(:disabled) {
|
|
background: white;
|
|
border-color: #065f46;
|
|
}
|
|
|
|
.kelembaban-input:focus {
|
|
outline: none;
|
|
border-color: #065f46;
|
|
box-shadow: 0 0 0 4px rgba(6, 95, 70, 0.1);
|
|
}
|
|
|
|
.kelembaban-unit {
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
color: white;
|
|
}
|
|
|
|
.kelembaban-info {
|
|
color: white;
|
|
font-size: 14px;
|
|
margin: 0;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
/* Modern Kelembaban Settings Card */
|
|
.kelembaban-settings-card {
|
|
background: var(--bg-card);
|
|
border-radius: 16px;
|
|
padding: 25px;
|
|
box-shadow: var(--shadow-md);
|
|
max-width: 600px;
|
|
margin: 0 auto 30px;
|
|
display: flex;
|
|
gap: 20px;
|
|
justify-content: center;
|
|
align-items: flex-start;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.kelembaban-item {
|
|
flex: 1;
|
|
text-align: center;
|
|
background: var(--bg-secondary);
|
|
padding: 20px 15px;
|
|
border-radius: 12px;
|
|
box-shadow: var(--shadow-sm);
|
|
transition: all 0.3s ease;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.kelembaban-item:hover {
|
|
transform: translateY(-3px);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.kelembaban-label {
|
|
display: block;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--accent-primary);
|
|
margin-bottom: 15px;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.slider-value {
|
|
font-size: 32px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
margin-bottom: 15px;
|
|
text-align: center;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.kelembaban-slider-wrapper {
|
|
position: relative;
|
|
width: 100%;
|
|
padding: 0 10px;
|
|
}
|
|
|
|
.kelembaban-slider {
|
|
width: 100%;
|
|
height: 8px;
|
|
border-radius: 5px;
|
|
background: var(--border-color);
|
|
outline: none;
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.kelembaban-slider:disabled {
|
|
cursor: not-allowed;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.kelembaban-slider::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
|
|
cursor: pointer;
|
|
box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.kelembaban-slider::-webkit-slider-thumb:hover {
|
|
transform: scale(1.2);
|
|
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.6);
|
|
}
|
|
|
|
.kelembaban-slider::-moz-range-thumb {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
|
|
cursor: pointer;
|
|
border: none;
|
|
box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.kelembaban-slider::-moz-range-thumb:hover {
|
|
transform: scale(1.2);
|
|
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.6);
|
|
}
|
|
|
|
.kelembaban-slider::-webkit-slider-runnable-track {
|
|
width: 100%;
|
|
height: 8px;
|
|
border-radius: 5px;
|
|
background: linear-gradient(to right, #e2e8f0 0%, #cbd5e1 100%);
|
|
}
|
|
|
|
.kelembaban-slider::-moz-range-track {
|
|
width: 100%;
|
|
height: 8px;
|
|
border-radius: 5px;
|
|
background: linear-gradient(to right, #e2e8f0 0%, #cbd5e1 100%);
|
|
}
|
|
|
|
.kelembaban-slider:disabled::-webkit-slider-thumb {
|
|
background: #94a3b8;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.kelembaban-slider:disabled::-moz-range-thumb {
|
|
background: #94a3b8;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.kelembaban-input-wrapper {
|
|
position: relative;
|
|
}
|
|
|
|
.kelembaban-input-modern {
|
|
width: 100px;
|
|
padding: 12px 20px;
|
|
font-size: 32px;
|
|
font-weight: 700;
|
|
text-align: center;
|
|
border: 3px solid #e0e7ff;
|
|
border-radius: 12px;
|
|
background: #f8fafc;
|
|
color: #1e293b;
|
|
transition: all 0.3s ease;
|
|
appearance: auto;
|
|
}
|
|
|
|
.kelembaban-input-modern:disabled {
|
|
background: #f1f5f9;
|
|
color: #94a3b8;
|
|
cursor: not-allowed;
|
|
border-color: #e2e8f0;
|
|
}
|
|
|
|
.kelembaban-input-modern:not(:disabled) {
|
|
background: white;
|
|
border-color: #6366f1;
|
|
}
|
|
|
|
.kelembaban-input-modern:not(:disabled):hover {
|
|
border-color: #4f46e5;
|
|
box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
|
|
}
|
|
|
|
.kelembaban-input-modern:focus {
|
|
outline: none;
|
|
border-color: #4f46e5;
|
|
box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
|
|
}
|
|
|
|
/* Number input spinner styling */
|
|
.kelembaban-input-modern::-webkit-inner-spin-button,
|
|
.kelembaban-input-modern::-webkit-outer-spin-button {
|
|
opacity: 1;
|
|
height: 50px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.page-header-otomatis {
|
|
padding: 15px;
|
|
}
|
|
|
|
.header-left {
|
|
width: 100%;
|
|
}
|
|
|
|
.header-left h1 {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.back-nav {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.back-btn {
|
|
padding: 8px 16px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.status-card {
|
|
padding: 20px 15px;
|
|
}
|
|
|
|
.status-header h3 {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.kelembaban-settings-card {
|
|
flex-direction: column;
|
|
padding: 25px 20px;
|
|
margin: 0 auto 25px;
|
|
}
|
|
|
|
.kelembaban-item {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.page-header-otomatis {
|
|
padding: 12px;
|
|
}
|
|
|
|
.header-left h1 {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.header-left i {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.back-nav {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.back-btn {
|
|
padding: 6px 12px;
|
|
font-size: 13px;
|
|
gap: 6px;
|
|
}
|
|
|
|
.main-toggle-switch {
|
|
width: 50px;
|
|
height: 25px;
|
|
}
|
|
|
|
.main-toggle-slider {
|
|
width: 19px;
|
|
height: 19px;
|
|
}
|
|
|
|
.status-card {
|
|
padding: 15px;
|
|
}
|
|
|
|
.status-header h3 {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.status-indicator {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.kelembaban-settings-card {
|
|
padding: 20px 15px;
|
|
margin: 0 auto 20px;
|
|
}
|
|
|
|
.slider-value {
|
|
font-size: 28px;
|
|
}
|
|
|
|
.kelembaban-label {
|
|
font-size: 13px;
|
|
}
|
|
}
|
|
|
|
/* Pot Selection Card */
|
|
.pot-selection-card {
|
|
background: var(--bg-card);
|
|
border-radius: 16px;
|
|
padding: 30px;
|
|
box-shadow: var(--shadow-md);
|
|
margin-bottom: 30px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.pot-selection-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 25px;
|
|
flex-wrap: wrap;
|
|
gap: 15px;
|
|
}
|
|
|
|
.pot-selection-header .header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.pot-selection-header .header-left i {
|
|
font-size: 24px;
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
.pot-selection-header h3 {
|
|
font-size: 20px;
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
font-weight: 600;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.selection-actions {
|
|
display: flex;
|
|
gap: 12px;
|
|
}
|
|
|
|
.action-btn {
|
|
padding: 10px 20px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.action-btn i {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.select-all-btn {
|
|
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
|
|
color: white;
|
|
}
|
|
|
|
.select-all-btn:hover:not(:disabled) {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
|
|
}
|
|
|
|
.deselect-all-btn {
|
|
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
|
|
color: white;
|
|
}
|
|
|
|
.deselect-all-btn:hover:not(:disabled) {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
|
|
}
|
|
|
|
.action-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
background: #9ca3af;
|
|
}
|
|
|
|
.action-btn:active:not(:disabled) {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.pot-selection-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(5, 1fr);
|
|
gap: 15px;
|
|
max-width: 900px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.pot-checkbox-item {
|
|
position: relative;
|
|
}
|
|
|
|
.pot-checkbox-item input[type="checkbox"] {
|
|
display: none;
|
|
}
|
|
|
|
.pot-label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 15px 10px;
|
|
background: var(--bg-secondary);
|
|
border: 3px solid var(--border-color);
|
|
border-radius: 12px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.pot-label:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: var(--shadow-md);
|
|
border-color: var(--accent-light);
|
|
}
|
|
|
|
.pot-checkbox-item input[type="checkbox"]:checked + .pot-label {
|
|
background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
|
|
border-color: var(--accent-secondary);
|
|
color: white;
|
|
}
|
|
|
|
.pot-checkbox-item input[type="checkbox"]:checked + .pot-label .pot-icon i {
|
|
color: white;
|
|
}
|
|
|
|
.pot-checkbox-item input[type="checkbox"]:checked + .pot-label .check-indicator {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
|
|
.pot-checkbox-item input[type="checkbox"]:disabled + .pot-label {
|
|
cursor: not-allowed;
|
|
opacity: 0.6;
|
|
background: var(--bg-hover);
|
|
border-color: var(--border-color);
|
|
}
|
|
|
|
.pot-checkbox-item input[type="checkbox"]:disabled + .pot-label:hover {
|
|
transform: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.pot-icon {
|
|
font-size: 36px;
|
|
margin-bottom: 10px;
|
|
color: var(--accent-primary);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.pot-name {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.pot-checkbox-item input[type="checkbox"]:checked + .pot-label .pot-name {
|
|
color: white;
|
|
}
|
|
|
|
.check-indicator {
|
|
position: absolute;
|
|
top: 8px;
|
|
right: 8px;
|
|
width: 26px;
|
|
height: 26px;
|
|
background: white;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
opacity: 0;
|
|
transform: scale(0);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.check-indicator i {
|
|
color: var(--accent-primary);
|
|
font-size: 14px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.pot-selection-header {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.pot-selection-card {
|
|
padding: 20px;
|
|
}
|
|
|
|
.pot-selection-header h3 {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.selection-actions {
|
|
width: 100%;
|
|
flex-direction: row;
|
|
gap: 8px;
|
|
}
|
|
|
|
.action-btn {
|
|
flex: 1;
|
|
justify-content: center;
|
|
padding: 8px 12px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.pot-selection-grid {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 12px;
|
|
}
|
|
|
|
.pot-label {
|
|
padding: 12px 8px;
|
|
}
|
|
|
|
.pot-icon {
|
|
font-size: 28px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.pot-name {
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.pot-selection-card {
|
|
padding: 15px;
|
|
}
|
|
|
|
.pot-selection-header h3 {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.pot-selection-header .header-left i {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.selection-actions {
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.action-btn {
|
|
width: 100%;
|
|
padding: 10px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.pot-selection-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 10px;
|
|
}
|
|
|
|
.pot-label {
|
|
padding: 10px 6px;
|
|
}
|
|
|
|
.pot-icon {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.pot-name {
|
|
font-size: 13px;
|
|
}
|
|
|
|
.check-indicator {
|
|
width: 22px;
|
|
height: 22px;
|
|
top: 6px;
|
|
right: 6px;
|
|
}
|
|
|
|
.check-indicator i {
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
|
|
/* Pump Selection Card */
|
|
.pump-selection-card {
|
|
background: var(--bg-card);
|
|
border-radius: 16px;
|
|
padding: 30px;
|
|
box-shadow: var(--shadow-md);
|
|
margin-bottom: 30px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.pump-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.pump-header i {
|
|
font-size: 24px;
|
|
color: #3b82f6;
|
|
}
|
|
|
|
.pump-header h3 {
|
|
font-size: 20px;
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
font-weight: 600;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.pump-description {
|
|
margin: 0 0 20px 0;
|
|
padding: 10px 15px;
|
|
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
|
|
border-left: 4px solid #f59e0b;
|
|
color: #92400e;
|
|
font-size: 14px;
|
|
border-radius: 8px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.pump-options {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.pump-option {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 20px;
|
|
background: var(--bg-secondary);
|
|
border: 2px solid var(--border-color);
|
|
border-radius: 12px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.pump-option:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-md);
|
|
border-color: var(--accent-light);
|
|
}
|
|
|
|
.pump-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
flex: 1;
|
|
}
|
|
|
|
.pump-info > i {
|
|
font-size: 32px;
|
|
color: #3b82f6;
|
|
}
|
|
|
|
.pump-text h4 {
|
|
margin: 0 0 5px 0;
|
|
font-size: 16px;
|
|
color: var(--text-primary);
|
|
font-weight: 600;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.pump-text p {
|
|
margin: 0;
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.pump-toggle-container {
|
|
position: relative;
|
|
}
|
|
|
|
.pump-toggle-input {
|
|
display: none;
|
|
}
|
|
|
|
.pump-toggle-label {
|
|
display: block;
|
|
width: 56px;
|
|
height: 28px;
|
|
background: #cbd5e1;
|
|
border-radius: 14px;
|
|
cursor: pointer;
|
|
position: relative;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.pump-toggle-label:hover {
|
|
background: #94a3b8;
|
|
}
|
|
|
|
.pump-toggle-slider {
|
|
position: absolute;
|
|
top: 2px;
|
|
left: 2px;
|
|
width: 24px;
|
|
height: 24px;
|
|
background: white;
|
|
border-radius: 50%;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.pump-toggle-input:checked + .pump-toggle-label {
|
|
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
|
|
}
|
|
|
|
.pump-toggle-input:checked + .pump-toggle-label .pump-toggle-slider {
|
|
transform: translateX(28px);
|
|
}
|
|
|
|
.pump-toggle-input:disabled + .pump-toggle-label {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.pump-toggle-input:disabled + .pump-toggle-label:hover {
|
|
background: #cbd5e1;
|
|
}
|
|
|
|
.pump-option.active {
|
|
border-color: #3b82f6;
|
|
background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
|
|
}
|
|
|
|
.pump-option.inactive {
|
|
opacity: 0.6;
|
|
filter: grayscale(30%);
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.pump-option.inactive:hover {
|
|
transform: none;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.pump-selection-card {
|
|
padding: 20px;
|
|
}
|
|
|
|
.pump-header h3 {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.pump-header i {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.pump-description {
|
|
font-size: 13px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.pump-option {
|
|
padding: 15px;
|
|
}
|
|
|
|
.pump-info > i {
|
|
font-size: 28px;
|
|
}
|
|
|
|
.pump-text h4 {
|
|
font-size: 15px;
|
|
}
|
|
|
|
.pump-text p {
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.pump-selection-card {
|
|
padding: 15px;
|
|
}
|
|
|
|
.pump-header h3 {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.pump-description {
|
|
font-size: 12px;
|
|
margin-bottom: 12px;
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
.pump-option {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 15px;
|
|
padding: 15px;
|
|
}
|
|
|
|
.pump-info {
|
|
width: 100%;
|
|
}
|
|
|
|
.pump-info > i {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.pump-text h4 {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.pump-text p {
|
|
font-size: 11px;
|
|
}
|
|
|
|
.pump-toggle-container {
|
|
align-self: flex-end;
|
|
}
|
|
}
|
|
|
|
/* ===== HISTORI PAGE ===== */
|
|
.filter-section {
|
|
background: white;
|
|
padding: 20px;
|
|
border-radius: 12px;
|
|
margin-bottom: 30px;
|
|
display: flex;
|
|
gap: 15px;
|
|
align-items: flex-end;
|
|
flex-wrap: wrap;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
max-width: 100%;
|
|
}
|
|
|
|
.filter-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
flex: 1;
|
|
min-width: 150px;
|
|
}
|
|
|
|
.filter-group label {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
}
|
|
|
|
.filter-input {
|
|
padding: 10px 15px;
|
|
border: 2px solid #e5e7eb;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.filter-input:focus {
|
|
outline: none;
|
|
border-color: #10b981;
|
|
}
|
|
|
|
.btn-filter {
|
|
padding: 10px 25px;
|
|
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-filter:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
|
|
}
|
|
|
|
.history-stats {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 20px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.stat-card {
|
|
background: white;
|
|
padding: 20px;
|
|
border-radius: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.stat-card:hover {
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.stat-icon {
|
|
width: 60px;
|
|
height: 60px;
|
|
border-radius: 12px;
|
|
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
font-size: 28px;
|
|
}
|
|
|
|
.stat-info h3 {
|
|
font-size: 32px;
|
|
margin: 0;
|
|
color: #065f46;
|
|
}
|
|
|
|
.stat-info p {
|
|
margin: 5px 0 0;
|
|
color: #6b7280;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.history-table-container {
|
|
background: white;
|
|
padding: 25px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
overflow-x: auto;
|
|
max-width: 100%;
|
|
position: relative;
|
|
}
|
|
|
|
/* Scrollbar styling untuk table container */
|
|
.history-table-container::-webkit-scrollbar {
|
|
height: 8px;
|
|
}
|
|
|
|
.history-table-container::-webkit-scrollbar-track {
|
|
background: #f1f1f1;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.history-table-container::-webkit-scrollbar-thumb {
|
|
background: #10b981;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.history-table-container::-webkit-scrollbar-thumb:hover {
|
|
background: #059669;
|
|
}
|
|
|
|
.table-header-controls {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.entries-control {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
color: #6b7280;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.entries-select {
|
|
padding: 8px 30px 8px 12px;
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
background: white;
|
|
cursor: pointer;
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
|
|
background-repeat: no-repeat;
|
|
background-position: right 8px center;
|
|
background-size: 16px;
|
|
}
|
|
|
|
.search-control {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.search-input {
|
|
padding: 8px 12px;
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
width: 250px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.search-input:focus {
|
|
outline: none;
|
|
border-color: #10b981;
|
|
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
|
|
}
|
|
|
|
.history-table {
|
|
width: 100%;
|
|
min-width: 800px;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.history-table thead {
|
|
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
|
|
color: white;
|
|
}
|
|
|
|
.history-table th {
|
|
padding: 15px;
|
|
text-align: left;
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.history-table tbody tr {
|
|
border-bottom: 1px solid #e5e7eb;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.history-table tbody tr:hover {
|
|
background: #f9fafb;
|
|
}
|
|
|
|
.history-table td {
|
|
padding: 15px;
|
|
font-size: 14px;
|
|
color: #374151;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.status-badge {
|
|
padding: 6px 12px;
|
|
border-radius: 20px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
display: inline-block;
|
|
}
|
|
|
|
.status-watering {
|
|
background: #dbeafe;
|
|
color: #1e40af;
|
|
}
|
|
|
|
.status-normal {
|
|
background: #d1fae5;
|
|
color: #065f46;
|
|
}
|
|
|
|
.btn-detail {
|
|
padding: 6px 12px;
|
|
background: #f3f4f6;
|
|
border: none;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
color: #6366f1;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-detail:hover {
|
|
background: #6366f1;
|
|
color: white;
|
|
}
|
|
|
|
/* ===== PAGINATION STYLES ===== */
|
|
.pagination-container {
|
|
margin-top: 25px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding-top: 20px;
|
|
border-top: 1px solid #e5e7eb;
|
|
}
|
|
|
|
.pagination-info {
|
|
color: #6b7280;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.pagination-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
.btn-pagination {
|
|
padding: 6px 10px;
|
|
background: white;
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
color: #374151;
|
|
transition: all 0.2s ease;
|
|
font-size: 14px;
|
|
min-width: 35px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.btn-pagination:hover:not(:disabled) {
|
|
background: #f3f4f6;
|
|
border-color: #9ca3af;
|
|
}
|
|
|
|
.btn-pagination:disabled {
|
|
opacity: 0.4;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.page-numbers {
|
|
display: flex;
|
|
gap: 5px;
|
|
align-items: center;
|
|
}
|
|
|
|
.btn-page-number {
|
|
padding: 6px 12px;
|
|
background: white;
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
color: #374151;
|
|
font-weight: 500;
|
|
transition: all 0.2s ease;
|
|
min-width: 35px;
|
|
}
|
|
|
|
.btn-page-number:hover {
|
|
background: #f3f4f6;
|
|
border-color: #9ca3af;
|
|
}
|
|
|
|
.btn-page-number.active {
|
|
background: #6366f1;
|
|
color: white;
|
|
border-color: #6366f1;
|
|
}
|
|
|
|
.page-dots {
|
|
color: #9ca3af;
|
|
font-size: 18px;
|
|
padding: 0 5px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.filter-section {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.filter-group {
|
|
width: 100%;
|
|
}
|
|
|
|
.btn-filter {
|
|
width: 100%;
|
|
}
|
|
|
|
.table-header-controls {
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.search-input {
|
|
width: 100%;
|
|
}
|
|
|
|
.history-table-container {
|
|
padding: 15px;
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.history-table {
|
|
min-width: 700px;
|
|
}
|
|
|
|
.history-table th,
|
|
.history-table td {
|
|
padding: 10px 8px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.pagination-container {
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
}
|
|
|
|
.otomatis-container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding-bottom: 40px;
|
|
}
|
|
|
|
.status-card {
|
|
background: linear-gradient(135deg, #065f46 0%, #047857 100%);
|
|
color: white;
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
margin-bottom: 20px;
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.status-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.status-header i {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.status-header h3 {
|
|
font-size: 24px;
|
|
margin: 0;
|
|
}
|
|
|
|
.status-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
|
|
.status-indicator {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.indicator-dot {
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 50%;
|
|
background: #10b981;
|
|
box-shadow: 0 0 12px #10b981;
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% {
|
|
opacity: 1;
|
|
}
|
|
50% {
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
|
|
.status-description {
|
|
font-size: 14px;
|
|
opacity: 0.9;
|
|
margin: 0;
|
|
}
|
|
|
|
.threshold-profile-card {
|
|
background: var(--bg-card);
|
|
border-radius: 16px;
|
|
padding: 22px;
|
|
margin: 20px 0;
|
|
box-shadow: var(--shadow-md);
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.threshold-profile-top {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.threshold-profile-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.threshold-profile-header i {
|
|
color: #10b981;
|
|
font-size: 22px;
|
|
}
|
|
|
|
.threshold-profile-header h3 {
|
|
margin: 0;
|
|
font-size: 20px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.threshold-profile-subtitle {
|
|
margin: 0 0 14px;
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.btn-add-threshold {
|
|
background: linear-gradient(135deg, #10b981, #059669);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 10px;
|
|
padding: 10px 16px;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
|
|
}
|
|
|
|
.btn-add-threshold:hover {
|
|
background: linear-gradient(135deg, #059669, #047857);
|
|
}
|
|
|
|
.btn-add-threshold:disabled {
|
|
opacity: 0.55;
|
|
cursor: not-allowed;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.threshold-profile-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.threshold-profile-item {
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 12px;
|
|
padding: 12px 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.threshold-profile-item.active {
|
|
border-color: #34d399;
|
|
background: #ecfdf5;
|
|
}
|
|
|
|
.threshold-profile-item-main {
|
|
flex: 1;
|
|
min-width: 180px;
|
|
}
|
|
|
|
.threshold-profile-item-title-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.threshold-profile-item-title {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.threshold-active-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 3px 10px;
|
|
border-radius: 999px;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
background: #10b981;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.threshold-profile-item-meta {
|
|
margin-top: 4px;
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
}
|
|
|
|
.threshold-profile-item-meta i {
|
|
width: 14px;
|
|
color: #10b981;
|
|
}
|
|
|
|
.threshold-profile-item-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.threshold-action-btn {
|
|
border: 1px solid var(--border-color);
|
|
background: var(--bg-card);
|
|
border-radius: 8px;
|
|
padding: 7px 12px;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.btn-activate-threshold {
|
|
color: #065f46;
|
|
border-color: #86efac;
|
|
}
|
|
|
|
.btn-activate-threshold.active {
|
|
background: #10b981;
|
|
color: #fff;
|
|
border-color: #10b981;
|
|
}
|
|
|
|
.btn-delete-threshold {
|
|
color: #b91c1c;
|
|
border-color: #fecaca;
|
|
}
|
|
|
|
.btn-edit-threshold {
|
|
color: #1d4ed8;
|
|
border-color: #bfdbfe;
|
|
}
|
|
|
|
.btn-delete-threshold:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-edit-threshold:disabled,
|
|
.btn-activate-threshold:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.threshold-profile-item {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.threshold-profile-item-main {
|
|
width: 100%;
|
|
}
|
|
|
|
.threshold-profile-item-actions {
|
|
width: 100%;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.threshold-action-btn {
|
|
flex: 1;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
.threshold-profile-controls {
|
|
display: flex;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.threshold-profile-btn {
|
|
border: 1px solid var(--border-color);
|
|
background: var(--bg-secondary);
|
|
color: var(--text-primary);
|
|
border-radius: 10px;
|
|
padding: 9px 16px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.threshold-profile-btn:hover {
|
|
border-color: #10b981;
|
|
color: #047857;
|
|
}
|
|
|
|
.threshold-profile-btn.active {
|
|
background: linear-gradient(135deg, #10b981, #059669);
|
|
color: #fff;
|
|
border-color: #059669;
|
|
box-shadow: 0 6px 16px rgba(16, 185, 129, 0.25);
|
|
}
|
|
|
|
.threshold-profile-active {
|
|
margin-top: 12px;
|
|
font-size: 13px;
|
|
color: #6b7280;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.threshold-range-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.threshold-range-item {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 12px;
|
|
padding: 12px;
|
|
}
|
|
|
|
.threshold-range-item label {
|
|
margin-bottom: 8px;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.threshold-range-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.settings-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 24px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.setting-card {
|
|
background: var(--bg-card);
|
|
border-radius: 12px;
|
|
padding: 24px;
|
|
box-shadow: var(--shadow-md);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.setting-card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.setting-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
padding-bottom: 15px;
|
|
border-bottom: 2px solid #f0f0f0;
|
|
}
|
|
|
|
.setting-header h4 {
|
|
font-size: 20px;
|
|
color: #065f46;
|
|
margin: 0;
|
|
}
|
|
|
|
.pot-badge {
|
|
padding: 6px 12px;
|
|
border-radius: 20px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: white;
|
|
}
|
|
|
|
.pot-1-badge {
|
|
background: #84cc16; /* Hijau Lime */
|
|
}
|
|
|
|
.pot-2-badge {
|
|
background: #22c55e; /* Hijau */
|
|
}
|
|
|
|
.pot-3-badge {
|
|
background: #06b6d4; /* Cyan */
|
|
}
|
|
|
|
.pot-4-badge {
|
|
background: #3b82f6; /* Biru */
|
|
}
|
|
|
|
.pot-5-badge {
|
|
background: #a16207; /* Coklat */
|
|
}
|
|
|
|
/* Activity Type Badges */
|
|
.activity-badge {
|
|
padding: 6px 12px;
|
|
border-radius: 20px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
display: inline-block;
|
|
}
|
|
|
|
.activity-monitoring {
|
|
background: #d1fae5;
|
|
color: #065f46;
|
|
}
|
|
|
|
.activity-watering {
|
|
background: #dbeafe;
|
|
color: #1e40af;
|
|
}
|
|
|
|
.setting-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.setting-row {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.setting-row label {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
}
|
|
|
|
.toggle-container {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.toggle-switch {
|
|
position: relative;
|
|
width: 50px;
|
|
height: 26px;
|
|
background: #cbd5e1;
|
|
border-radius: 13px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.toggle-switch.active {
|
|
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
|
|
}
|
|
|
|
.toggle-slider {
|
|
position: absolute;
|
|
top: 3px;
|
|
left: 3px;
|
|
width: 20px;
|
|
height: 20px;
|
|
background: white;
|
|
border-radius: 50%;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.toggle-switch.active .toggle-slider {
|
|
transform: translateX(24px);
|
|
}
|
|
|
|
.toggle-label {
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
color: #64748b;
|
|
min-width: 35px;
|
|
}
|
|
|
|
.toggle-label.active {
|
|
color: #065f46;
|
|
}
|
|
|
|
.setting-input {
|
|
padding: 12px 16px;
|
|
border: 2px solid #e5e7eb;
|
|
border-radius: 8px;
|
|
font-size: 16px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.setting-input:focus {
|
|
outline: none;
|
|
border-color: #065f46;
|
|
box-shadow: 0 0 0 3px rgba(6, 95, 70, 0.1);
|
|
}
|
|
|
|
.current-value {
|
|
padding: 12px 16px;
|
|
background: #f3f4f6;
|
|
border-radius: 8px;
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
color: #065f46;
|
|
text-align: center;
|
|
}
|
|
|
|
.current-value.low {
|
|
background: #fee2e2;
|
|
color: #dc2626;
|
|
}
|
|
|
|
.pump-status {
|
|
padding: 12px 16px;
|
|
background: #f3f4f6;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #6b7280;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.pump-status.active {
|
|
background: #d1fae5;
|
|
color: #065f46;
|
|
}
|
|
|
|
.pump-status i.active {
|
|
color: #10b981;
|
|
}
|
|
|
|
.save-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.btn-save {
|
|
padding: 16px 48px;
|
|
background: linear-gradient(135deg, #065f46 0%, #047857 100%);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 12px;
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 4px 12px rgba(6, 95, 70, 0.3);
|
|
}
|
|
|
|
.btn-save:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 20px rgba(6, 95, 70, 0.4);
|
|
}
|
|
|
|
.btn-save:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.btn-save i {
|
|
margin-right: 8px;
|
|
}
|
|
|
|
/* Responsive Design for Mode Otomatis */
|
|
@media (max-width: 768px) {
|
|
.settings-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.page-header h1 {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.status-card {
|
|
padding: 20px;
|
|
}
|
|
}
|
|
|
|
/* ===== MODE WAKTU STYLES ===== */
|
|
.schedule-settings-card {
|
|
background: var(--bg-card);
|
|
border-radius: 12px;
|
|
padding: 30px;
|
|
box-shadow: var(--shadow-md);
|
|
margin-top: 30px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.schedule-settings-card h3 {
|
|
color: var(--text-primary);
|
|
margin-bottom: 10px;
|
|
font-size: 22px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.schedule-subtitle {
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
margin-bottom: 25px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.dual-schedule-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 30px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.schedule-box {
|
|
background: var(--bg-secondary);
|
|
border-radius: 10px;
|
|
padding: 25px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.schedule-box h4 {
|
|
color: var(--text-primary);
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
margin-bottom: 20px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.schedule-time-inputs {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
|
|
.time-input-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.time-input-group label {
|
|
color: var(--text-primary);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.time-input {
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
background: var(--bg-card);
|
|
color: var(--text-primary);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.time-input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-primary);
|
|
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
|
|
}
|
|
|
|
.time-input:disabled {
|
|
background: #f3f4f6;
|
|
cursor: not-allowed;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* ===== MODE WAKTU - SCHEDULE LIST ===== */
|
|
.schedule-list-card {
|
|
background: white;
|
|
border-radius: 20px;
|
|
padding: 30px;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.schedule-list-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.header-left i {
|
|
font-size: 28px;
|
|
color: #10b981;
|
|
}
|
|
|
|
.header-left h3 {
|
|
font-size: 24px;
|
|
color: #1f2937;
|
|
margin: 0;
|
|
}
|
|
|
|
.btn-add-schedule {
|
|
background: linear-gradient(135deg, #10b981, #059669);
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 24px;
|
|
border-radius: 10px;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
|
|
}
|
|
|
|
.btn-add-schedule:hover:not(:disabled) {
|
|
background: linear-gradient(135deg, #059669, #047857);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 12px rgba(16, 185, 129, 0.4);
|
|
}
|
|
|
|
.btn-add-schedule:disabled {
|
|
background: #d1d5db;
|
|
cursor: not-allowed;
|
|
box-shadow: none;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.schedule-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
|
|
/* Empty schedule state */
|
|
.empty-schedule {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
color: #9ca3af;
|
|
}
|
|
|
|
.empty-schedule i {
|
|
font-size: 64px;
|
|
margin-bottom: 20px;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.empty-schedule p {
|
|
font-size: 18px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.empty-subtitle {
|
|
font-size: 14px !important;
|
|
color: #d1d5db !important;
|
|
}
|
|
|
|
/* Schedule Item */
|
|
.schedule-item {
|
|
background: linear-gradient(135deg, #f0fdf4, #dcfce7);
|
|
border-radius: 15px;
|
|
padding: 20px;
|
|
border: 2px solid #d1fae5;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.schedule-item:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 16px rgba(16, 185, 129, 0.15);
|
|
border-color: #a7f3d0;
|
|
}
|
|
|
|
.schedule-item-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 15px;
|
|
padding-bottom: 15px;
|
|
border-bottom: 2px solid #d1fae5;
|
|
}
|
|
|
|
.schedule-name {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.schedule-name i {
|
|
font-size: 22px;
|
|
color: #10b981;
|
|
}
|
|
|
|
.schedule-name span {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: #1f2937;
|
|
}
|
|
|
|
.schedule-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.btn-action {
|
|
background: white;
|
|
border: 2px solid #d1d5db;
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-action i {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.btn-edit {
|
|
color: #3b82f6;
|
|
border-color: #dbeafe;
|
|
}
|
|
|
|
.btn-edit:hover {
|
|
background: #3b82f6;
|
|
color: white;
|
|
border-color: #3b82f6;
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.btn-duplicate {
|
|
color: #8b5cf6;
|
|
border-color: #ede9fe;
|
|
}
|
|
|
|
.btn-duplicate:hover {
|
|
background: #8b5cf6;
|
|
color: white;
|
|
border-color: #8b5cf6;
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.btn-delete {
|
|
color: #ef4444;
|
|
border-color: #fee2e2;
|
|
}
|
|
|
|
.btn-delete:hover {
|
|
background: #ef4444;
|
|
color: white;
|
|
border-color: #ef4444;
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.schedule-item-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.schedule-info {
|
|
display: flex;
|
|
gap: 20px;
|
|
}
|
|
|
|
.info-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 15px;
|
|
color: #374151;
|
|
}
|
|
|
|
.info-item i {
|
|
font-size: 16px;
|
|
color: #10b981;
|
|
}
|
|
|
|
/* ===== MODAL ===== */
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
z-index: 1000;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
backdrop-filter: blur(4px);
|
|
justify-content: center;
|
|
align-items: center;
|
|
animation: fadeIn 0.3s ease;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
.modal-content {
|
|
background: white;
|
|
border-radius: 20px;
|
|
width: 90%;
|
|
max-width: 550px;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
|
animation: slideIn 0.3s ease;
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-50px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 25px 30px;
|
|
border-bottom: 2px solid #f3f4f6;
|
|
}
|
|
|
|
.modal-header h3 {
|
|
font-size: 22px;
|
|
color: #1f2937;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.modal-header i {
|
|
color: #10b981;
|
|
}
|
|
|
|
.modal-close {
|
|
background: #fee2e2;
|
|
border: none;
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.3s ease;
|
|
color: #ef4444;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.modal-close:hover {
|
|
background: #ef4444;
|
|
color: white;
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 25px 30px;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: 8px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.form-input {
|
|
width: 100%;
|
|
padding: 12px 15px;
|
|
border: 2px solid var(--border-color);
|
|
border-radius: 10px;
|
|
font-size: 15px;
|
|
background: var(--bg-card);
|
|
color: var(--text-primary);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.form-input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-primary);
|
|
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
|
|
}
|
|
|
|
/* Pot selection in modal */
|
|
.pot-selection-inline {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.pot-checkbox-inline {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 12px;
|
|
background: var(--bg-secondary);
|
|
border: 2px solid var(--border-color);
|
|
transition: all 0.3s ease;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
user-select: none;
|
|
}
|
|
|
|
.pot-checkbox-inline:hover {
|
|
background: #f0fdf4;
|
|
border-color: #10b981;
|
|
}
|
|
|
|
.pot-checkbox-inline input[type="checkbox"] {
|
|
width: 18px;
|
|
height: 18px;
|
|
cursor: pointer;
|
|
accent-color: #10b981;
|
|
}
|
|
|
|
.pot-checkbox-inline input[type="checkbox"]:checked + span {
|
|
color: #10b981;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.pot-checkbox-inline span {
|
|
font-size: 14px;
|
|
color: #374151;
|
|
}
|
|
|
|
.pot-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.btn-select-all-modal,
|
|
.btn-deselect-all-modal {
|
|
padding: 8px 16px;
|
|
border: 2px solid #e5e7eb;
|
|
border-radius: 8px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-select-all-modal {
|
|
background: #f0fdf4;
|
|
color: #10b981;
|
|
border-color: #d1fae5;
|
|
}
|
|
|
|
.btn-select-all-modal:hover {
|
|
background: #10b981;
|
|
color: white;
|
|
border-color: #10b981;
|
|
}
|
|
|
|
.btn-deselect-all-modal {
|
|
background: #fef2f2;
|
|
color: #ef4444;
|
|
border-color: #fee2e2;
|
|
}
|
|
|
|
.btn-deselect-all-modal:hover {
|
|
background: #ef4444;
|
|
color: white;
|
|
border-color: #ef4444;
|
|
}
|
|
|
|
/* Pump selection in modal */
|
|
.pump-selection-modal {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.pump-radio-option {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px 15px;
|
|
background: #f9fafb;
|
|
border: 2px solid #e5e7eb;
|
|
border-radius: 10px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
user-select: none;
|
|
}
|
|
|
|
.pump-radio-option:hover {
|
|
background: #f0fdf4;
|
|
border-color: #10b981;
|
|
}
|
|
|
|
.pump-radio-option input[type="radio"] {
|
|
width: 20px;
|
|
height: 20px;
|
|
cursor: pointer;
|
|
accent-color: #10b981;
|
|
}
|
|
|
|
.pump-radio-option input[type="radio"]:checked ~ .pump-radio-label {
|
|
color: #10b981;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.pump-radio-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 15px;
|
|
color: #374151;
|
|
}
|
|
|
|
.pump-radio-label i {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.modal-footer {
|
|
padding: 20px 30px;
|
|
border-top: 2px solid #f3f4f6;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
}
|
|
|
|
.btn-cancel,
|
|
.btn-save {
|
|
padding: 12px 24px;
|
|
border: none;
|
|
border-radius: 10px;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-cancel {
|
|
background: #f3f4f6;
|
|
color: #6b7280;
|
|
}
|
|
|
|
.btn-cancel:hover {
|
|
background: #e5e7eb;
|
|
color: #374151;
|
|
}
|
|
|
|
.btn-save {
|
|
background: linear-gradient(135deg, #10b981, #059669);
|
|
color: white;
|
|
box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
|
|
}
|
|
|
|
.btn-save:hover {
|
|
background: linear-gradient(135deg, #059669, #047857);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 12px rgba(16, 185, 129, 0.4);
|
|
}
|
|
|
|
/* Notification */
|
|
.notification {
|
|
position: fixed;
|
|
top: 20px;
|
|
right: 20px;
|
|
background: white;
|
|
padding: 16px 24px;
|
|
border-radius: 10px;
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
|
|
z-index: 2000;
|
|
display: none;
|
|
align-items: center;
|
|
gap: 12px;
|
|
min-width: 280px;
|
|
animation: slideInRight 0.3s ease;
|
|
opacity: 0;
|
|
transform: translateX(100px);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
@keyframes slideInRight {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(100px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
.notification.show {
|
|
display: flex;
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.notification.success {
|
|
border-left: 4px solid #10b981;
|
|
}
|
|
|
|
.notification.error {
|
|
border-left: 4px solid #ef4444;
|
|
}
|
|
|
|
.notification.warning {
|
|
border-left: 4px solid #f59e0b;
|
|
}
|
|
|
|
.notification.info {
|
|
border-left: 4px solid #3b82f6;
|
|
}
|
|
|
|
.notification.success .notification-icon {
|
|
color: #10b981;
|
|
}
|
|
|
|
.notification.error .notification-icon {
|
|
color: #ef4444;
|
|
}
|
|
|
|
.notification.warning .notification-icon {
|
|
color: #f59e0b;
|
|
}
|
|
|
|
.notification.info .notification-icon {
|
|
color: #3b82f6;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.dual-schedule-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.schedule-list-header {
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.btn-add-schedule {
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
|
|
.schedule-item-header {
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.schedule-actions {
|
|
width: 100%;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.schedule-info {
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.modal-content {
|
|
width: 95%;
|
|
max-height: 95vh;
|
|
}
|
|
|
|
.modal-header,
|
|
.modal-body,
|
|
.modal-footer {
|
|
padding: 20px;
|
|
}
|
|
|
|
.pot-selection-inline {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.pot-checkbox-inline {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.header-left h3 {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.btn-add-schedule {
|
|
padding: 10px 20px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.schedule-name span {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.btn-action {
|
|
width: 32px;
|
|
height: 32px;
|
|
}
|
|
|
|
.info-item {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.modal-header h3 {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.notification {
|
|
min-width: auto;
|
|
max-width: calc(100% - 40px);
|
|
right: 20px;
|
|
left: 20px;
|
|
}
|
|
}
|
|
|
|
/* Global mobile hotfix: keep all pages full-width and stable on phones/tablets */
|
|
@media (max-width: 768px) {
|
|
.main-wrapper,
|
|
.sidebar.collapsed + .main-wrapper {
|
|
margin-left: 0 !important;
|
|
width: 100% !important;
|
|
max-width: 100% !important;
|
|
min-width: 0;
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.main-content {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
padding-left: 16px;
|
|
padding-right: 16px;
|
|
}
|
|
|
|
.page-header h1 {
|
|
font-size: 26px;
|
|
line-height: 1.25;
|
|
align-items: flex-start;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.sensor-cards,
|
|
.actuator-controls {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.pots-container {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.table-container,
|
|
.history-table-container {
|
|
width: 100%;
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.mode-kontrol-box {
|
|
padding: 34px 24px;
|
|
}
|
|
|
|
.mode-buttons {
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
}
|
|
|
|
.mode-btn {
|
|
width: 100%;
|
|
min-width: 0;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.top-header {
|
|
padding: 10px 12px;
|
|
gap: 8px;
|
|
}
|
|
|
|
.header-title {
|
|
gap: 8px;
|
|
min-width: 0;
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.header-title > i {
|
|
display: none;
|
|
}
|
|
|
|
.top-header .mobile-menu-btn {
|
|
display: flex !important;
|
|
width: 36px;
|
|
height: 36px;
|
|
font-size: 17px;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.top-header .mobile-menu-btn i {
|
|
display: block !important;
|
|
visibility: visible !important;
|
|
opacity: 1 !important;
|
|
line-height: 1;
|
|
}
|
|
|
|
.header-actions {
|
|
gap: 8px;
|
|
}
|
|
|
|
.theme-toggle-btn {
|
|
width: 34px;
|
|
height: 34px;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.header-time {
|
|
display: inline-flex !important;
|
|
align-items: center;
|
|
max-width: 48vw;
|
|
padding: 6px 9px;
|
|
font-size: 10.5px;
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.header-time::before {
|
|
font-size: 10px;
|
|
}
|
|
|
|
.main-content {
|
|
padding-left: 12px;
|
|
padding-right: 12px;
|
|
}
|
|
|
|
.pots-container {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.mode-kontrol-container {
|
|
padding: 20px 12px;
|
|
min-height: auto;
|
|
}
|
|
|
|
.mode-kontrol-box {
|
|
padding: 24px 16px;
|
|
border-radius: 16px;
|
|
}
|
|
|
|
.mode-title {
|
|
font-size: 22px;
|
|
padding: 14px 12px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.mode-btn {
|
|
font-size: 18px;
|
|
padding: 14px 18px;
|
|
}
|
|
|
|
.history-table {
|
|
min-width: 640px;
|
|
}
|
|
|
|
.page-header h1 {
|
|
font-size: 22px;
|
|
gap: 8px;
|
|
}
|
|
}
|