kak-napisat-spravku-o-zadolz/style.css

416 lines
6.3 KiB
CSS

* {
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-company-header {
text-align: center;
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 1px solid #2d3748;
}
.company-full-name {
font-size: 1.2rem;
font-weight: 700;
color: #2d3748;
margin-bottom: 8px;
text-transform: uppercase;
letter-spacing: 1px;
}
.company-details {
font-size: 0.9rem;
color: #4a5568;
display: flex;
justify-content: center;
gap: 30px;
}
.cert-header {
text-align: center;
margin-bottom: 25px;
border-bottom: 2px solid #2d3748;
padding-bottom: 15px;
}
.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;
margin-bottom: 15px;
}
.cert-number-block {
display: flex;
justify-content: space-between;
margin-top: 15px;
padding: 0 20px;
font-weight: 600;
color: #2d3748;
}
.cert-recipient {
background: #f7fafc;
border-left: 4px solid #667eea;
padding: 12px 15px;
margin: 20px 0;
font-size: 1rem;
color: #2d3748;
}
.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-signatures-block {
display: flex;
justify-content: space-between;
gap: 40px;
margin-top: 40px;
}
.cert-signature-line {
flex: 1;
text-align: center;
}
.sig-title {
font-weight: 700;
color: #2d3748;
font-size: 1rem;
text-transform: uppercase;
letter-spacing: 1px;
margin-bottom: 15px;
}
.sig-name {
font-size: 1rem;
color: #1a202c;
min-height: 50px;
display: flex;
align-items: flex-end;
justify-content: center;
}
.sig-date {
margin-top: 10px;
font-size: 0.9rem;
color: #718096;
}
.cert-stamp-space {
margin-top: 30px;
text-align: right;
padding-right: 20px;
}
.stamp-placeholder {
display: inline-block;
width: 100px;
height: 100px;
border: 2px dashed #cbd5e0;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: #cbd5e0;
font-weight: 700;
font-size: 0.9rem;
margin-left: auto;
}
.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;
}
}