.pdfDecorator {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #495057;
    line-height: 1.5;

    .section {
        background: white;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        margin-bottom: 24px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .section-title {
        background: #f8f9fa;
        border-bottom: 1px solid #dee2e6;
        padding: 16px 24px;
        font-weight: 600;
        font-size: 16px;
        color: #495057;
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .section-content {
        padding: 24px;
    }
    
    .column-container {
        border: 1px solid #dee2e6;
        border-radius: 8px;
        background: #fafbfc;
        overflow: hidden;
        padding: 10px;
    }

    .column-header {
        background: #e9ecef;
        padding: 12px 16px;
        font-weight: 600;
        font-size: 14px;
        color: #495057;
        text-align: center;
        border-bottom: 1px solid #dee2e6;
        margin-bottom: 10px;
    }
    
    .text-row {
        background: white;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        padding: 16px;
        margin-bottom: 12px;
        position: relative;
    }

    .text-row-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }
    
    .row-number {
        background: #e9ecef;
        color: #6c757d;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 500;
    }
    
    .add-row-area {
        border: 2px dashed #ced4da;
        border-radius: 6px;
        padding: 12px;
        text-align: center;
        cursor: pointer;
        transition: all 0.15s ease-in-out;
    }

    .add-row-area:hover {
        border-color: #28a745;
        background: #f8fff9;
    }
    
    .add-row-btn {
        background: none;
        border: none;
        color: #6c757d;
        font-size: 14px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 100%;
    }
    
    .preview-container {
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 20px;
        margin-top: 16px;
    }

    .preview-page {
        background: white;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        min-height: 500px;
        position: relative;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .header-preview, .footer-preview {
        padding: 12px 20px;
        border-left: 4px solid #007bff;
        min-height: 50px;
        display: flex;
        align-items: center;
    }
    
    .header-preview {
        border-bottom: 1px solid #dee2e6;
        background: #f8f9fa;
    }

    .footer-preview {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        border-top: 1px solid #dee2e6;
        background: #f8f9fa;
    }

    .preview-content {
        padding: 40px 24px 80px;
        min-height: 350px;
    }

    .logo-preview {
        position: absolute;
        pointer-events: none;
        z-index: 10;
    }
    
    .watermark-preview {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        opacity: 0.1;
        font-size: 48px;
        font-weight: bold;
        color: #6c757d;
        pointer-events: none;
        z-index: 5;
    }
    
    .hidden {
        display: none !important;
    }
    
    .form-label {
        display: block;
        margin-bottom: 5px;
        font-weight: 500;
        color: #495057;
        font-size: 14px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    /* New styles to match the screenshots */
    input[type="color"] {
        -webkit-appearance: none;
        border: none;
        height: 34px;
        width: 70px; /* Reduced width for color inputs */
    }
    input[type="color"]::-webkit-color-swatch-wrapper {
        padding: 0;
    }
    input[type="color"]::-webkit-color-swatch {
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    .checkbox-group .checkbox label {
        display: flex;
        align-items: left;
        font-weight: normal;
    }
    
    .checkbox-group .checkbox label input[type="checkbox"] {
        margin-right: 5px;
        margin-top: 0;
    }
    
    .row .form-group .row {
        margin-top: 0 !important;
    }

    .checkbox-group label.form-label {
        margin-bottom: 0;
    }

    .equal-height-panels {
        display: flex;
        flex-wrap: wrap; /* Allows columns to wrap on smaller screens */
    }
    .equal-height-panels > .col-sm-6, .equal-height-panels > .col-sm-4 {
        display: flex; /* Make the column itself a flex container */
        flex-direction: column; /* Stacks the content vertically */
    }
    .equal-height-panels .panel {
        flex: 1; /* This makes the panels grow to fill the available space */
    }

    .form-horizontal {
        margin-top: 10px;
    }
}