File size: 3,619 Bytes
1d4eab2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
/* Prediction Page के लिए विशिष्ट स्टाइलिंग */

:root {
    --primary-green: #00A859;
    --dark-green: #006400;
    --light-green: #E8F8F5;
    --border-color: #ddd;
}

/* ------------------- Section & Title ------------------- */
.prediction-section {
    padding: 40px 5%;
    background-color: #f7f7f7;
    text-align: center;
}

.page-title {
    font-size: 2.5em;
    color: #222;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 40px;
}

/* ------------------- Upload Card ------------------- */
.upload-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    margin: 0 auto 40px;
}

.upload-card h2 {
    color: var(--dark-green);
    margin-top: 0;
    margin-bottom: 30px;
}

/* Custom File Input Styling */
.file-upload-wrapper {
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    filter: alpha(opacity=0);
    opacity: 0;
    cursor: pointer;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    border: 2px dashed var(--primary-green);
    border-radius: 8px;
    background-color: var(--light-green);
    color: var(--dark-green);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.file-label:hover {
    background-color: #d1efe4; /* हल्का हरा */
    border-color: var(--dark-green);
}

.upload-icon {
    font-size: 1.5em;
    margin-right: 10px;
}

/* Analyze Button */
.analyze-btn {
    width: 100%;
    background-color: var(--dark-green);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.analyze-btn:hover {
    background-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 168, 89, 0.3);
}

/* ------------------- Result Card ------------------- */
.result-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 40px auto;
    border-left: 5px solid var(--primary-green);
    text-align: left;
}

.result-card h2 {
    color: var(--dark-green);
    border-bottom: 1px solid var(--light-green);
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.result-details p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.result-details strong {
    color: #444;
}

.result-disease {
    color: #cc0000; /* रोग के लिए थोड़ा डार्क या लाल रंग का इस्तेमाल करें */
    font-weight: 700;
}

.result-confidence {
    color: var(--primary-green);
    font-weight: 700;
}

.advice-text {
    background-color: #fff8e1;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #ffc107;
    margin-top: 25px;
}

.disclaimer-note {
    margin-top: 20px;
    font-size: 0.85em;
    color: #888;
}

/* ------------------- Animations ------------------- */
.animated-card, .animated-result {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}