Files
Frontend/src/app/globals.css
T
sajad-dev 2b6538c650 Add irrigation and fertilization recommendations, farm AI assistant, and pest detection features with Persian localization
- Introduced new sections in the dashboard for irrigation recommendations, fertilization recommendations, farm AI assistant, and pest detection.
- Added Persian translations for new features to enhance user experience.
- Updated the vertical menu to include links to the new sections.
- Enhanced global styles with animations for improved UI interactions.
2026-02-21 00:19:25 +03:30

186 lines
4.0 KiB
CSS

@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
--border-radius: var(--mui-shape-borderRadius);
--border-color: var(--mui-palette-divider);
--primary-color: var(--mui-palette-primary-main);
--background-color: var(--mui-palette-background-default);
--background-color-rgb: var(--mui-palette-background-paperChannel);
--header-height: 54px;
--header-z-index: var(--mui-zIndex-appBar);
--footer-z-index: 10;
--customizer-z-index: var(--mui-zIndex-drawer);
--search-z-index: var(--mui-zIndex-tooltip);
--drawer-z-index: var(--mui-zIndex-drawer);
--backdrop-color: rgb(var(--mui-mainColorChannels-light) / 0.5);
--mui-mainColorChannels-shadow: var(--mui-mainColorChannels-lightShadow);
}
[data-dark] {
--backdrop-color: rgb(23 25 37 / 0.6);
--mui-mainColorChannels-shadow: var(--mui-mainColorChannels-darkShadow);
}
*,
::before,
::after {
box-sizing: border-box;
padding: 0;
margin: 0;
border-width: 0;
border-style: solid;
border-color: theme('borderColor.DEFAULT', currentColor);
}
html {
display: flex;
inline-size: 100%;
min-block-size: 100%;
}
a {
color: inherit;
text-decoration: none;
}
ul:not([class]) {
margin-block: 1rem;
padding-inline-start: 40px;
}
/*! Do not remove the following styles */
/*
Fix the popout / submenu closing issue when using hover trigger to open the menu and using
perfectscrollbar where the bridge create with safe polygon by floating ui was not working
*/
[data-floating-ui-safe-polygon] .scrollbar-container {
pointer-events: auto;
}
[data-floating-ui-safe-polygon] .scrollbar-container .ps__rail-y {
pointer-events: none;
}
/* Crop zoning map tooltip - glassmorphism */
.zone-tooltip {
background: rgba(255, 255, 255, 0.9) !important;
backdrop-filter: blur(8px);
border: 1px solid rgba(255, 255, 255, 0.5);
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
padding: 0 !important;
margin: 0 !important;
}
[data-dark] .zone-tooltip {
background: rgba(30, 35, 50, 0.95) !important;
border-color: rgba(255, 255, 255, 0.1);
}
.ps__rail-y {
inset-inline-end: 0 !important;
inset-inline-start: auto !important;
& .ps__thumb-y {
inset-inline-end: 3px !important;
inset-inline-start: auto !important;
background-color: var(--mui-palette-divider);
inline-size: 6px;
&:hover,
&:focus,
&.ps--clicking {
background-color: var(--mui-palette-action-disabled) !important;
}
}
&:hover,
&:focus,
&.ps--clicking {
background-color: var(--mui-palette-action-hover) !important;
}
&:hover,
&:focus,
&.ps--clicking {
.ps__thumb-y {
background-color: var(--mui-palette-action-disabled) !important;
}
}
}
.ts-vertical-nav-root {
.ps__thumb-y {
inline-size: 4px;
&:hover,
&:focus,
&.ps--clicking {
inline-size: 6px;
}
}
.ps__rail-y {
inline-size: 10px;
&:hover,
&:focus,
&.ps--clicking {
background-color: transparent !important;
.ps__thumb-y {
inline-size: 6px;
}
}
}
}
:where([class^='tabler-']) {
font-size: 1.5rem;
}
/* Fix width issue for the input-otp component */
input[autocomplete='one-time-code'][data-input-otp='true'] {
inline-size: 100% !important;
}
code {
font-family: inherit;
padding-block: 2px;
padding-inline: 4px;
border-radius: 4px;
font-size: 90%;
color: var(--mui-palette-info-main);
background-color: rgb(var(--mui-palette-info-mainChannel) / 0.08);
border: 0;
}
/* Smart Irrigation - fade-in animation */
@keyframes fade-in {
from {
opacity: 0;
transform: translateY(12px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.animate-fade-in {
animation: fade-in 0.5s ease-out forwards;
}
/* Hide horizontal scrollbar for growth stage stepper */
.scrollbar-hide {
-ms-overflow-style: none;
scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
display: none;
}
/* Farm AI Assistant - typing indicator bounce */
@keyframes typing-bounce {
0%, 80%, 100% {
transform: scale(0.6);
opacity: 0.5;
}
40% {
transform: scale(1);
opacity: 1;
}
}