body { margin: 0; font-family: Arial, sans-serif; background-color: rgba(0, 0, 0, 0.7); display: none; } .container { width: 95%; max-width: 1200px; margin: 40px auto; padding: 25px; background: #111; border-radius: 20px; box-shadow: 0 0 30px #00ffff88; } h1 { text-align: center; margin-bottom: 20px; font-size: 26px; color: #00f0ff; border-bottom: 1px solid #00f0ff; padding-bottom: 10px; letter-spacing: 1px; } #close-btn { background-color: #ff5555; color: #fff; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-weight: bold; display: block; margin: 0 auto 20px auto; box-shadow: 0 0 8px #ff555588; transition: background 0.2s ease-in-out; } #close-btn:hover { background-color: #e24444; } .room-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; justify-items: center; padding-top: 10px; } .room-card { background: #1b1b1b; border-radius: 14px; width: 180px; padding: 10px 8px; box-shadow: 0 0 12px #00ffff55; display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform 0.2s ease; } .room-card:hover { transform: scale(1.05); } .room-card img { width: 100%; height: 100px; object-fit: cover; border-radius: 10px; margin-bottom: 10px; } .room-info h2 { font-size: 16px; margin: 4px 0; color: #00f0ff; } .room-info p { font-size: 13px; margin: 2px 0; color: #ccc; } .room-info p.expiry { color: #f0f000; font-size: 12px; font-weight: bold; } .occupied-label { color: #ff4c4c; font-weight: bold; font-size: 14px; margin-top: 8px; display: block; } button { background: #00ffff; border: none; padding: 6px 10px; border-radius: 6px; font-size: 12px; font-weight: bold; color: #000; box-shadow: 0 0 6px #00ffff88; cursor: pointer; margin: 3px; transition: all 0.2s ease-in-out; width: 100%; } button:hover { background-color: #00d6d6; transform: scale(1.05); } button.manage-btn { background: #007bff; color: #fff; font-size: 12px; box-shadow: 0 0 6px #007bff88; } button.manage-btn:hover { background-color: #0056b3; } .shared-users { font-size: 12px; color: #aaa; margin-top: 8px; text-align: left; width: 100%; } .shared-users p { margin: 0 0 4px 0; color: #00f0ff; font-weight: bold; } .shared-users ul { list-style: none; padding-left: 0; margin: 0; } .shared-users li { display: flex; justify-content: space-between; align-items: center; background: #222; padding: 4px 8px; margin-bottom: 4px; border-radius: 6px; color: #ccc; } .shared-users button.remove-btn { background-color: #cc0000; color: white; border: none; border-radius: 4px; font-size: 12px; padding: 2px 6px; cursor: pointer; box-shadow: 0 0 6px #ff000055; transition: background 0.2s ease-in-out; } .shared-users button.remove-btn:hover { background-color: #ff1c1c; } /* Modal Styling */ .modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 1000; } .modal-content { background: #111; border: 2px solid #00f0ff; border-radius: 12px; padding: 20px 16px; width: 350px; text-align: center; color: #fff; box-shadow: 0 0 12px #00f0ff55; font-family: Arial, sans-serif; } .modal-content h2 { margin-top: 0; font-size: 20px; color: #00f0ff; margin-bottom: 15px; } .modal-content input[type="text"], #share-cid-dropdown { width: 100%; max-width: 100%; padding: 10px; margin: 10px 0; border-radius: 6px; border: 2px solid #00f0ff; background: #1c1c1c; color: #0ff; font-size: 15px; outline: none; box-sizing: border-box; } .modal-buttons { display: flex; justify-content: space-between; margin-top: 10px; } .modal-buttons button { background: #00f0ff; border: none; padding: 8px 18px; border-radius: 6px; color: #000; font-weight: bold; font-size: 14px; cursor: pointer; transition: background 0.2s ease; } .modal-buttons button:hover { background-color: #00c8e6; } #share-cid-dropdown { background-color: #000; color: cyan; border: 2px solid cyan; border-radius: 5px; } .modal-content button.cancel-btn { background-color: #ff5555; color: white; } /* Cancel Confirmation Modal */ #cancel-confirmation-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; } #cancel-confirmation-modal .modal-content { background: white; padding: 20px; border-radius: 8px; text-align: center; width: 300px; } #cancel-confirmation-modal .modal-buttons { margin-top: 20px; } #cancel-confirmation-modal .modal-buttons button { padding: 10px; margin: 5px; background-color: #ff5555; color: white; border: none; cursor: pointer; } #cancel-confirmation-modal .modal-buttons button:hover { background-color: #ff3333; } /* Rental Duration Modal */ #duration-modal .modal-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; } #duration-modal .modal-buttons button { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 120px; padding: 12px; font-weight: bold; background-color: #00ffff; color: black; border: none; border-radius: 6px; cursor: pointer; transition: transform 0.2s ease-in-out; } #duration-modal .modal-buttons button:hover { transform: scale(1.05); } .duration-text { font-size: 16px; margin-bottom: 2px; white-space: nowrap; } .price-text { font-size: 14px; color: #333; white-space: nowrap; } /* Responsive */ @media screen and (max-width: 768px) { .room-grid { grid-template-columns: 1fr; } .container { padding: 16px; } } /* Shared Users Modal Enhancements */ #shared-users-modal .modal-content { width: 400px; max-width: 90%; text-align: left; } #shared-users-content { margin-top: 10px; } #shared-users-content ul { list-style: none; padding-left: 0; margin: 0; } #shared-users-content li { display: flex; justify-content: space-between; align-items: center; background: #1c1c1c; padding: 6px 10px; border-radius: 6px; color: #ccc; margin-bottom: 6px; } #shared-users-content li span { font-size: 13px; } #shared-users-content .remove-btn { background-color: #cc0000; color: white; font-size: 12px; padding: 4px 8px; border: none; border-radius: 4px; cursor: pointer; transition: background 0.2s ease-in-out; box-shadow: 0 0 6px #ff000055; } #shared-users-content .remove-btn:hover { background-color: #ff1c1c; } #shared-users-modal .modal-buttons { justify-content: center; }