/* NBR Invoice Generator - Matching Main Site Aesthetics */ :root { --primary-black: #000000; --primary-dark: #0a0a0a; --secondary-dark: #1a1a1a; --accent-white: #ffffff; --accent-gray: #888888; --light-gray: #cccccc; --border-gray: #333333; --gradient-start: #000000; --gradient-end: #1a1a1a; } /* Password Screen Styles */ .password-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--primary-black); z-index: 10000; display: flex; align-items: center; justify-content: center; animation: fadeIn 0.3s ease; } .password-screen.success { animation: fadeOut 0.5s ease forwards; } .password-container { background: var(--secondary-dark); border: 1px solid var(--border-gray); padding: 60px; max-width: 500px; width: 90%; text-align: center; position: relative; overflow: hidden; } .password-container::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 70%); animation: rotate 20s linear infinite; } @keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .password-logo { margin-bottom: 30px; position: relative; z-index: 1; } .password-logo h1 { font-family: 'Bebas Neue', sans-serif; font-size: 3rem; color: var(--accent-white); letter-spacing: 0.05em; margin: 0; } .password-logo .highlight { background: linear-gradient(to right, #ffffff 0%, #cccccc 50%, #ffffff 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: shimmer 3s ease-in-out infinite; } .password-container h2 { color: var(--accent-white); font-size: 1.5rem; margin-bottom: 10px; font-weight: 700; letter-spacing: -0.5px; position: relative; z-index: 1; } .password-container p { color: var(--accent-gray); margin-bottom: 30px; position: relative; z-index: 1; } .password-input-group { display: flex; gap: 0; margin-bottom: 20px; position: relative; z-index: 1; } #password-input { flex: 1; padding: 15px 20px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-gray); border-right: none; color: var(--accent-white); font-size: 1rem; font-family: 'Inter', sans-serif; transition: all 0.3s ease; } #password-input:focus { outline: none; background: rgba(255, 255, 255, 0.08); border-color: var(--accent-white); } #password-input::placeholder { color: var(--accent-gray); opacity: 0.7; } #password-submit { padding: 15px 25px; background: var(--accent-white); color: var(--primary-black); border: none; cursor: pointer; font-size: 1.2rem; transition: all 0.3s ease; } #password-submit:hover:not(:disabled) { background: var(--light-gray); } #password-submit:disabled { opacity: 0.7; cursor: not-allowed; } .password-error { color: #ef4444; font-size: 0.9rem; margin-bottom: 20px; min-height: 20px; position: relative; z-index: 1; } .password-hint { color: var(--accent-gray); font-size: 0.85rem; opacity: 0.7; display: flex; align-items: center; justify-content: center; gap: 8px; position: relative; z-index: 1; } .password-hint i { font-size: 0.9rem; } /* Shake animation for invalid password */ @keyframes shake { 0%, 100% { transform: translateX(0); } 10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); } 20%, 40%, 60%, 80% { transform: translateX(5px); } } .shake { animation: shake 0.5s ease; } /* Fade animations */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } } /* Hide main content by default until authenticated */ body.auth-required .navbar, body.auth-required .invoice-hero, body.auth-required .invoice-generator-section, body.auth-required .cta-section, body.auth-required footer { display: none; } /* Invoice Hero Section */ .invoice-hero { position: relative; padding-top: 180px; padding-bottom: 80px; background: var(--primary-black); text-align: center; border-bottom: 1px solid var(--border-gray); background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255,255,255,0.03) 0%, transparent 50%), var(--primary-black); } .invoice-hero { position: relative; padding-top: 80px; padding-bottom: 25px; background: var(--primary-black); text-align: center; border-bottom: 1px solid var(--border-gray); background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255,255,255,0.03) 0%, transparent 50%), var(--primary-black); } .invoice-hero h1 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(3rem, 8vw, 5rem); color: var(--accent-white); letter-spacing: 0.05em; margin-bottom: 20px; background: linear-gradient(to right, #ffffff 0%, #cccccc 50%, #ffffff 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: shimmer 3s ease-in-out infinite; } @keyframes shimmer { 0% { background-position: -100% 0; } 100% { background-position: 100% 0; } } .invoice-hero p { color: var(--accent-gray); font-size: 1.25rem; max-width: 700px; margin: 0 auto; font-weight: 300; letter-spacing: 1px; } /* Invoice Generator Section */ .invoice-generator-section { padding: 100px 0; background-color: var(--primary-dark); position: relative; } .invoice-generator-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(to right, transparent, var(--border-gray), transparent); } .logo { font-size: 2.5rem; font-weight: 900; letter-spacing: 4px; text-transform: lowercase; } .logo sup { font-size: 0.9rem; font-weight: 400; letter-spacing: 0; opacity: 0.8; } .nav-menu { display: flex; gap: 40px; } /* Navigation */ .navbar { position: fixed; top: 0; width: 100%; background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(10px); z-index: 1000; padding: 20px 0; border-bottom: 1px solid var(--border-gray); } .navbar .container { display: flex; justify-content: space-between; align-items: center; } .section-header h2 { font-size: 3rem; text-align: center; margin-bottom: 20px; font-weight: 800; color: var(--accent-white); letter-spacing: -1px; } .section-header .subtitle { text-align: center; color: var(--accent-gray); font-size: 1.1rem; margin-bottom: 20px; opacity: 0.8; } /* Updated container for fullscreen form */ .invoice-container { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; } .invoice-form-container { width: 100%; } /* Invoice Form Styles */ .invoice-form { background-color: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0; overflow: hidden; } .form-section { width: 100%; padding: 40px; border-bottom: 1px solid var(--border-gray); transition: all 0.3s ease; position: relative; } .form-section:last-child { border-bottom: none; } .form-section:hover { background-color: rgba(255, 255, 255, 0.03); } .form-section h3 { margin-bottom: 30px; color: var(--accent-white); position: relative; padding-bottom: 15px; display: flex; align-items: center; font-weight: 700; font-size: 1.3rem; letter-spacing: -0.5px; } .form-section h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(to right, var(--accent-white), transparent); } .form-section h3 i { margin-right: 15px; color: var(--accent-gray); font-size: 1.2rem; opacity: 0.7; } /* Form Controls */ .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; color: var(--accent-white); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.5px; } .form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 16px; background-color: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-gray); color: var(--accent-white); font-size: 1rem; font-family: 'Inter', sans-serif; transition: all 0.3s ease; border-radius: 0; } .form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent-white); background-color: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1); } .form-group input[disabled], .form-group textarea[disabled], .form-group select[disabled] { opacity: 0.5; cursor: not-allowed; background-color: rgba(255, 255, 255, 0.02); } .form-group select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 9L1 4h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; -webkit-appearance: none; -moz-appearance: none; appearance: none; } .form-group textarea { resize: vertical; min-height: 100px; } /* Business Details Section Enhancement */ .form-section:first-of-type { background-color: rgba(255, 255, 255, 0.05); border-left: 2px solid var(--accent-white); } .form-section:first-of-type::before { content: 'NBR (UK) SERVICES LTD'; position: absolute; top: 15px; right: 40px; font-size: 0.75rem; color: var(--accent-gray); font-style: normal; text-transform: uppercase; letter-spacing: 2px; opacity: 0.5; } .form-row { display: flex; gap: 20px; margin-bottom: 20px; } .form-row .form-group { flex: 1; } .form-buttons { padding: 40px; background-color: var(--secondary-dark); display: flex; justify-content: center; gap: 20px; } /* Form Validation Styles */ input.invalid, textarea.invalid, select.invalid { border-color: #ef4444; background-color: rgba(239, 68, 68, 0.1); } input.invalid:focus, textarea.invalid:focus, select.invalid:focus { border-color: #ef4444; box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2); } /* Invoice Items */ .items-container { margin-bottom: 20px; max-height: 400px; overflow-y: auto; border: 1px solid var(--border-gray); background-color: rgba(255, 255, 255, 0.02); } .item-row { display: flex; gap: 15px; padding: 20px; border-bottom: 1px solid var(--border-gray); align-items: flex-end; transition: background-color 0.3s ease; } .item-row:hover { background-color: rgba(255, 255, 255, 0.03); } .item-row:last-child { border-bottom: none; } .item-row .form-group { flex: 1; } .item-row .form-group:nth-child(2), .item-row .form-group:nth-child(3), .item-row .form-group:nth-child(4) { flex: 0 0 120px; } .item-actions { display: flex; align-items: flex-end; padding-bottom: 15px; } .remove-item { background: none; border: none; color: var(--accent-gray); cursor: pointer; padding: 8px; font-size: 1rem; transition: all 0.3s ease; opacity: 0.5; } .remove-item:hover { opacity: 1; color: #ef4444; transform: scale(1.1); } .remove-item:disabled { opacity: 0.2; cursor: not-allowed; } .add-item-button, .secondary-button { padding: 12px 30px; margin-top: 10px; background: transparent; color: var(--accent-white); border: 1px solid var(--accent-white); cursor: pointer; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 0.9rem; transition: all 0.3s ease; text-decoration: none; display: inline-block; } .add-item-button:hover, .secondary-button:hover { background: var(--accent-white); color: var(--primary-black); } .add-item-button i { margin-right: 8px; } .preview-button { display: inline-block; padding: 15px 40px; background: var(--accent-white); color: var(--primary-black); text-decoration: none; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; transition: all 0.3s ease; position: relative; overflow: hidden; border: none; cursor: pointer; } .preview-button::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: var(--secondary-dark); transition: left 0.3s ease; z-index: -1; } .preview-button:hover { color: var(--accent-gray); } .preview-button:hover::before { left: 0; } .primary-button { padding: 10px 20px; background: var(--accent-white); color: var(--primary-black); border: none; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; transition: all 0.3s ease; cursor: pointer; font-size: 0.9rem; } .primary-button:hover { background: var(--accent-gray); } /* Modal Preview Styles */ .invoice-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.95); backdrop-filter: blur(10px); z-index: 1000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; } .invoice-modal-overlay.active { opacity: 1; visibility: visible; } .invoice-modal { width: 90%; max-width: 1000px; max-height: 90vh; background-color: var(--secondary-dark); border: 1px solid var(--border-gray); overflow: hidden; position: relative; transform: scale(0.95); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; } .invoice-modal-overlay.active .invoice-modal { transform: scale(1); opacity: 1; } .invoice-modal-header { padding: 20px 30px; background-color: var(--primary-black); color: var(--accent-white); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-gray); } .invoice-modal-header h3 { color: var(--accent-white); margin-bottom: 0; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.5px; } .invoice-modal-controls { display: flex; gap: 15px; } .close-modal { background: none; border: none; color: var(--accent-white); font-size: 1.5rem; cursor: pointer; transition: all 0.3s ease; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; opacity: 0.7; } .close-modal:hover { opacity: 1; transform: rotate(90deg); } .invoice-modal-content { padding: 40px; max-height: calc(90vh - 80px); overflow-y: auto; background-color: white; } /* Loading Spinner */ .fa-spinner { animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* CTA Section - Matching Main Site */ .cta-section { padding: 120px 0; background-color: var(--primary-black); text-align: center; position: relative; border-top: 1px solid var(--border-gray); } .cta-content h2 { font-size: 3rem; margin-bottom: 20px; color: var(--accent-white); font-weight: 800; letter-spacing: -1px; } .cta-content p { font-size: 1.2rem; color: var(--accent-gray); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; } /* Footer - Matching Main Site */ footer { background-color: var(--primary-black); color: var(--accent-white); padding: 80px 0 30px; border-top: 1px solid var(--border-gray); } .footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 60px; } .footer-col { flex: 1; min-width: 250px; } .footer-col h4 { margin-bottom: 20px; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.5px; } .footer-col ul { list-style: none; } .footer-col ul li { margin-bottom: 12px; } .footer-col ul li a { color: var(--accent-gray); text-decoration: none; transition: color 0.3s ease; font-size: 0.95rem; } .footer-col ul li a:hover { color: var(--accent-white); } .footer-logo { margin-bottom: 20px; } .footer-logo .logo-text { font-size: 2rem; font-weight: 800; color: var(--accent-white); } .footer-logo .highlight { background: linear-gradient(to right, #ffffff 0%, #cccccc 50%, #ffffff 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid var(--border-gray); color: var(--accent-gray); font-size: 0.9rem; } /* Invoice Template Styles (for the preview) */ .invoice-document { font-family: 'Inter', sans-serif; color: #333; position: relative; max-width: 800px; margin: 0 auto; box-sizing: border-box; padding: 20px; background: white; } /* Print optimized styles */ @media print { .invoice-document { padding: 0; max-width: 100%; width: 100%; } .invoice-document * { font-size: 10pt !important; line-height: 1.3 !important; } .invoice-logo { font-size: 14pt !important; } .invoice-title h2 { font-size: 16pt !important; } } /* A4 specific class for PDF generation */ .invoice-document-a4 { width: 210mm; height: 297mm; padding: 10mm; box-sizing: border-box; font-size: 10pt; line-height: 1.3; } .invoice-header { display: flex; justify-content: space-between; margin-bottom: 40px; } .invoice-logo { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; font-weight: 400; color: #000; letter-spacing: 0.05em; } .invoice-logo .highlight { color: #000; } .invoice-title { text-align: right; } .invoice-title h2 { font-size: 2.2rem; color: #000; margin-bottom: 10px; font-weight: 800; letter-spacing: -1px; } .invoice-meta { margin-top: 10px; text-align: right; } .invoice-meta-item { margin-bottom: 5px; } .invoice-meta-item span { font-weight: 600; } .invoice-parties { display: flex; justify-content: space-between; margin-bottom: 40px; } .invoice-from, .invoice-to { flex: 1; } .invoice-from h3, .invoice-to h3 { font-size: 1.2rem; color: #000; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #e5e5e5; font-weight: 700; } .invoice-address { white-space: pre-line; line-height: 1.6; } .invoice-contact { margin-top: 15px; } .invoice-contact p { margin-bottom: 5px; } .invoice-table { width: 100%; border-collapse: collapse; margin-bottom: 40px; font-size: 0.9rem; } .invoice-table th { background-color: #f8f8f8; padding: 15px; text-align: left; font-weight: 600; color: #000; border-bottom: 2px solid #000; } .invoice-table td { padding: 15px; border-bottom: 1px solid #e5e5e5; } .invoice-table tr:last-child td { border-bottom: none; } .invoice-table .item-amount { text-align: right; } .invoice-totals { width: 350px; margin-left: auto; } .invoice-totals-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--medium-gray); } .invoice-totals-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #e5e5e5; } .invoice-totals-row:last-child { border-bottom: none; font-weight: 700; color: #000; padding-top: 15px; border-top: 2px solid #000; } .invoice-totals-row.grand-total { font-size: 1.2rem; color: #000; } .invoice-payment { margin-top: 40px; border-top: 1px solid var(--medium-gray); padding-top: 30px; } .invoice-payment h3 { font-size: 1.2rem; color: #000; margin-bottom: 15px; font-weight: 700; } .payment-details { background-color: #f8f8f8; padding: 20px; border: 1px solid #e5e5e5; } .payment-details p { margin-bottom: 10px; } .payment-details p span { font-weight: 600; } .invoice-notes { margin-top: 40px; } .invoice-notes h3 { font-size: 1.2rem; color: #000; margin-bottom: 15px; font-weight: 700; } .invoice-notes p { white-space: pre-line; line-height: 1.6; } .invoice-terms { margin-top: 30px; font-size: 0.9rem; color: #666; } .invoice-terms h4 { font-size: 1rem; margin-bottom: 10px; } .invoice-footer { margin-top: 40px; text-align: center; color: #666; font-size: 0.9rem; font-style: italic; } /* Header Styles - Matching Main Site */ header { position: fixed; top: 0; left: 0; right: 0; background-color: rgba(0, 0, 0, 0.95); backdrop-filter: blur(10px); padding: 20px 0; z-index: 100; transition: all 0.3s ease; } header .container { display: flex; justify-content: space-between; align-items: center; } .logo { display: flex; align-items: center; } .logo a { text-decoration: none; } .logo-text { font-size: 2rem; font-weight: 800; color: var(--accent-white); letter-spacing: -1px; } .logo-text .highlight { background: linear-gradient(to right, #ffffff 0%, #cccccc 50%, #ffffff 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } /* Mobile Menu */ .mobile-menu-icon { display: none; color: var(--accent-white); font-size: 1.5rem; cursor: pointer; } @media (max-width: 768px) { .mobile-menu-icon { display: block; } } /* Container */ .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } /* Animations */ .animate-fadeInUp { animation: fadeInUp 0.8s ease-out; } @keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } /* Media Queries */ @media (max-width: 768px) { .form-row { flex-direction: column; gap: 10px; } .item-row { flex-wrap: wrap; } .item-row .form-group:nth-child(2), .item-row .form-group:nth-child(3), .item-row .form-group:nth-child(4) { flex: 1 0 calc(33.33% - 10px); } .item-actions { width: 100%; justify-content: flex-end; padding: 10px 0 0; } .invoice-modal-header { flex-direction: column; gap: 15px; padding: 15px; } .invoice-modal-content { padding: 20px; } .invoice-header, .invoice-parties { flex-direction: column; gap: 30px; } .invoice-title { text-align: left; } .invoice-meta { text-align: left; } } @media (max-width: 576px) { .invoice-modal { width: 95%; max-height: 95vh; } .invoice-modal-content { padding: 15px; } .item-row { padding: 15px 10px; } .item-row .form-group:nth-child(2), .item-row .form-group:nth-child(3), .item-row .form-group:nth-child(4) { flex: 1 0 100%; } .invoice-totals { width: 100%; } .form-section { padding: 20px; } .form-section:first-of-type { padding: 25px; } }