print / static /css /generate.css
Dilip8756's picture
Upload 101 files
5546f2c verified
/* Generate Page Styles - Aadhaar Pro */
/* Only page-specific styles. Shared branded classes are in global.css */
/* ========================================
1. PAGE-SPECIFIC LAYOUT
======================================== */
.generate-container {
display: flex;
gap: 30px;
}
/* Generate-specific: sidebar-form takes flex space alongside preview */
.generate-container .sidebar-form {
flex: 1;
}
/* ========================================
2. GENERATE-SPECIFIC FORM CONTROLS
======================================== */
.gender-radio-group {
display: flex;
gap: 20px;
}
.gender-label {
display: flex;
align-items: center;
gap: 6px;
cursor: pointer;
font-size: 0.95rem;
color: var(--text-color);
}
/* Photo Upload Area */
.photo-upload-row {
display: flex;
align-items: center;
gap: 20px;
margin-bottom: 25px;
}
.photo-preview-container {
width: 80px;
height: 100px;
border-radius: 12px;
overflow: hidden;
background: var(--bg-color);
border: 2px dashed var(--border-color);
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
.photo-preview-container img {
width: 100%;
height: 100%;
object-fit: cover;
display: none;
}
.photo-preview-container img[src]:not([src=""]) {
display: block;
}
#photo-placeholder {
font-size: 2.5rem;
line-height: 1;
opacity: 0.4;
display: flex;
align-items: center;
justify-content: center;
}
.photo-preview-container img {
width: 100%;
height: 100%;
object-fit: cover;
display: none;
}
.photo-preview-container img[src]:not([src=""]) {
display: block;
}
#photo-placeholder {
font-size: 2.5rem;
line-height: 1;
opacity: 0.4;
display: flex;
align-items: center;
justify-content: center;
}
/* Print Button */
.btn-print {
width: 100%;
padding: 18px;
background: var(--primary-gradient);
color: var(--white);
border: none;
border-radius: 14px;
font-size: 1.1rem;
font-weight: 700;
cursor: pointer;
margin-top: 20px;
transition: var(--transition);
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
}
.btn-print:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px var(--shadow-primary-medium);
}
.btn-print:active {
transform: translateY(0);
}
/* ========================================
3. HIDDEN PREVIEW AREA
======================================== */
.preview-area {
position: fixed;
left: -9999px;
top: 0;
visibility: hidden;
pointer-events: none;
z-index: -1;
}
/* ========================================
4. HISTORY PANEL (generate-specific)
======================================== */
.history-fab {
position: fixed;
bottom: 32px;
right: 32px;
width: 56px;
height: 56px;
border-radius: 50%;
background: var(--primary-gradient);
color: #fff;
border: none;
cursor: pointer;
font-size: 1.3rem;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
transition: transform 0.2s ease, box-shadow 0.2s ease;
z-index: 1000;
}
.history-fab:hover {
transform: translateY(-3px) scale(1.05);
box-shadow: 0 12px 30px rgba(67, 97, 238, 0.5);
}
.history-fab .fab-badge {
position: absolute;
top: -4px;
right: -4px;
background: #ff4757;
color: #fff;
font-size: 0.65rem;
font-weight: 700;
min-width: 18px;
height: 18px;
border-radius: 9px;
display: flex;
align-items: center;
justify-content: center;
padding: 0 4px;
border: 2px solid #fff;
}
.history-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.45);
z-index: 1100;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
backdrop-filter: blur(3px);
}
.history-overlay.active {
opacity: 1;
pointer-events: all;
}
.history-drawer {
position: fixed;
top: 0;
right: 0;
bottom: 0;
width: 420px;
max-width: 95vw;
background: var(--card-bg);
z-index: 1200;
transform: translateX(100%);
transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
display: flex;
flex-direction: column;
box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
}
.history-drawer.open {
transform: translateX(0);
}
.history-drawer-header {
padding: 24px 28px;
border-bottom: 1px solid var(--border-color);
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-shrink: 0;
}
.history-drawer-title {
font-size: 1.2rem;
font-weight: 700;
color: var(--text-color);
margin: 0;
display: flex;
align-items: center;
gap: 10px;
}
.history-drawer-title i {
color: var(--primary-color);
}
.history-drawer-close {
background: var(--bg-color);
border: none;
border-radius: 10px;
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 0.9rem;
color: var(--text-muted);
transition: background 0.2s, color 0.2s;
}
.history-drawer-close:hover {
background: var(--primary-color);
color: #fff;
}
.history-drawer-body {
flex: 1;
overflow-y: auto;
padding: 20px 24px;
display: flex;
flex-direction: column;
gap: 14px;
}
.history-drawer-body::-webkit-scrollbar {
width: 6px;
}
.history-drawer-body::-webkit-scrollbar-track {
background: transparent;
}
.history-drawer-body::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 3px;
}
.history-empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12px;
flex: 1;
padding: 40px 20px;
color: var(--text-muted);
text-align: center;
}
.history-empty i {
font-size: 2.5rem;
opacity: 0.4;
}
.history-empty p {
font-size: 0.95rem;
margin: 0;
}
.history-card {
background: var(--bg-color);
border-radius: 16px;
padding: 16px 18px;
border: 1px solid var(--border-color);
transition: transform 0.15s, box-shadow 0.15s;
animation: cardIn 0.25s ease;
}
@keyframes cardIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.history-card:hover {
transform: translateY(-1px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.history-card-top {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 10px;
margin-bottom: 12px;
}
.history-card-name {
font-size: 1rem;
font-weight: 700;
color: var(--text-color);
line-height: 1.3;
}
.history-card-aadhaar {
font-size: 0.78rem;
color: var(--text-muted);
font-family: 'Courier New', monospace;
letter-spacing: 2px;
margin-top: 2px;
}
.history-card-time {
font-size: 0.72rem;
color: var(--text-muted);
white-space: nowrap;
flex-shrink: 0;
}
.history-card-actions {
display: flex;
gap: 8px;
}
.history-card-btn {
flex: 1;
padding: 9px 12px;
border-radius: 10px;
border: none;
font-size: 0.82rem;
font-weight: 600;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
transition: transform 0.15s, opacity 0.15s;
}
.history-card-btn:hover {
transform: translateY(-1px);
opacity: 0.9;
}
.history-card-btn.reprint {
background: var(--primary-gradient);
color: #fff;
}
.history-card-btn.delete {
background: #fff0f0;
color: #ff4757;
border: 1px solid #ffd4d8;
}
[data-theme="dark"] .history-card-btn.delete {
background: rgba(255, 71, 87, 0.12);
border-color: rgba(255, 71, 87, 0.3);
}
/* ========================================
5. RESPONSIVE
======================================== */
@media (max-width: 1024px) {
.generate-container {
flex-direction: column;
}
}