jansahayak / static /css /style.css
Anmol4521's picture
Upload style.css
ed56871 verified
/* JanSahayak - Modern UI Styles */
:root {
--primary: #6366f1;
--primary-dark: #4f46e5;
--secondary: #8b5cf6;
--success: #10b981;
--danger: #ef4444;
--warning: #f59e0b;
--dark: #1f2937;
--light: #f9fafb;
--text: #374151;
--text-light: #6b7280;
--border: #e5e7eb;
--gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
--shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
color: var(--text);
background: var(--light);
line-height: 1.6;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* Navbar */
.navbar {
background: white;
box-shadow: var(--shadow);
position: sticky;
top: 0;
z-index: 1000;
padding: 1rem 0;
}
.navbar .container {
display: flex;
justify-content: space-between;
align-items: center;
}
.nav-brand {
display: flex;
align-items: center;
gap: 10px;
font-size: 1.5rem;
font-weight: 700;
color: var(--primary);
}
.nav-brand i {
font-size: 2rem;
}
.nav-menu {
display: flex;
list-style: none;
gap: 2rem;
}
.nav-link {
color: var(--text);
text-decoration: none;
font-weight: 500;
transition: color 0.3s;
display: flex;
align-items: center;
gap: 8px;
}
.nav-link:hover,
.nav-link.active {
color: var(--primary);
}
/* Hero Section */
.hero {
background: var(--gradient);
padding: 100px 0;
color: white;
text-align: center;
}
.hero-content {
max-width: 900px;
margin: 0 auto;
}
.hero-badge {
display: inline-block;
background: rgba(255, 255, 255, 0.2);
padding: 8px 20px;
border-radius: 50px;
font-size: 0.9rem;
margin-bottom: 20px;
backdrop-filter: blur(10px);
}
.hero-title {
font-size: 3.5rem;
font-weight: 800;
margin-bottom: 20px;
line-height: 1.2;
}
.gradient-text {
background: linear-gradient(to right, #fbbf24, #f59e0b);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.hero-subtitle {
font-size: 1.3rem;
margin-bottom: 40px;
opacity: 0.95;
}
.hero-stats {
display: flex;
justify-content: center;
gap: 40px;
flex-wrap: wrap;
}
.stat-card {
display: flex;
align-items: center;
gap: 15px;
background: rgba(255, 255, 255, 0.1);
padding: 20px 30px;
border-radius: 15px;
backdrop-filter: blur(10px);
}
.stat-card i {
font-size: 2.5rem;
}
.stat-card h3 {
font-size: 2rem;
font-weight: 700;
}
.stat-card p {
font-size: 0.9rem;
opacity: 0.9;
}
/* Input Section */
.input-section {
padding: 80px 0;
margin-top: -50px;
}
.input-card {
background: white;
border-radius: 20px;
box-shadow: var(--shadow-lg);
padding: 40px;
max-width: 900px;
margin: 0 auto;
}
.card-header {
text-align: center;
margin-bottom: 40px;
}
.card-header h2 {
font-size: 2rem;
color: var(--dark);
margin-bottom: 10px;
}
.card-header p {
color: var(--text-light);
}
.form-group {
margin-bottom: 30px;
}
.form-group label {
display: flex;
align-items: center;
gap: 8px;
font-weight: 600;
margin-bottom: 10px;
color: var(--dark);
}
.required {
color: var(--danger);
}
textarea {
width: 100%;
padding: 15px;
border: 2px solid var(--border);
border-radius: 10px;
font-family: inherit;
font-size: 1rem;
resize: vertical;
transition: border-color 0.3s;
}
textarea:focus {
outline: none;
border-color: var(--primary);
}
.char-count {
text-align: right;
color: var(--text-light);
font-size: 0.9rem;
margin-top: 5px;
}
/* Quick Fill */
.quick-fill {
background: var(--light);
padding: 20px;
border-radius: 10px;
margin-bottom: 30px;
}
.quick-fill p {
font-weight: 600;
margin-bottom: 15px;
display: flex;
align-items: center;
gap: 8px;
}
.quick-fill-buttons {
display: flex;
gap: 15px;
flex-wrap: wrap;
}
.btn-quick {
padding: 12px 24px;
background: white;
border: 2px solid var(--border);
border-radius: 10px;
cursor: pointer;
font-weight: 500;
display: flex;
align-items: center;
gap: 10px;
transition: all 0.3s;
}
.btn-quick:hover {
border-color: var(--primary);
color: var(--primary);
transform: translateY(-2px);
box-shadow: var(--shadow);
}
/* Buttons */
.btn-primary {
width: 100%;
padding: 18px;
background: var(--gradient);
color: white;
border: none;
border-radius: 12px;
font-size: 1.1rem;
font-weight: 600;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
transition: transform 0.3s, box-shadow 0.3s;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
}
.btn-secondary {
padding: 12px 24px;
background: white;
color: var(--primary);
border: 2px solid var(--primary);
border-radius: 10px;
font-weight: 600;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 8px;
transition: all 0.3s;
}
.btn-secondary:hover {
background: var(--primary);
color: white;
}
/* Loading State */
.loading-state {
text-align: center;
padding: 60px 0;
}
.loading-spinner {
width: 60px;
height: 60px;
border: 5px solid var(--border);
border-top-color: var(--primary);
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 0 auto 30px;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.loading-state h3 {
font-size: 1.5rem;
margin-bottom: 10px;
}
.agent-progress {
max-width: 600px;
margin: 40px auto 0;
}
.agent-step {
display: flex;
align-items: center;
gap: 20px;
padding: 20px;
background: var(--light);
border-radius: 10px;
margin-bottom: 15px;
animation: fadeInUp 0.5s ease-out;
}
.step-icon {
width: 50px;
height: 50px;
background: var(--gradient);
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
}
.step-info h4 {
margin-bottom: 5px;
}
.step-info p {
color: var(--text-light);
font-size: 0.9rem;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Features Section */
.features-section {
padding: 80px 0;
background: white;
}
.section-title {
text-align: center;
font-size: 2.5rem;
margin-bottom: 60px;
color: var(--dark);
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px;
}
.feature-card {
text-align: center;
padding: 40px 30px;
background: var(--light);
border-radius: 15px;
transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
transform: translateY(-10px);
box-shadow: var(--shadow);
}
.feature-icon {
width: 80px;
height: 80px;
background: var(--gradient);
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 2rem;
margin: 0 auto 20px;
}
.feature-card h3 {
margin-bottom: 15px;
color: var(--dark);
}
/* Results Section */
.results-section {
padding: 40px 0 80px;
background: var(--light);
}
.success-banner {
background: var(--gradient);
color: white;
padding: 30px;
border-radius: 15px;
display: flex;
align-items: center;
gap: 20px;
margin-bottom: 40px;
}
.success-banner i {
font-size: 3rem;
}
.result-card {
background: white;
border-radius: 15px;
box-shadow: var(--shadow);
margin-bottom: 30px;
overflow: hidden;
}
.result-card.highlight {
border: 3px solid var(--warning);
}
.result-card .card-header {
background: var(--light);
padding: 25px 30px;
border-bottom: 2px solid var(--border);
display: flex;
justify-content: space-between;
align-items: center;
}
.result-card .card-header h3 {
display: flex;
align-items: center;
gap: 12px;
color: var(--dark);
}
.btn-download {
padding: 10px 20px;
background: var(--primary);
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
font-weight: 500;
display: flex;
align-items: center;
gap: 8px;
transition: all 0.3s;
}
.btn-download:hover {
background: var(--primary-dark);
transform: translateY(-2px);
}
.card-body {
padding: 30px;
}
.profile-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
}
.profile-item {
display: flex;
flex-direction: column;
gap: 5px;
}
.profile-label {
font-weight: 600;
color: var(--text-light);
font-size: 0.9rem;
}
.profile-value {
color: var(--dark);
font-weight: 500;
}
.markdown-content {
line-height: 1.8;
}
.markdown-content h2 {
color: var(--primary);
margin: 35px 0 20px;
font-size: 1.6rem;
padding-bottom: 12px;
border-bottom: 3px solid var(--primary);
}
.markdown-content h3 {
color: var(--dark);
margin: 28px 0 16px;
font-size: 1.35rem;
}
.markdown-content h4 {
color: var(--primary);
margin: 25px 0 15px;
font-size: 1.3rem;
}
.markdown-content strong {
color: var(--dark);
font-weight: 600;
}
/* Emoji icons */
.markdown-content h2::before,
.markdown-content h3::before {
margin-right: 8px;
}
/* Lists within markdown */
.markdown-content ul {
margin: 15px 0;
padding-left: 25px;
}
.markdown-content ul li {
margin: 10px 0;
line-height: 1.7;
}
/* Checkmark lists */
.markdown-content ul li:has(> :first-child:is(em, strong):contains("✓")),
.markdown-content ul li:has(> :first-child:is(em, strong):contains("✅")) {
list-style: none;
margin-left: -15px;
padding: 8px 12px;
background: #f0fdf4;
border-left: 3px solid var(--success);
border-radius: 5px;
}
/* Warning items */
.markdown-content ul li:has(> :first-child:is(em, strong):contains("⚠️")),
.markdown-content ul li:has(> :first-child:is(em, strong):contains("❌")) {
list-style: none;
margin-left: -15px;
padding: 8px 12px;
background: #fff7ed;
border-left: 3px solid var(--warning);
border-radius: 5px;
}
/* Step-by-step sections */
.markdown-content p:contains("STEP") {
font-weight: 600;
color: var(--primary);
margin-top: 20px;
font-size: 1.1rem;
}
/* Links in markdown - make them stand out */
.markdown-content a {
color: var(--primary);
text-decoration: none;
font-weight: 500;
padding: 2px 6px;
background: rgba(99, 102, 241, 0.1);
border-radius: 4px;
transition: all 0.2s;
}
.markdown-content a:hover {
background: var(--primary);
color: white;
}
/* Inline code or specific fields */
.markdown-content code {
background: #f3f4f6;
padding: 2px 8px;
border-radius: 4px;
font-size: 0.9em;
color: var(--danger);
font-family: 'Courier New', monospace;
}
/* Block quotes for important notes */
.markdown-content blockquote {
border-left: 4px solid var(--primary);
padding: 15px 20px;
margin: 20px 0;
background: #f9fafb;
border-radius: 5px;
}
/* Tables if any */
.markdown-content table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
}
.markdown-content table th {
background: var(--primary);
color: white;
padding: 12px;
text-align: left;
}
.markdown-content table td {
padding: 12px;
border-bottom: 1px solid var(--border);
}
.markdown-content table tr:nth-child(even) {
background: #f9fafb;
}
/* Horizontal rules between schemes/exams */
.markdown-content hr {
border: none;
border-top: 2px solid var(--border);
margin: 40px 0;
}
/* Nested lists for detailed steps */
.markdown-content ol {
margin: 15px 0;
padding-left: 30px;
}
.markdown-content ol li {
margin: 12px 0;
padding-left: 8px;
}
.markdown-content ol ol {
margin-top: 10px;
}
/* Highlight important sections */
.markdown-content p > strong:first-child {
display: inline-block;
min-width: 150px;
color: var(--primary);
}
/* Better spacing for content sections */
.markdown-content > * + * {
margin-top: 15px;
}
/* Contact/support boxes */
.markdown-content p:contains("📞"),
.markdown-content p:contains("📱"),
.markdown-content p:contains("📧") {
background: #eff6ff;
padding: 12px 16px;
border-radius: 8px;
border-left: 3px solid var(--primary);
}
.empty-state {
text-align: center;
padding: 40px;
color: var(--text-light);
}
.empty-state i {
font-size: 3rem;
margin-bottom: 15px;
opacity: 0.5;
}
.action-buttons {
display: flex;
justify-content: center;
gap: 20px;
margin-top: 40px;
}
/* History Page */
.history-section {
padding: 40px 0 80px;
}
.page-header {
text-align: center;
margin-bottom: 60px;
}
.page-header h1 {
font-size: 2.5rem;
color: var(--dark);
margin-bottom: 10px;
}
.history-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 30px;
}
.history-card {
background: white;
border-radius: 15px;
padding: 25px;
box-shadow: var(--shadow);
transition: transform 0.3s;
}
.history-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-lg);
}
.history-header {
display: flex;
gap: 15px;
margin-bottom: 20px;
}
.history-icon {
width: 50px;
height: 50px;
background: var(--gradient);
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
flex-shrink: 0;
}
.history-meta h3 {
color: var(--dark);
margin-bottom: 5px;
}
.timestamp {
color: var(--text-light);
font-size: 0.9rem;
}
.history-details {
margin-bottom: 20px;
}
.detail-row {
display: flex;
justify-content: space-between;
padding: 10px 0;
border-bottom: 1px solid var(--border);
}
.detail-label {
font-weight: 600;
color: var(--text-light);
}
.detail-value {
color: var(--dark);
}
.history-errors {
padding: 10px;
background: #fee2e2;
color: var(--danger);
border-radius: 8px;
font-size: 0.9rem;
margin-bottom: 20px;
}
.history-actions {
display: flex;
gap: 10px;
}
.btn-view,
.btn-download-small {
flex: 1;
padding: 10px;
border: none;
border-radius: 8px;
cursor: pointer;
font-weight: 500;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
transition: all 0.3s;
}
.btn-view {
background: var(--primary);
color: white;
}
.btn-view:hover {
background: var(--primary-dark);
}
.btn-download-small {
background: var(--light);
color: var(--text);
}
.btn-download-small:hover {
background: var(--border);
}
.empty-state-large {
text-align: center;
padding: 80px 40px;
}
.empty-state-large i {
font-size: 5rem;
color: var(--text-light);
opacity: 0.3;
margin-bottom: 20px;
}
.empty-state-large h2 {
font-size: 2rem;
margin-bottom: 15px;
}
/* Modal */
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
align-items: center;
justify-content: center;
z-index: 2000;
}
.modal-content {
background: white;
border-radius: 15px;
max-width: 800px;
max-height: 80vh;
width: 90%;
overflow: hidden;
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 30px;
border-bottom: 2px solid var(--border);
}
.modal-close {
background: none;
border: none;
font-size: 2rem;
cursor: pointer;
color: var(--text-light);
}
.modal-body {
padding: 30px;
max-height: 60vh;
overflow: auto;
}
.modal-body pre {
background: var(--light);
padding: 20px;
border-radius: 10px;
overflow: auto;
font-size: 0.9rem;
}
/* About Page */
.about-section {
padding: 40px 0 80px;
}
.about-hero {
text-align: center;
padding: 60px 0;
background: var(--gradient);
color: white;
border-radius: 20px;
margin-bottom: 60px;
}
.about-hero h1 {
font-size: 3rem;
margin-bottom: 15px;
}
.lead {
font-size: 1.3rem;
opacity: 0.95;
}
.about-content {
max-width: 900px;
margin: 0 auto;
}
.about-card {
background: white;
padding: 40px;
border-radius: 15px;
box-shadow: var(--shadow);
margin-bottom: 40px;
}
.about-card h2 {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 20px;
color: var(--primary);
}
.process-flow {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 30px;
margin-top: 30px;
}
.process-step {
text-align: center;
}
.step-number {
width: 60px;
height: 60px;
background: var(--gradient);
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
font-weight: 700;
margin: 0 auto 20px;
}
.agents-grid {
margin: 60px 0;
}
.agent-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 25px;
margin-top: 30px;
}
.agent-card {
background: white;
padding: 30px;
border-radius: 15px;
box-shadow: var(--shadow);
text-align: center;
transition: transform 0.3s;
}
.agent-card:hover {
transform: translateY(-5px);
}
.agent-card i {
font-size: 3rem;
color: var(--primary);
margin-bottom: 15px;
}
.tech-stack {
background: white;
padding: 40px;
border-radius: 15px;
box-shadow: var(--shadow);
}
.tech-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 25px;
margin-top: 30px;
}
.tech-item {
text-align: center;
padding: 20px;
background: var(--light);
border-radius: 10px;
}
.tech-item i {
font-size: 2.5rem;
color: var(--primary);
margin-bottom: 15px;
}
.feature-list {
list-style: none;
}
.feature-list li {
padding: 10px 0;
display: flex;
align-items: center;
gap: 12px;
}
.feature-list i {
color: var(--success);
}
/* Error Page */
.error-section {
min-height: 60vh;
display: flex;
align-items: center;
justify-content: center;
}
.error-container {
text-align: center;
padding: 60px;
}
.error-container i {
font-size: 5rem;
color: var(--danger);
margin-bottom: 20px;
}
.error-message {
font-size: 1.2rem;
color: var(--text-light);
margin: 20px 0 30px;
}
/* Footer */
.footer {
background: var(--dark);
color: white;
padding: 60px 0 20px;
margin-top: 80px;
}
.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 40px;
margin-bottom: 40px;
}
.footer-section h3,
.footer-section h4 {
margin-bottom: 20px;
}
.footer-section ul {
list-style: none;
}
.footer-section li {
padding: 8px 0;
display: flex;
align-items: center;
gap: 10px;
}
.text-muted {
opacity: 0.7;
}
.footer-bottom {
text-align: center;
padding-top: 30px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
opacity: 0.7;
}
/* Multi-Step Form Styles */
.step-indicator {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 40px;
padding: 20px 0;
}
.step {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
z-index: 1;
}
.step-circle {
width: 50px;
height: 50px;
border-radius: 50%;
background: var(--light);
border: 3px solid var(--border);
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 1.1rem;
color: var(--text-light);
transition: all 0.3s ease;
}
.step.active .step-circle {
background: var(--primary);
border-color: var(--primary);
color: white;
box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.1);
}
.step.completed .step-circle {
background: var(--success);
border-color: var(--success);
color: white;
}
.step.completed .step-circle::before {
content: '✓';
font-weight: 900;
}
.step-label {
font-size: 0.9rem;
font-weight: 600;
color: var(--text-light);
transition: color 0.3s;
}
.step.active .step-label {
color: var(--primary);
}
.step.completed .step-label {
color: var(--success);
}
.step-line {
flex: 1;
height: 3px;
background: var(--border);
margin: 0 10px;
position: relative;
top: -20px;
}
.form-step {
display: none;
animation: fadeIn 0.3s ease;
}
.form-step.active {
display: block;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.step-title {
font-size: 1.5rem;
margin-bottom: 30px;
color: var(--dark);
display: flex;
align-items: center;
gap: 12px;
padding-bottom: 15px;
border-bottom: 2px solid var(--light);
}
.form-row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-bottom: 20px;
}
input[type="text"],
input[type="number"],
select {
width: 100%;
padding: 12px 15px;
border: 2px solid var(--border);
border-radius: 10px;
font-family: inherit;
font-size: 1rem;
transition: border-color 0.3s;
background: white;
}
input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
outline: none;
border-color: var(--primary);
}
input.error {
border-color: var(--danger);
animation: shake 0.3s;
}
@keyframes shake {
0%, 100% { transform: translateX(0); }
25% { transform: translateX(-10px); }
75% { transform: translateX(10px); }
}
.checkbox-group {
display: flex;
flex-direction: column;
gap: 15px;
margin-top: 10px;
}
.checkbox-label {
display: flex;
align-items: center;
gap: 12px;
padding: 15px;
border: 2px solid var(--border);
border-radius: 10px;
cursor: pointer;
transition: all 0.3s;
background: white;
}
.checkbox-label:hover {
border-color: var(--primary);
background: rgba(99, 102, 241, 0.05);
}
.checkbox-label input[type="checkbox"] {
width: 20px;
height: 20px;
cursor: pointer;
}
.checkbox-label span {
font-weight: 500;
display: flex;
align-items: center;
gap: 8px;
}
.checkbox-label input[type="checkbox"]:checked + span {
color: var(--primary);
}
.form-navigation {
display: flex;
gap: 15px;
justify-content: flex-end;
padding-top: 30px;
border-top: 2px solid var(--light);
margin-top: 30px;
}
.info-box {
background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.1));
border-left: 4px solid var(--primary);
padding: 15px 20px;
border-radius: 10px;
display: flex;
gap: 12px;
margin-top: 20px;
}
.info-box i {
color: var(--primary);
font-size: 1.2rem;
margin-top: 2px;
}
.info-box strong {
color: var(--primary);
}
/* Responsive */
@media (max-width: 768px) {
.hero-title {
font-size: 2.5rem;
}
.nav-menu {
gap: 1rem;
}
.features-grid,
.agent-cards {
grid-template-columns: 1fr;
}
.history-grid {
grid-template-columns: 1fr;
}
}