:root { --primary: #2F3C7E; /* Deep navy */ --secondary: #f8f9fa; /* Light gray */ --accent: #dc3545; /* Alert red */ --text: #212529; /* Dark gray */ --border: #dee2e6; /* Light gray border */ --hover-bg: #e9ecef; /* Medium gray */ --success: #28a745; /* Green for positive actions */ } /* Base Styles */ body { font-family: 'Segoe UI', system-ui, sans-serif; color: var(--text); line-height: 1.6; margin: 0; padding: 2rem; background: var(--secondary); } /* Header Styling */ h1 { color: var(--primary); font-size: 2rem; font-weight: 600; text-align: center; } h2, h3 { color: var(--primary); font-weight: 600; margin-bottom: 1.5rem; } /* Table Enhancements */ table { width: 100%; border-collapse: collapse; background: white; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border-radius: 8px; overflow: hidden; } th, td { padding: 1.25rem 1.5rem;padding: 1rem; text-align: left; border-bottom: 1px solid var(--border); position: relative; } th:not(:last-child), td:not(:last-child) { border-right: 1px solid var(--border); } th { background: var(--primary); color: white; font-weight: 500; } tr:hover { background: var(--hover-bg); } tr:last-child td { border-bottom: none; } /* Editable Cells */ .editable-cell { position: relative; } .editable-cell-input { width: 100%; border: none; padding: 0.5rem; background: transparent; font: inherit; color: inherit; transition: background 0.2s; } .editable-cell-input:focus { outline: none; background: rgba(47, 60, 126, 0.05); border-radius: 4px; } /* Suggestions List */ .editable-cell-suggestions { position: absolute; top: calc(100% + 0.5rem); left: 0; margin-top: 0.5rem; width: 100%; z-index: 1000; background: white; box-shadow: 0 2px 8px rgba(0,0,0,0.1); border-radius: 4px; max-height: 200px; overflow-y: auto; padding: 0.5rem 0; pointer-events: all; } .editable-cell-suggestions-li { padding: 0.75rem 1rem; cursor: pointer; font-size: 0.9em; color: var(--text); transition: background 0.1s ease; } .editable-cell-suggestions-li:hover { background: var(--hover-bg); } .editable-cell-suggestions .close-button { position: absolute; top: 0.75rem; right: 0.75rem; padding: 0.3rem; background: none; border: none; color: var(--text); cursor: pointer; opacity: 0.6; transition: opacity 0.2s; } .editable-cell-suggestions .close-button:hover { opacity: 1; color: var(--accent); } /* Container for cell content */ .cell-content { overflow: hidden; text-overflow:clip; white-space: nowrap; min-height: 2rem; display: flex; align-items: center; } /* Container for name cell content */ .name-cell-container { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 0.5rem 0; } /* Buttons & Icons */ button { background: var(--primary); color: white; border: none; padding: 0.5rem 1rem; border-radius: 4px; cursor: pointer; transition: opacity 0.2s; display: inline-flex; align-items: center; gap: 0.5rem; } button:hover { opacity: 0.9; } button.delete { background: var(--accent); color: white; padding: 0.5rem 0.75rem; border-radius: 4px; margin-left: 1rem; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 0.5rem; } button.delete:hover { background: #c82333; transform: translateY(-1px); } button.delete::before { content: "×"; font-size: 1.25rem; line-height: 1; } button.search-icon { background: transparent; color: var(--primary); margin-left: 0.5rem; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 4px; transition: all 0.2s ease; white-space: nowrap; } button.search-icon:hover { background: var(--hover-bg); border-color: var(--primary); } .fa-search { font-size: 0.9em; } /* Input Enhancements */ input[type="text"], textarea { border: 1px solid var(--border); border-radius: 4px; padding: 0.75rem; width: 100%; transition: border-color 0.2s; } input[type="text"]:focus, textarea:focus { border-color: var(--primary); outline: none; } /* Layout Improvements */ .container { max-width: 1200px; margin: 0 auto; padding: 2rem; } /* DataList Styling */ datalist { border: 1px solid var(--border); border-radius: 6px; margin-top: 0.5rem; } /* Add Property Section Styling */ .add-property-section { margin: 2rem 0; padding: 1.5rem; background: white; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); } #new-property { border: 2px solid var(--border); padding: 0.75rem 1rem; border-radius: 6px; width: 300px; margin-right: 1rem; transition: border-color 0.2s ease; } #new-property:focus { border-color: var(--primary); outline: none; } .add-property-button { background: var(--primary); color: white; padding: 0.75rem 1.5rem; border-radius: 6px; transition: all 0.2s ease; } .add-property-button:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(47, 60, 126, 0.1); }