  /* --- Modal Container & Overlay --- */
    .catelog-modal-container, .pdf-catelog-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999; /* High z-index to stay on top */
    }

    .catelog-hidden, .pdf-catelog-hidden {
        display: none !important;
    }

    /* --- Common Modal Box Styling --- */
    .catelog-modal-content, .pdf-catelog-modal {
        background: white;
        border-radius: 12px;
        width: 90%;
        max-width: 450px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        padding: 20px;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        animation: fadeInScale 0.2s ease-out;
    }

    @keyframes fadeInScale {
        from { opacity: 0; transform: scale(0.95); }
        to { opacity: 1; transform: scale(1); }
    }

    /* --- Headers & Titles --- */
    .catelog-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    .catelog-modal-header h3, .pdf-catelog-title {
        margin: 0;
        font-size: 1.25em;
        font-weight: 600;
        color: #333;
    }

    .pdf-catelog-subtitle {
        font-size: 0.85em;
        text-transform: uppercase;
        color: #888;
        letter-spacing: 0.5px;
        margin-bottom: 10px;
        margin-top: 5px;
        font-weight: 600;
    }

    /* --- List Items (Main Menu) --- */
    .catelog-download-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 5px;
        font-size: 1em;
        color: #444;
        border-bottom: 1px solid #f5f5f5;
    }

    .catelog-download-item:last-child {
        border-bottom: none;
    }

    .catelog-download-button {
        background: #f0f4ff;
        border: none;
        cursor: pointer;
        color: #424196;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
    }

    .catelog-download-button:hover {
        background-color: #424196;
        color: white;
    }

    /* --- Category List (Scrollable Area) --- */
    .category-list-container {
        max-height: 250px;
        overflow-y: auto;
        border: 1px solid #eee;
        border-radius: 6px;
        padding: 5px;
        background-color: #fafafa;
        margin-bottom: 15px;
    }
    
    .category-checkbox-item {
        display: flex;
        align-items: center;
        padding: 10px;
        border-bottom: 1px solid #eee;
        cursor: pointer;
        transition: background 0.1s;
    }
    
    .category-checkbox-item:hover {
        background-color: #eef2ff;
    }
    
    .category-checkbox-item:last-child {
        border-bottom: none;
    }

    .category-checkbox-item input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin-right: 12px;
        accent-color: #424196;
        cursor: pointer;
    }

    /* --- Profit Inputs --- */
    .pdf-catelog-radio-row {
        display: flex;
        gap: 20px;
        margin-bottom: 15px;
        padding: 10px 0;
    }

    .pdf-catelog-radio-label {
        display: flex;
        align-items: center;
        cursor: pointer;
        font-size: 14px;
        /* Ensure the label text is distinct */
        color: #333; 
        font-weight: 500;
    }

    /* FORCE RADIO BUTTON VISIBILITY */
    .pdf-catelog-radio-label input[type="radio"] {
        /* 1. Reset standard appearance to override Frameworks (Bootstrap, etc) */
        -webkit-appearance: radio !important;
        -moz-appearance: radio !important;
        appearance: radio !important;
        
        /* 2. Force Opacity and Display */
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
        
        /* 3. Reset positioning */
        position: static !important;
        margin-right: 8px !important; /* Space between radio and text */
        
        /* 4. Size and Color */
        width: 18px !important;
        height: 18px !important;
        accent-color: #424196; /* Sets the purple color */
        cursor: pointer;
        
        /* 5. Remove any framework borders/shadows that might look weird */
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
    }

    .pdf-catelog-input-group {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .pdf-catelog-input {
        background-color: #f5f5f5;
        border: 1px solid #ddd;
        border-radius: 6px;
        padding: 12px;
        font-size: 16px;
        outline: none;
    }
    .pdf-catelog-input:focus {
        border-color: #424196;
        background-color: #fff;
    }

    /* --- Action Buttons --- */
    .catelog-modal-footer, .pdf-catelog-actions {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        padding-top: 15px;
        margin-top: 10px;
        border-top: 1px solid #f0f0f0;
    }

    .pdf-catelog-btn-cancel, .catelog-close-button-footer {
        background: none;
        border: none;
        color: #666;
        font-weight: 500;
        cursor: pointer;
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .pdf-catelog-btn-cancel:hover {
        color: #333;
        background: #f5f5f5;
        border-radius: 4px;
    }

    .pdf-catelog-btn-download {
        background-color: #424196;
        color: #ffffff;
        border: none;
        border-radius: 6px;
        padding: 10px 24px;
        font-weight: 500;
        cursor: pointer;
        font-size: 14px;
        transition: opacity 0.2s;
    }

    .pdf-catelog-btn-download:hover {
        opacity: 0.9;
    }
    
    /* Close X Button */
    .catelog-close-button {
        background: none;
        border: none;
        font-size: 24px;
        line-height: 24px;
        cursor: pointer;
        color: #999;
    }
    .catelog-close-button:hover { color: #333; }
    
    
    /* Container: NOW CLICKABLE */
    .catelog-download-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 10px; /* Added slight horizontal padding */
        font-size: 1em;
        color: #444;
        border-bottom: 1px solid #f5f5f5;
        cursor: pointer; /* Shows hand cursor on the whole row */
        transition: background-color 0.2s ease;
        border-radius: 6px; /* Optional: looks nicer on hover */
    }

    /* Hover effect for the whole row */
    .catelog-download-item:hover {
        background-color: #f0f4ff;
    }

    /* Button: Purely decorative now, or highlighted via parent hover */
    .catelog-download-button {
        background: #f0f4ff;
        border: none;
        color: #424196;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        /* pointer-events: none;  <-- Optional: ensures the click passes through to the row */
    }

    .catelog-download-item:hover .fa-amazon {
        color: #FF9900; /* Amazon Orange */
    }

    /* When hovering the row, highlight the button too */
    .catelog-download-item:hover .catelog-download-button {
        background-color: #424196;
        color: white;
    }    
  