body { font-family: sans-serif; margin: 20px; background-color: #f4f4f4; color: #333; } h1 { color: #333; } input[type="file"] { margin-bottom: 20px; } /* #vcardRawContent { background-color: #eee; border: 1px solid #ccc; padding: 10px; margin-top: 20px; min-height: 50px; white-space: pre-wrap; word-wrap: break-word; } */ #contactsTable { width: 100%; border-collapse: collapse; margin-top: 20px; table-layout: fixed; /* Helps with column width control */ } #contactsTable th, #contactsTable td { border: 1px solid #ddd; padding: 8px; text-align: left; word-wrap: break-word; /* Break long words to prevent overflow */ } /* Style for the "Other Properties" column to ensure pre-wrap is effective */ #contactsTable td:last-child { white-space: pre-wrap; } #contactsTable th { background-color: #e9e9e9; color: #333; } #contactsTable tr:nth-child(even) { background-color: #f9f9f9; } #contactsTable tr:hover { background-color: #f1f1f1; /* Highlight row on hover */ cursor: pointer; /* Indicate clickable */ } /* Modal Styles */ .modal { display: none; /* Hidden by default */ position: fixed; /* Stay in place */ z-index: 1000; /* Sit on top */ left: 0; top: 0; width: 100%; /* Full width */ height: 100%; /* Full height */ overflow: auto; /* Enable scroll if needed */ background-color: rgb(0,0,0); /* Fallback color */ background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ padding-top: 60px; } .modal-content { background-color: #fefefe; margin: 5% auto; /* 5% from the top and centered */ padding: 20px; border: 1px solid #888; width: 80%; /* Could be more or less, depending on screen size */ max-width: 700px; border-radius: 8px; position: relative; } .close-button { color: #aaa; float: right; font-size: 28px; font-weight: bold; } .close-button:hover, .close-button:focus { color: black; text-decoration: none; cursor: pointer; } .modal h2, .modal h3 { margin-top: 0; color: #333; } .modal h3 { margin-top: 15px; border-bottom: 1px solid #eee; padding-bottom: 5px; } .modal ul { list-style-type: none; padding-left: 0; } .modal ul li { background-color: #f9f9f9; border: 1px solid #eee; padding: 8px; margin-bottom: 5px; border-radius: 4px; } .modal p { margin-bottom: 5px; } .modal ul li div { /* For nested divs within li, like formatted ADR */ padding: 2px 0; } .modal ul li div strong { /* For labels within formatted ADR */ display: inline-block; min-width: 120px; /* Adjust as needed for alignment */ margin-right: 5px; } #modalNote { /* Ensure note paragraph respects newlines from VCard */ white-space: pre-wrap; background-color: #f9f9f9; border: 1px solid #eee; padding: 8px; border-radius: 4px; min-height: 50px; /* Give it some space */ }