/* Global Design System - Aadhaar Pro */ /* ONLY truly reusable branded classes that are used on 2+ pages */ @font-face { font-family: 'AadhaarHindi'; src: url('../font/NotoSansDevanagari-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; } @font-face { font-family: 'FontHindi'; src: url('../font/NotoSansDevanagari-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; } @font-face { font-family: 'AadhaarDigits'; src: url('../font/font-0052.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'AadhaarEnglish'; src: url('../font/font-0020.ttf') format('truetype'); font-weight: normal; font-style: normal; font-display: block; } /* ═══════════════════════════════════════════════════════════════ CSS VARIABLES ═══════════════════════════════════════════════════════════════ */ :root { --primary-color: #4361ee; --primary-light: #4895ef; --secondary-color: #3f37c9; --accent-color: #4cc9f0; --success: #4ade80; --error: #f72585; --bg-color: #f8fafc; --sidebar-bg: #0452c7; --sidebar-text: #94a3b8; --sidebar-active: #ffffff; --card-bg: #ffffff; --text-color: #1e293b; --text-muted: #64748b; --border-color: #e2e8f0; --glass-bg: rgba(255, 255, 255, 0.8); --glass-border: rgba(255, 255, 255, 0.2); --primary-gradient: linear-gradient(135deg, #4361ee 0%, #3f37c9 100%); --pink-gradient: linear-gradient(135deg, #ff4d6d 0%, #ff0050 100%); --sidebar-width: 260px; --sidebar-collapsed-width: 70px; --header-height: 70px; --transition-fast: transform 0.2s ease, box-shadow 0.2s ease; --transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, background-color 0.3s ease, opacity 0.3s ease; --transition-smooth: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease; --gradient-secondary: #3a0ca3; --shadow-light: rgba(0, 0, 0, 0.08); --shadow-medium: rgba(0, 0, 0, 0.1); --shadow-primary-light: rgba(67, 97, 238, 0.1); --shadow-primary-medium: rgba(67, 97, 238, 0.3); --shadow-primary-dark: rgba(67, 97, 238, 0.4); --white: #ffffff; --white-transparent: rgba(255, 255, 255, 0.05); --black-transparent: rgba(0, 0, 0, 0.5); --success-light: rgba(74, 222, 128, 0.1); --error-light: rgba(247, 37, 133, 0.1); } [data-theme='dark'] { --bg-color: #040914; --sidebar-bg: #0f172a; --card-bg: #0f172a; --text-color: #f1f5f9; --text-muted: #94a3b8; --border-color: #1e293b; --glass-bg: rgba(15, 23, 42, 0.8); } /* ═══════════════════════════════════════════════════════════════ RESET & BASE ═══════════════════════════════════════════════════════════════ */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Outfit', sans-serif; background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; overflow-x: hidden; transition: background-color 0.3s ease, color 0.3s ease; } /* ═══════════════════════════════════════════════════════════════ REUSABLE HOVER EFFECTS ═══════════════════════════════════════════════════════════════ */ .hover { position: relative; overflow: hidden; transition: var(--transition); border: 1px solid var(--border-color); } .hover::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary-color), var(--gradient-secondary)); opacity: 0; transition: opacity 0.3s ease; } .hover:hover { border-color: var(--primary-color); box-shadow: 0 10px 30px var(--shadow-light); transform: translateY(-3px); } .hover:hover::before { opacity: 1; } .hover::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary-color), var(--gradient-secondary)); opacity: 0; transition: opacity 0.3s ease; } .hover:hover { border-color: var(--primary-color); box-shadow: 0 10px 30px var(--shadow-light); transform: translateY(-3px); } .hover:hover::before { opacity: 1; } .btn-hover { transition: var(--transition); } .btn-hover:hover { transform: translateY(-2px); box-shadow: 0 4px 15px var(--shadow-medium); } .input-hover, .input-hover-effect { transition: var(--transition); } .input-hover:hover, .input-hover:focus, .input-hover-effect:hover, .input-hover-effect:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px var(--shadow-primary-light); } /* ═══════════════════════════════════════════════════════════════ LAYOUT SHELL - Used on ALL dashboard pages ═══════════════════════════════════════════════════════════════ */ .dashboard-wrapper { display: flex; min-height: 100vh; } .sidebar { width: var(--sidebar-width); background-color: var(--sidebar-bg); color: var(--sidebar-text); display: flex; flex-direction: column; position: fixed; height: 100vh; left: 0; top: 0; z-index: 1000; transition: var(--transition); } .sidebar-header { padding: 25px; border-bottom: 1px solid var(--white-transparent); position: relative; } .logo-area { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.4rem; color: var(--white); } .logo-text { transition: opacity 0.2s ease; } .sidebar-collapse-btn { position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; transition: transform 0.3s ease, background 0.2s ease; z-index: 10; } .sidebar-collapse-btn:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); } .sidebar-menu { padding: 20px 15px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; } .side-btn { display: flex; align-items: center; gap: 12px; padding: 12px 15px; border-radius: 12px; text-decoration: none; color: var(--sidebar-text); font-size: 0.95rem; font-weight: 500; transition: var(--transition); border: 1px solid transparent; } .side-btn i { min-width: 20px; text-align: center; font-size: 1.1rem; flex-shrink: 0; } .btn-text { white-space: nowrap; } .side-btn:hover { background: var(--white-transparent); color: var(--white); border: 1px solid var(--border-color); } .side-btn.active { background: var(--primary-gradient); color: var(--white); box-shadow: 0 4px 15px var(--shadow-primary-medium); border: 1px solid transparent; } .side-btn.logout-link { margin-top: auto; color: var(--error) !important; } /* =============================================================== MAIN CONTENT =============================================================== */ .main-content { flex-grow: 1; padding: 10px; margin-left: var(--sidebar-width); transition: var(--transition); min-width: 0; } .top-bar { height: var(--header-height); background: var(--glass-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; border-radius: 18px; padding: 0px 30px; margin: 5px 0; position: sticky; top: 0; z-index: 900; } .header-left { display: flex; align-items: center; gap: 20px; } .header-right { display: flex; align-items: center; gap: 20px; } .breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-muted); } .breadcrumb .active { color: var(--text-color); font-weight: 600; } .header-icon-btn { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--border-color); color: var(--text-color); cursor: pointer; border: none; transition: var(--transition); } .header-icon-btn:hover { transform: translateY(-2px); background: var(--primary-light); color: var(--white); } .wallet-pill { display: flex; align-items: center; gap: 8px; background: var(--primary-gradient); color: var(--white); padding: 8px 15px; border-radius: 20px; font-weight: 600; font-size: 0.9rem; } .hamburger-menu { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-color); background: none; border: none; } .sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--black-transparent); z-index: 950; display: none; } .content-body { padding: 30px; max-width: 1400px; margin: 0 auto; } /* ═══════════════════════════════════════════════════════════════ SIDEBAR FORM - Shared form card used on generate + download ═══════════════════════════════════════════════════════════════ */ .sidebar-form { background: var(--card-bg); padding: 35px; border-radius: 24px; border: 1px solid var(--border-color); box-shadow: 0 10px 40px var(--shadow-light); width: 100%; transition: var(--transition); } .sidebar-form h2 { font-size: 1.6rem; margin-bottom: 5px; color: var(--text-color); } /* ═══════════════════════════════════════════════════════════════ BUTTON SYSTEM - Branded, used on ALL pages ═══════════════════════════════════════════════════════════════ */ .sidebar-form { background: var(--card-bg); padding: 35px; border-radius: 24px; border: 1px solid var(--border-color); box-shadow: 0 10px 40px var(--shadow-light); width: 100%; transition: var(--transition); } .sidebar-form h2 { font-size: 1.6rem; margin-bottom: 5px; color: var(--text-color); } /* ═══════════════════════════════════════════════════════════════