* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; padding: 20px; color: #333; } .container { max-width: 1400px; margin: 0 auto; } header { text-align: center; color: white; margin-bottom: 30px; } header h1 { font-size: 2.2rem; margin-bottom: 8px; text-shadow: 0 2px 4px rgba(0,0,0,0.2); } .subtitle { font-size: 1.1rem; opacity: 0.95; } .main-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; } @media (max-width: 1024px) { .main-grid { grid-template-columns: 1fr; } } /* Form Section */ .form-section, .preview-section { background: white; border-radius: 12px; padding: 30px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); } h2 { font-size: 1.5rem; color: #2d3748; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #667eea; } .form-group { margin-bottom: 18px; } .form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: #4a5568; font-size: 0.95rem; } .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 14px; border: 2px solid #e2e8f0; border-radius: 8px; font-size: 1rem; transition: border-color 0.3s, box-shadow 0.3s; } .form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .form-group textarea { resize: vertical; font-family: inherit; } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; } .form-actions { display: flex; gap: 12px; margin-top: 25px; } .btn { padding: 12px 24px; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; } .btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; flex: 1; } .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4); } .btn-secondary { background: #e2e8f0; color: #4a5568; } .btn-secondary:hover { background: #cbd5e0; } .btn-print { background: #48bb78; color: white; margin-right: 10px; } .btn-print:hover { background: #38a169; } .btn-copy { background: #4299e1; color: white; } .btn-copy:hover { background: #3182ce; } /* Certificate Preview */ .preview-toolbar { margin-bottom: 20px; display: flex; gap: 10px; } .certificate { background: #fffef8; border: 3px solid #2d3748; border-radius: 4px; padding: 40px; position: relative; min-height: 500px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); } .cert-header { text-align: center; margin-bottom: 30px; border-bottom: 2px solid #2d3748; padding-bottom: 20px; } .company-name { font-size: 1.3rem; font-weight: 700; color: #2d3748; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; } .cert-title { font-size: 2rem; font-weight: 900; color: #1a202c; margin-bottom: 8px; letter-spacing: 3px; } .cert-subtitle { font-size: 1.1rem; color: #4a5568; font-style: italic; } .cert-body { line-height: 2; font-size: 1.05rem; } .cert-date { text-align: right; margin-bottom: 25px; color: #4a5568; } .cert-number { margin-left: 30px; font-weight: 600; } .cert-content p { margin-bottom: 15px; text-align: justify; } .cert-debt-block { background: #fff5f5; border-left: 4px solid #e53e3e; padding: 20px; margin: 25px 0; border-radius: 0 8px 8px 0; } .cert-debt-label { font-weight: 700; color: #c53030; margin-bottom: 10px; font-size: 1.1rem; } .cert-debt-amount { font-size: 1.3rem; color: #1a202c; margin-bottom: 8px; } .cert-debt-period { color: #4a5568; font-style: italic; } .cert-footer { margin-top: 40px; padding-top: 25px; border-top: 2px solid #e2e8f0; } .cert-purpose { color: #718096; font-style: italic; margin-bottom: 30px; text-align: center; } .cert-signature { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 40px; } .signature-line { flex: 1; } .sig-role { font-weight: 600; color: #2d3748; font-size: 1.1rem; } .signature-space { text-align: right; color: #718096; } .signature-space span { display: block; } .sig-date { margin-top: 8px; font-size: 0.95rem; } .cert-watermark { position: absolute; bottom: 20px; right: 30px; font-size: 0.85rem; color: #cbd5e0; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; transform: rotate(-5deg); } footer { text-align: center; color: white; opacity: 0.9; padding: 20px; } /* Print styles */ @media print { body { background: white; padding: 0; } .form-section, .preview-toolbar, header, footer { display: none !important; } .main-grid { display: block; } .preview-section { box-shadow: none; padding: 0; } .certificate { border: 2px solid #000; box-shadow: none; padding: 30px; } .btn { display: none; } }