/* styles.css */ html { font-size: 14px; /* Reduce from default 16px */ } body { font-family: Arial, sans-serif; margin: 0; padding: 0; } .tabs-container { position: sticky; top: 0; z-index: 1000; /* Ensure it stays above other content */ background-color: #f1f1f1; /* Match the background color */ } .tabs { display: flex; flex-direction: column; /* Stack tabs vertically */ width: 150px; /* Adjust width of the tabs */ border-right: 1px solid #ddd; /* Add a vertical separator */ background-color: #f5f5f5; height: 100vh; /* Make tabs stretch vertically to fill the viewport */ overflow-y: auto; /* Enable scrolling if the tabs exceed the height */ position: fixed; /* Keep tabs fixed on the left side */ left: 0; /* Align tabs to the left edge */ top: 0; z-index: 1000; /* Ensure tabs are above other content */ } /* Individual Tab */ .tab { padding: 15px 20px; font-size: 16px; background: none; border: none; text-align: left; cursor: pointer; transition: background-color 0.3s; border-bottom: 1px solid #ddd; /* Add a separator between tabs */ width: 100%; } /* Active Tab */ .tab.active { background-color: #ddd; color: #000; font-weight: bold; } /* Hover Effect */ .tab:hover { background-color: #eee; } /* Optional: Remove last tab's margin */ .tabs .tab:last-child { margin-right: 0; } #content { margin-left: 150px; /* Match the width of the tabs */ padding: 20px; background-color: #fff; border: 1px solid #ccc; border-top: none; padding-top: 20px; } .modal { display: none; /* Hidden by default */ position: fixed; z-index: 1; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ } .modal-content { background-color: #fefefe; margin: 5% auto; /* Reduced top margin for more vertical space */ padding: 15px; /* Reduced padding */ border: 1px solid #888; width: 35%; /* Reduced width from 50% to 35% */ max-width: 500px; /* Added max-width for larger screens */ position: relative; border-radius: 8px; /* Optional: Rounded corners for a modern look */ } #close-modal { position: absolute; right: 10px; top: 10px; cursor: pointer; } /* Add padding and spacing for form fields inside the Edit Modal */ #edit-modal .form-container { display: flex; flex-direction: column; gap: 10px; /* Reduced gap between form elements */ padding: 0; /* Removed extra padding */ background-color: transparent; /* Remove background to match modal */ box-shadow: none; /* Remove shadow inside modal */ } /* Ensure form fields are styled properly */ #edit-modal .form-container .form-group { margin-bottom: 10px; /* Add spacing between individual form groups */ } #edit-modal .form-container label { margin-bottom: 3px; font-weight: bold; } #edit-modal .form-container input[type="text"], #edit-modal .form-container input[type="date"], #edit-modal .form-container input[type="url"], #edit-modal .form-container textarea, #edit-modal .form-container select { width: 100%; padding: 6px 8px; border: 1px solid #ccc; border-radius: 4px; } #edit-modal .form-container textarea { resize: vertical; min-height: 80px; } /* Buttons at the bottom of the form */ #edit-modal .form-container .form-buttons { display: flex; justify-content: flex-end; gap: 10px; /* Space between buttons */ } #edit-modal .form-container .form-buttons button { padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; } #edit-modal .form-container .form-buttons button[type="submit"] { padding: 8px 12px; /* Reduced padding */ font-size: 14px; /* Reduced font size */ background-color: #007bff; color: #fff; border: none; border-radius: 4px; cursor: pointer; } #edit-modal .form-container .form-buttons button[type="button"] { background-color: #dc3545; color: #fff; } #edit-modal .form-container .form-buttons button:hover { opacity: 0.9; } /* Style for the Add Record form */ #add-form { margin-bottom: 40px; padding: 10px; background-color: #f9f9f9; } tr.completed { background-color: lightgreen !important; } .suggested { background-color: yellow; } .watching { background-color: yellow; } /* Form Container */ .form-container-horizontal { max-width: 100%; margin: 20px auto; padding: 20px; background-color: #f1f1f1; /* Light background */ border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } .form-container-horizontal h3 { text-align: center; margin-bottom: 20px; } /* Form Row */ .form-row { display: flex; gap: 10px; /* space between the columns */ } /* Optional: make each form-group share space evenly */ .form-row .form-group { flex: 1; } /* Remove margin from the last form group in a row */ .form-row .form-group:last-child { margin-right: 0; } /* Labels */ .form-group label { display: block; margin-bottom: 5px; font-weight: bold; } /* Input fields */ .form-control { width: 100%; padding: 8px; box-sizing: border-box; } /* Checkbox and Buttons Row */ #edit-modal .form-container .form-check { display: flex; align-items: center; margin-bottom: 10px; } .form-check-input { margin-right: 5px; } .btn { padding: 10px 20px; font-size: 16px; cursor: pointer; border: none; border-radius: 4px; text-decoration: none; } .btn-primary { background-color: #007bff; color: #fff; } .btn-primary:hover { background-color: #0069d9; } .set-complete-button { background-color: #00eb0c; } .set-complete-button:hover { background-color: #038c0a; } .set-currently-watching-button { background-color: #f6fa02; } .set-currently-watching-button:hover { background-color: #bcbf02; } .delete-button { background-color: #f44336; } .delete-button:hover { background-color: #d32f2f; } .close-button { position: absolute; top: 10px; right: 15px; font-size: 24px; /* Reduced font size */ color: #aaa; cursor: pointer; } /* Responsive Design */ @media (max-width: 768px) { .form-row { flex-direction: column; } .form-row .form-group { margin-right: 0; margin-bottom: 15px; } .form-check { margin-bottom: 15px; } .tabs { flex-direction: column; } .tab { margin-bottom: 5px; } } /* Close Button */ .close-button { position: absolute; top: 10px; right: 20px; font-size: 30px; font-weight: bold; color: #aaa; cursor: pointer; } .close-button:hover { color: #000; } .record-table { width: 100%; border-collapse: collapse; font-family: Arial, sans-serif; } .record-table { width: 100%; border-collapse: collapse; font-family: Arial, sans-serif; border: 1px solid #000; /* Added black border to the table */ } /* Column widths using CSS selectors */ .record-table colgroup col:nth-child(1) { width: 3%; } /* # */ .record-table colgroup col:nth-child(2) { width: 35%; } /* Name */ .record-table colgroup col:nth-child(3) { width: 4%; }/* Type */ .record-table colgroup col:nth-child(4) { width: 37%; }/* Comment */ .record-table colgroup col:nth-child(5) { width: 6%; }/* Date completed */ .record-table colgroup col:nth-child(6) { width: 15%; }/* Actions */ /* Column widths using CSS selectors */ .record-table colgroup col:nth-child(1) #rewatch { width: 3%; } /* # */ .record-table colgroup col:nth-child(2) #rewatch { width: 40%; } /* Name */ .record-table colgroup col:nth-child(3) #rewatch { width: 47%; }/* Comment */ .record-table colgroup col:nth-child(4) #rewatch { width: 10%; }/* Actions */ /* Manga table */ .record-table colgroup col:nth-child(1) #manga { width: 3%; } /* # */ .record-table colgroup col:nth-child(2) #manga { width: 35%; } /* Name */ .record-table colgroup col:nth-child(4) #manga { width: 41%; }/* Comment */ .record-table colgroup col:nth-child(5) #manga { width: 6%; }/* Date completed */ .record-table colgroup col:nth-child(6) #manga { width: 15%; }/* Actions */ /* Styling table headers and cells */ .record-table th, .record-table td { border: 1px solid #000; /* Changed border color to black */ padding: 8px; } /* Style for table headers */ .record-table th { background-color: #f2f2f2; font-weight: bold; } .record-table tbody tr:hover { background-color: #e9e9e9; } /* Text alignment in columns */ .record-table th:nth-child(1), .record-table td:nth-child(1), .record-table th:nth-child(3), .record-table td:nth-child(3), .record-table th:nth-child(5), .record-table td:nth-child(5), .record-table th:nth-child(6), .record-table td:nth-child(6) { text-align: center; } /* Styling action buttons */ .record-table td button { padding: 4px 6px; /* Reduce button padding */ margin: 0; /* Remove margins */ font-size: 12px; /* Reduce font size */ } table { width: 100%; border-collapse: collapse; margin-top: 5px; } th, td { padding: 1px 2px; /* Reduced padding */ line-height: 0.8; /* Reduced line height */ font-size: 14px; /* Reduced font size */ vertical-align: middle; /* Center content vertically */ text-align: left; /* Existing alignment */ white-space: nowrap; /* Prevent text from wrapping */ overflow: hidden; /* Hide overflow */ text-overflow: ellipsis; /* Add ellipsis for overflowing text */ } th { background-color: #f2f2f2; cursor: pointer; background: linear-gradient(to bottom, lightgrey, white); } .record-table table, .record-table th, .record-table td { border: 1px solid gray; } #image-tooltip { position: absolute; border: 1px solid #ccc; background: #fff; padding: 5px; z-index: 1000; max-width: 200px; max-height: 300px; overflow: hidden; display: none; }