:root {
            --primary-color: #2c3e50;
            --secondary-color: #3498db;
            --accent-color: #e74c3c;
            --light-color: #ecf0f1;
            --dark-color: #2c3e50;
            --success-color: #27ae60;
            --warning-color: #f39c12;
            --error-color: #e74c3c;
            --input-color: #e1f5fe;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: #f5f5f5;
            color: var(--dark-color);
            line-height: 1.6;
            padding: 20px;
        }

        .widget-container {
            max-width: 500px;
            margin: 0 auto;
            background: white;
            border-radius: 8px;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

        .widget-header {
            background-color: #335b85;
            color: white;
            padding: 0 15px;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .widget-header h1 {
            font-size: 20px;
            margin-bottom: 5px;
        }
        .widget-header img {
            width: 110px;
            height: 140px;
            
        }

        .widget-body {
            padding: 15px;
        }

        .widget-section {
            background-color: var(--light-color);
            border-radius: 6px;
            padding: 12px;
            margin-bottom: 12px;
        }

        .widget-section h2 {
            font-size: 16px;
            margin-bottom: 12px;
            color: var(--primary-color);
            border-bottom: 1px solid #ddd;
            padding-bottom: 6px;
        }

        .form-group {
            margin-bottom: 12px;
        }

        .form-group label {
            display: block;
            margin-bottom: 4px;
            font-weight: 600;
            font-size: 13px;
        }

        .form-group input,
        .form-group select {
            width: 100%;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 13px;
            background-color: var(--input-color);
        }

        .dollar-input {
            position: relative;
        }

        .dollar-input:before {
            content: '$';
            position: absolute;
            left: 16px;
            top: 71%;
            transform: translateY(-50%);
            z-index: 1;
            font-size: 13px;
        }

        .dollar-input input {
            padding-left: 25px;
        }

        .locked-input {
            background-color: #f0f0f0 !important;
            color: #333;
            font-weight: bold;
            cursor: not-allowed;
        }

        .result-item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            padding-bottom: 4px;
            border-bottom: 1px dashed #ddd;
            font-size: 13px;
        }

        .result-item .label {
            font-weight: 600;
        }

        .result-item .value {
            font-weight: 700;
        }

        .error-message {
            color: var(--error-color);
            font-size: 11px;
            margin-top: 4px;
            font-weight: 600;
        }

        .positive {
            color: var(--success-color);
        }

        .negative {
            color: var(--error-color);
        }

        .zoning-info {
            font-size: 11px;
            margin-top: 8px;
            color: #666;
        }

        .highlight {
            font-weight: bold;
            padding: 2px 4px;
            border-radius: 3px;
        }

        .highlight-success {
            background-color: rgba(39, 174, 96, 0.1);
            color: var(--success-color);
        }

        .highlight-error {
            background-color: rgba(231, 76, 60, 0.1);
            color: var(--error-color);
        }

        .finance-note {
            font-size: 11px;
            font-style: italic;
            text-align: center;
            margin-top: 10px;
            color: #666;
        }

        .comparable-sales {
            margin-top: 15px;
            font-size: 12px;
        }

        .comparable-sales h3 {
            font-size: 14px;
            color: var(--primary-color);
            border-bottom: 1px solid #ddd;
            padding-bottom: 6px;
            margin-bottom: 10px;
        }

        .sales-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 8px;
            font-size: 11px;
        }

        .sales-table th, 
        .sales-table td {
            padding: 8px 5px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }

        .sales-table th {
            background-color: var(--primary-color);
            color: white;
            font-weight: 600;
        }

        .sales-table tr:nth-child(even) {
            background-color: #f8f8f8;
        }

        .print-button {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 20px auto;
    padding: 12px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
}

.print-button:hover {
    background-color: #3498db;
}

@media print {
    body * {
        visibility: hidden;
    }
    .widget-container, .widget-container * {
        visibility: visible;
    }
    .widget-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        border: none;
    }
    .print-button {
        display: none;
    }
}
