:root {
            --primary-color: #2c7da0;
            --secondary-color: #a9d6e5;
            --accent-color: #01497c;
            --light-gray: #f8f9fa;
            --border-color: #eaeaea;
            --text-color: #333;
            --text-muted: #6c757d;
            --success-color: #28a745;
            --warning-color: #ffc107;
            --legal-color: #6f42c1;
            --calc-color: #e83e8c;
            --error-color: #dc3545;
        }
        .page-header {
            background: linear-gradient(135deg, rgba(169, 214, 229, 0.4) 0%, rgba(44, 125, 160, 0.4) 100%);
            padding: 1.5rem 0;
            margin-bottom: 2rem;
            border-bottom: 1px solid rgba(44, 125, 160, 0.2);
            position: relative;
            overflow: hidden;   color: var(--text-color);
        }
        .breadcrumb {
            background-color: transparent;
            padding: 0.5rem 0;
            margin-bottom: 0.5rem;
        }
        .breadcrumb-item a {
            color: var(--text-muted);
            text-decoration: none;
        }
        .breadcrumb-item.active {
            color: var(--text-color);
        }
        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(44, 125, 160, 0.15);
        }
        .form-control.is-invalid {
            border-color: var(--error-color);
            box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
        }
        .invalid-feedback {
            color: var(--error-color);
            font-size: 0.875rem;
            margin-top: 0.25rem;
        }
        .form-section {
            background-color: rgba(44, 125, 160, 0.05);
            border-radius: 8px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            border-left: 4px solid var(--primary-color);
        }
        .lease-document {
            padding: 20px;
            background-color: white;
            border-radius: 4px;
            border: 1px solid #eee;
            font-size: 0.95rem;
            margin: 10px 0;
            line-height: 1.8;
            font-family: 'Times New Roman', Times, serif;
        }
        .lease-header {
            text-align: center;
            margin-bottom: 30px;
            padding-bottom: 15px;
            border-bottom: 2px solid #000;
        }
        .lease-section {
            margin-bottom: 20px;
        }
        .lease-section-title {
            font-weight: bold;
            margin-bottom: 10px;
            text-decoration: underline;
        }
        .lease-clause {
            margin-bottom: 15px;
            text-align: justify;
        }
        .signature-area {
            margin-top: 50px;
            padding-top: 20px;
            border-top: 1px solid #000;
        }
        .signature-line {
            width: 300px;
            border-top: 1px solid #000;
            margin-top: 40px;
            display: inline-block;
        }
        .legal-tip {
            background-color: rgba(111, 66, 193, 0.05);
            border-left: 3px solid var(--legal-color);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
        .legal-tip i {
            color: var(--legal-color);
        }
        .clause-option {
            display: flex;
            align-items: center;
            padding: 0.75rem;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            margin-bottom: 0.75rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        .clause-option:hover {
            background-color: rgba(44, 125, 160, 0.05);
        }
        .clause-option.selected {
            background-color: rgba(44, 125, 160, 0.1);
            border-color: var(--primary-color);
        }
        .clause-checkbox {
            margin-right: 1rem;
        }
        .clause-title {
            font-weight: 600;
            margin-bottom: 0.25rem;
        }
        .clause-description {
            font-size: 0.9rem;
            color: var(--text-muted);
        }
        @media (max-width: 768px) {
            }
        .form-check-input:checked {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }
        .date-input-group {
            display: flex;
            align-items: center;
        }
        .date-input-group .document-preview-container {
            max-height: 600px;
            overflow-y: auto;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 20px;
            background-color: white;
        }
        .step-indicator {
            display: flex;
            justify-content: space-between;
            margin-bottom: 2rem;
            position: relative;
        }
        .step-indicator::before {
            content: "";
            position: absolute;
            top: 15px;
            left: 0;
            right: 0;
            height: 2px;
            background-color: var(--border-color);
            z-index: 1;
        }
        .step {
            position: relative;
            z-index: 2;
            text-align: center;
            flex: 1;
        }
        .step-circle {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background-color: white;
            border: 2px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 0.5rem;
            font-weight: 600;
            color: var(--text-muted);
        }
        .step.active .step-circle {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
            color: white;
        }
        .step-label {
            font-size: 0.85rem;
            color: var(--text-muted);
        }
        .step.active .step-label {
            color: var(--primary-color);
            font-weight: 600;
        }
        .tab-pane {
            padding-top: 1.5rem;
        }
        .nav-tabs .nav-tabs .clause-library {
            max-height: 400px;
            overflow-y: auto;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 15px;
        }
        .template-management {
            margin-top: 2rem;
            padding-top: 1.5rem;
            border-top: 1px solid var(--border-color);
        }
        .modal-content {
            border-radius: 8px;
            border: none;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        @media (max-width: 576px) {
            input[type="date"] {
                min-height: 44px;
            }
        }
        .storage-indicator {
            position: fixed;
            bottom: 20px;
            left: 20px;
            background-color: var(--primary-color);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            font-size: 0.875rem;
            z-index: 1000;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            display: none;
        }
        .template-list {
            max-height: 300px;
            overflow-y: auto;
        }
        .template-item {
            padding: 0.75rem;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            margin-bottom: 0.75rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        .template-item:hover {
            background-color: rgba(44, 125, 160, 0.05);
        }
        .template-item .template-name {
            font-weight: 600;
            margin-bottom: 0.25rem;
        }
        .template-item .template-date {
            font-size: 0.8rem;
            color: var(--text-muted);
        }
        .error-icon {
            color: var(--error-color);
            font-size: 0.875rem;
            margin-left: 0.5rem;
        }
        .required::after {
            content: " *";
            color: var(--error-color);
        }
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(255, 255, 255, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            display: none;
        }
        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 5px solid var(--light-gray);
            border-top: 5px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
            @media print {
                .lease-header {
                    text-align: center;
                    margin-bottom: 30px;
                    border-bottom: 2px solid #000;
                    padding-bottom: 15px;
                }
                .lease-section {
                    margin-bottom: 25px;
                    page-break-inside: avoid;
                }
                .lease-section-title {
                    font-weight: bold;
                    margin-bottom: 10px;
                    text-decoration: underline;
                    font-size: 13pt;
                }
                .lease-clause {
                    text-align: justify;
                    margin-bottom: 15px;
                }
                .signature-area {
                    margin-top: 50px;
                    padding-top: 20px;
                    border-top: 1px solid #000;
                    page-break-inside: avoid;
                }
                .signature-line {
                    width: 300px;
                    border-top: 1px solid #000;
                    margin-top: 40px;
                    display: inline-block;
                }
                .page-break {
                    page-break-before: always;
                }
                .no-break {
                    page-break-inside: avoid;
                }
                @page {
                    margin: 20mm;
                }
            }
            @media screen {
                }