/* Global styles for all PDF conversions */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

h2 {
    color: #3498db;
    margin-top: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

p {
    margin-bottom: 15px;
}

.document-container {
    background-color: #fff;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.document-header {
    text-align: center;
    margin-bottom: 20px;
}

.document-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.9em;
    color: #7f8c8d;
}

.page-break {
    page-break-after: always;
    margin-bottom: 30px;
    border-bottom: 1px dashed #ccc;
}

/* Specific styles for legal documents */
.legal-document .section {
    margin-bottom: 20px;
}

.legal-document .signature-area {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
}

.legal-document .signature-block {
    width: 45%;
}

.legal-document .signature-line {
    border-top: 1px solid #000;
    margin-top: 40px;
    padding-top: 5px;
}

/* Specific styles for invoices */
.invoice {
    border-collapse: collapse;
    width: 100%;
}

.invoice th, .invoice td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.invoice th {
    background-color: #f2f2f2;
}

.invoice .total-row {
    font-weight: bold;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.invoice-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Specific styles for court documents */
.court-document .header-section {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
}

.court-document .case-info {
    margin-bottom: 20px;
}

.court-document .form-section {
    margin-bottom: 15px;
}

.court-document .checkbox {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 1px solid #000;
    margin-right: 5px;
    position: relative;
}

.court-document .checkbox.checked:after {
    content: "✓";
    position: absolute;
    top: -3px;
    left: 2px;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .document-container {
        padding: 15px;
    }
    
    .legal-document .signature-area {
        flex-direction: column;
    }
    
    .legal-document .signature-block {
        width: 100%;
        margin-bottom: 20px;
    }
}
