body { font-family: Arial, sans-serif; margin: 0; padding: 0; background-color: #f4f4f9; color: #333; } h1 { color: #1e88e5; text-align: center; margin-bottom: 20px; } form { margin: 20px auto; max-width: 600px; padding: 20px; background: white; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); border-radius: 8px; } form input, form textarea, form button { display: block; width: 100%; margin-bottom: 15px; padding: 10px; font-size: 16px; border: 1px solid #ccc; border-radius: 4px; } form button { background-color: #1e88e5; color: white; border: none; cursor: pointer; transition: background-color 0.3s ease; } form button:hover { background-color: #1565c0; } ul { list-style: none; padding: 0; } ul li { background: #fff; margin: 10px 0; padding: 15px; border-radius: 5px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } table { width: 100%; border-collapse: collapse; } th, td { border: 1px solid #ddd; padding: 8px; } th { background-color: #f2f2f2; } /* Style for the grid container */ .grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Adjust the minimum width for cells */ gap: 1px; /* Gap between cells */ background-color: #ccc;/* Grid line color */ border: 1px solid #aaa; /* Outer border */ } /* Style for individual cells */ .editable-cell { display: block; /* Allow it to fill the parent container */ width: 100%; /* Full width of the allocated space */ height: 100%; /* Full height of the allocated space */ position: relative; } /* Style for the input field inside the editable cell */ .editable-cell-input { width: 100%; /* Ensure input takes up full width */ height: 100%; /* Ensure input takes up full height */ border: none; /* Remove input box borders */ padding: 8px; /* Add padding for spacing */ box-sizing: border-box; /* Ensure padding doesn't cause overflow */ font-size: 14px; /* Adjust font size */ text-align: left; /* Align text to the left */ outline: none; /* Remove outline for better UI */ background-color: transparent; /* Make background transparent */ } /* Optional: Style for the focused input field */ .editable-cell-input:focus { background-color: #e0f7fa; /* Light blue background when focused */ border: 1px solid #00796b; /* Green border when focused */ }