Spaces:
Sleeping

App / static /css /style.css
Harshalll007's picture
Upload style.css
ff18eb4 verified
Raw History Blame Contribute Delete
15.4 kB
:root {
--primary: #2d6a4f;
--secondary: #40916c;
--bg: #f4f9f4;
--text: #1b4332;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: var(--bg);
margin: 0;
color: var(--text);
}
.btn {
display: inline-block;
background: var(--primary);
color: white;
padding: 12px 25px;
border: none;
border-radius: 5px;
text-decoration: none;
font-size: 16px;
font-weight: bold;
cursor: pointer;
transition: 0.3s;
}
.btn:hover { background: #1b4332; }
.btn:disabled { background: #95d5b2; cursor: not-allowed; }
/* index.html*/
.hero { text-align: center; padding: 60px 20px; }
.hero h1 { font-size: 40px; margin-bottom: 10px; }
.hero p { font-size: 18px; color: #52796f; margin-bottom: 40px; }
.card { background: white; padding: 40px; border-radius: 15px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); text-align: center; width: 250px; text-decoration: none; color: inherit; transition: transform 0.3s, box-shadow 0.3s; border: 2px solid transparent; }
.card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: var(--secondary); }
.icon { font-size: 50px; margin-bottom: 20px; }
/* doctor.html */
.container { background: white; max-width: 500px; margin: 40px auto; padding: 40px; border-radius: 15px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); text-align: center; }
.upload-area { border: 3px dashed #74c69d; padding: 40px; border-radius: 10px; cursor: pointer; background-color: #f9fdfa; transition: 0.3s; margin-bottom: 20px;}
.upload-area:hover { border-color: var(--primary); background-color: #e9f5ee; }
#preview { max-width: 100%; height: 250px; object-fit: cover; border-radius: 10px; display: none; margin: 0 auto 20px auto; box-shadow: 0 4px 10px rgba(0,0,0,0.1);}
#result-box { margin-top: 25px; display: none; padding: 20px; background-color: #d8f3dc; border-radius: 10px; border: 1px solid #b7e4c7; }
.disease { font-size: 22px; font-weight: bold; color: var(--text); margin-bottom: 10px; }
.confidence { font-size: 16px; color: #2d6a4f; background: white; padding: 5px 10px; border-radius: 20px; display: inline-block;}
/* advisor.html */
.advisor-container { max-width: 800px; margin: 40px auto; padding: 20px; }
.tip-card { background: white; padding: 25px; border-radius: 10px; margin-bottom: 20px; border-left: 5px solid var(--primary); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.tip-card h3 { margin-top: 0; color: var(--primary); font-size: 20px; }
.tip-card p { color: #52796f; line-height: 1.6; margin-bottom: 0;}
/*Theme*/
:root {
--primary-dark: #1b4332;
--primary-mid: #2d6a4f;
--primary-light: #b7e4c7;
--accent-green: #40916c;
--bg-light: #f8fbf9;
--text-main: #081c15;
--white: #ffffff;
--error-red: #d90429;
--info-blue: #0077b6;
}
body {
font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
background-color: var(--bg-light);
color: var(--text-main);
margin: 0;
line-height: 1.6;
}
.container {
max-width: 700px;
margin: 40px auto;
background: var(--white);
padding: 30px;
border-radius: 20px;
box-shadow: 0 10px 30px rgba(0,0,0,0.05);
text-align: center;
}
h1 {
color: var(--primary-dark);
font-size: 2.2rem;
margin-bottom: 10px;
}
.upload-area {
border: 3px dashed var(--primary-light);
padding: 40px;
border-radius: 15px;
cursor: pointer;
transition: 0.3s;
background: #fdfdfd;
}
.upload-area:hover {
border-color: var(--primary-mid);
background: #f1f8e9;
}
#preview {
width: 100%;
max-height: 400px;
object-fit: cover;
border-radius: 12px;
margin: 20px 0;
border: 1px solid #eee;
}
.btn {
background-color: var(--primary-mid);
color: white;
padding: 15px 25px;
border: none;
border-radius: 10px;
font-size: 1.1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3);
}
.btn:hover {
background-color: var(--primary-dark);
transform: translateY(-2px);
}
.btn:disabled {
background-color: #ccc;
cursor: not-allowed;
}
/*result */
#result-box {
margin-top: 30px;
padding: 20px;
border-radius: 12px;
background: #f0f4f1;
}
.disease {
font-size: 1.5rem;
font-weight: 800;
margin-bottom: 5px;
}
.confidence {
background: var(--white);
padding: 5px 15px;
border-radius: 20px;
font-size: 0.9rem;
color: var(--primary-mid);
display: inline-block;
border: 1px solid var(--primary-light);
}
/*Cards*/
.card {
background: white;
padding: 25px;
border-radius: 15px;
text-decoration: none;
color: inherit;
transition: 0.3s;
border: 1px solid #eee;
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
border-color: var(--primary-mid);
}
.icon {
font-size: 3rem;
margin-bottom: 15px;
}
.treatment-card {
transition: 0.3s ease;
}
.treatment-card:hover {
filter: brightness(0.98);
}
.btn-sm {
padding: 5px 12px;
font-size: 0.8rem;
border-radius: 5px;
border: none;
background: #1b4332;
color: white;
cursor: pointer;
margin-left: 5px;
}
.cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
margin: 40px auto;
max-width: 1100px;
padding: 0 20px;
margin-top: 40px;
margin-left: auto;
margin-right: auto;
}
.card {
background: white;
padding: 25px;
border-radius: 15px;
text-decoration: none;
color: inherit;
transition: 0.3s;
border: 1px solid #eee;
width: auto;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.card h2, .card p {
word-wrap: break-word;
}
@media (max-width: 900px) {
.cards {
grid-template-columns: 1fr;
}
}
/*Navbar*/
html, body {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.navbar {
width: 100% !important;
height: 75px;
background-color: #ffffff;
border-bottom: 2px solid #f0f0f0;
position: fixed;
top: 0;
left: 0;
z-index: 1000;
border-radius: 0 !important;
margin: 0 !important;
display: flex;
align-items: center;
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.nav-container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 40px;
display: flex;
justify-content: space-between;
align-items: center;
}
.nav-links {
display: flex;
list-style: none;
gap: 35px;
margin: 0;
padding: 0;
}
.nav-links a {
text-decoration: none;
color: #444444;
font-weight: 700;
font-size: 0.85rem;
text-transform: uppercase;
letter-spacing: 1px;
padding: 10px 0;
transition: all 0.3s ease;
border-bottom: 2px solid transparent;
}
/* Hover*/
.nav-links a:hover,
.nav-links a.active {
color: #1b4332 !important;
border-bottom: 2px solid #1b4332;
}
.logo a {
color: #1b4332;
text-decoration: none;
font-size: 1.5rem;
font-weight: 800;
display: flex;
align-items: center;
}
body {
padding-top: 75px;
}
@media (max-width: 768px) {
.nav-container {
padding: 0 20px;
}
.nav-links a {
font-size: 0.75rem;
}
}
/* --- FOOTER STYLING --- */
footer {
background-color: #1b4332; /* Match your brand's deep green */
color: #ffffff;
padding: 40px 0 20px 0;
margin-top: 50px; /* Gap between content and footer */
width: 100%;
}
.footer-container {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
padding: 0 40px;
}
.footer-section {
flex: 1;
min-width: 250px;
margin-bottom: 20px;
}
.footer-section h3 {
font-size: 1.2rem;
margin-bottom: 15px;
color: #74c365; /* Leaf Green for titles */
}
.footer-section p, .footer-section li {
font-size: 0.9rem;
line-height: 1.6;
color: #d8f3dc;
list-style: none;
}
.footer-bottom {
text-align: center;
padding-top: 20px;
margin-top: 20px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
font-size: 0.8rem;
color: #95d5b2;
}
.footer-section ul li a {
transition: color 0.3s ease;
}
.footer-section ul li a:hover {
color: #ffffff !important; /* Turns white when hovered */
}
/* Center the middle column header and list */
.footer-section:nth-child(2) {
text-align: center; /* Centers the 'Quick Links' heading */
}
.footer-section:nth-child(2) ul {
padding: 0;
list-style: none;
display: inline-block; /* Allows the list to stay together but be centered */
text-align: left; /* Optional: keeps the bullet points aligned with each other while centered */
}
/* Container for sections */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 60px 20px;
text-align: center;
}
.section-title {
font-size: 2.5rem;
color: #1b4332;
margin-bottom: 40px;
}
/* About Section Styles */
.about-section {
background-color: #f9fdfb;
padding: 80px 0;
}
.about-grid {
display: flex;
align-items: center;
gap: 50px;
text-align: left;
}
.about-text h2 {
color: #1b4332;
margin-bottom: 20px;
}
.benefit-list {
list-style: none;
padding: 0;
margin-top: 20px;
}
.benefit-list li {
margin-bottom: 10px;
color: #2d6a4f;
font-weight: 600;
}
.benefit-list i {
margin-right: 10px;
color: #49a078;
}
.image-placeholder {
font-size: 150px;
background: #e9f5ef;
padding: 40px;
border-radius: 20px;
}
/* Main Button */
.main-btn {
display: inline-block;
background: #49a078;
color: white;
padding: 15px 35px;
border-radius: 30px;
text-decoration: none;
font-weight: bold;
margin-top: 20px;
transition: 0.3s;
}
.main-btn:hover {
background: #1b4332;
transform: translateY(-3px);
}
@media (max-width: 768px) {
.about-grid { flex-direction: column; text-align: center; }
}
.footer-section ul li a {
text-decoration: none;
color: #d8f3dc;
font-size: 0.9rem;
transition: color 0.3s ease;
}
.footer-section ul li a:hover {
color: #ffffff;
text-decoration: underline;
}
.footer-section:nth-child(2) {
text-align: center;
}
.footer-section:nth-child(2) ul {
padding: 0;
list-style: none;
}
.footer-section ul {
list-style-type: none !important;
padding-left: 0 !important;
padding-inline-start: 0 !important;
margin: 0 !important;
text-align: left !important;
}
.footer-section ul li a {
text-decoration: none;
color: #d8f3dc;
font-size: 0.95rem;
display: block;
}
/*Footer*/
@media (max-width: 768px) {
.footer-container {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
gap: 30px;
}
.footer-section {
width: 100%;
margin-bottom: 0 !important;
}
.footer-section ul {
padding: 0 !important;
margin: 0 !important;
display: flex;
flex-direction: column;
align-items: center;
}
.footer-section ul li {
text-align: center !important;
margin-bottom: 12px;
padding: 0 !important;
text-align: left !important;
}
footer {
padding: 40px 20px;
}
}
.hamburger {
display: none;
font-size: 1.5rem;
color: #1b4332;
cursor: pointer;
}
@media (max-width: 768px) {
.hamburger {
display: block;
}
.nav-links {
display: flex;
list-style: none;
gap: 35px;
margin: 0;
position: fixed;
top: 75px;
right: -100%;
flex-direction: column;
background: #ffffff;
width: 100%;
height: auto;
padding: 20px 0;
text-align: center;
transition: 0.3s ease;
box-shadow: 0 5px 10px rgba(0,0,0,0.1);
border-bottom: 2px solid #49a078;
}
.nav-links.show {
right: 0;
}
.nav-links li {
margin: 15px 0;
}
}
@media (max-width: 900px) {
.container div[style*="grid-template-columns"] {
grid-template-columns: 1fr !important;
}
}
/*WEATHER*/
.weather-dashboard {
background: #f9fdfb;
border-radius: 20px;
padding: 30px;
margin: 40px auto;
text-align: left;
box-shadow: 0 5px 20px rgba(0,0,0,0.05);
max-width: 1200px;
}
.weather-header {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 15px;
margin-bottom: 15px;
}
.weather-header h2 {
color: #1b4332;
font-size: 1.5rem;
}
/* Search Bar */
.search-container {
display: flex;
align-items: center;
background: #e9f5ef;
border-radius: 20px;
padding: 5px 15px;
border: 1px solid #c8e6c9;
}
.search-container input {
border: none;
background: transparent;
outline: none;
padding: 8px 5px;
width: 250px;
color: #1b4332;
font-family: inherit;
}
.search-container button {
background: transparent;
border: none;
color: #2d6a4f;
cursor: pointer;
font-size: 1.1rem;
transition: 0.3s;
}
.search-container button:hover {
color: #1b4332;
transform: scale(1.1);
}
.loc-badge {
background: #d8f3dc;
color: #2d6a4f;
padding: 5px 12px;
border-radius: 20px;
font-size: 0.85rem;
font-weight: bold;
}
.agri-alert {
background: #1b4332;
color: #ffffff;
padding: 15px;
border-radius: 10px;
margin-bottom: 25px;
font-size: 0.95rem;
display: flex;
align-items: center;
gap: 10px;
}
.agri-alert i {
color: #74c365;
font-size: 1.2rem;
}
/*Forecast*/
.forecast-container {
display: flex;
gap: 15px;
overflow-x: auto;
padding-bottom: 10px;
scrollbar-width: thin;
}
.forecast-card {
background: #ffffff;
min-width: 130px;
padding: 15px;
border-radius: 15px;
text-align: center;
border: 1px solid #e9f5ef;
box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.forecast-card .date { font-weight: bold; color: #2d6a4f; margin-bottom: 5px; font-size: 0.9rem;}
.forecast-card .temp { font-size: 1.2rem; font-weight: 800; color: #1b4332; margin: 10px 0; }
.forecast-card .rain { font-size: 0.8rem; color: #0077b6; font-weight: bold; }
@media (max-width: 768px) {
.search-container, .search-container input {
width: 100%;
}
}