/* Classic Windows-style CSS */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: Tahoma, Arial, sans-serif; font-size: 14px; background-color: #F5F5F5; color: #000000; line-height: 1.4; } .container { background-color: #FFFFFF; border: 1px solid #808080; margin: 10px; height: calc(100vh - 20px); display: flex; flex-direction: column; } .title-bar { background: linear-gradient(to bottom, #0A246A 0%, #A6CAF0 100%); color: white; padding: 4px 8px; border-bottom: 1px solid #808080; font-weight: bold; } .title-bar h1 { font-size: 16px; margin: 0; /* Live reload test comment */ } .toolbar { background-color: #F0F0F0; border-bottom: 1px solid #808080; padding: 4px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; } .toolbar button { background-color: #F0F0F0; border: 1px outset #D4D0C8; padding: 6px 12px; font-family: Tahoma, Arial, sans-serif; font-size: 14px; cursor: pointer; min-height: 32px; } .toolbar button:hover { background-color: #E8E5E2; } .toolbar button:active { border: 1px inset #D4D0C8; } .network-selector { display: flex; align-items: center; gap: 4px; margin-left: 8px; } .network-selector label { font-size: 14px; } .network-selector select, .network-selector input { font-family: Tahoma, Arial, sans-serif; font-size: 14px; border: 1px inset #D4D0C8; padding: 4px; background-color: white; min-height: 28px; } .main-content { flex: 1; padding: 4px; overflow: auto; } .computers-table { width: 100%; border-collapse: collapse; border: 1px solid #808080; background-color: white; font-size: 14px; } .computers-table th { background-color: #F0F0F0; border: 1px solid #808080; padding: 8px 12px; text-align: left; font-weight: bold; font-size: 14px; } .computers-table td { border: 1px solid #D4D0C8; padding: 8px 12px; vertical-align: middle; } .computers-table td:first-child { display: flex; align-items: center; gap: 4px; padding: 6px 8px; } .computers-table tr:nth-child(even) { background-color: #F9F9F9; } .computers-table tr:hover { background-color: #E0E0E0; } .computer-name { font-weight: bold; } .computer-name.online { color: #008000; } .computer-name.offline { color: #800000; } .computer-name.unknown { color: #808000; } /* Keep status class for scan modal compatibility */ .status { font-size: 14px; padding: 2px 6px; font-weight: bold; } .status.online { color: #008000; } .status.offline { color: #800000; } .status.unknown { color: #808000; } .wake-btn { background-color: #F0F0F0; border: 1px outset #D4D0C8; padding: 6px 8px; font-family: Tahoma, Arial, sans-serif; font-size: 16px; cursor: pointer; min-height: 32px; min-width: 32px; } .wake-btn:hover { background-color: #E8E5E2; } .wake-btn:active { border: 1px inset #D4D0C8; } .rename-btn { background-color: #F0F0F0; border: 1px outset #D4D0C8; padding: 6px 8px; font-family: Tahoma, Arial, sans-serif; font-size: 14px; cursor: pointer; min-height: 32px; min-width: 32px; } .rename-btn:hover { background-color: #E8E5E2; } .rename-btn:active { border: 1px inset #D4D0C8; } .delete-btn { background-color: #F0F0F0; border: 1px outset #D4D0C8; padding: 6px 8px; font-family: Tahoma, Arial, sans-serif; font-size: 14px; cursor: pointer; min-height: 32px; min-width: 32px; color: #800000; } .delete-btn:hover { background-color: #F2DEDE; color: #A94442; } .delete-btn:active { border: 1px inset #D4D0C8; } .no-computers { text-align: center; padding: 20px; color: #666; font-size: 14px; } /* Modal Styles */ .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); } .modal-content { background-color: #F0F0F0; border: 2px outset #D4D0C8; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 450px; font-family: Tahoma, Arial, sans-serif; font-size: 14px; } .modal-header { background: linear-gradient(to bottom, #0A246A 0%, #A6CAF0 100%); color: white; padding: 4px 8px; display: flex; justify-content: space-between; align-items: center; } .modal-header h2 { font-size: 16px; font-weight: bold; margin: 0; } .close { background: none; border: none; color: white; font-size: 16px; font-weight: bold; cursor: pointer; padding: 0; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; } .close:hover { background-color: rgba(255, 255, 255, 0.2); } .modal-body { padding: 8px; } .form-group { margin-bottom: 8px; } .form-group label { display: block; margin-bottom: 4px; font-size: 14px; } .form-group input { width: 100%; border: 1px inset #D4D0C8; padding: 6px; font-family: Tahoma, Arial, sans-serif; font-size: 14px; background-color: white; min-height: 28px; box-sizing: border-box; } .form-actions { background-color: #F0F0F0; border-top: 1px solid #808080; padding: 8px; display: flex; justify-content: flex-end; gap: 8px; } .form-actions button { background-color: #F0F0F0; border: 1px outset #D4D0C8; padding: 6px 20px; font-family: Tahoma, Arial, sans-serif; font-size: 14px; cursor: pointer; min-height: 32px; min-width: 90px; } .form-actions button:hover { background-color: #E8E5E2; } .form-actions button:active { border: 1px inset #D4D0C8; } /* Message styles */ .message { padding: 8px 12px; margin: 6px; border: 1px solid; font-size: 14px; } .message.success { background-color: #DFF0D8; border-color: #D6E9C6; color: #3C763D; } .message.error { background-color: #F2DEDE; border-color: #EBCCD1; color: #A94442; } .message.warning { background-color: #FCF8E3; border-color: #FAEBCC; color: #8A6D3B; } /* Scan table */ .scan-table { width: 100%; border-collapse: collapse; border: 1px solid #808080; margin-top: 8px; font-size: 14px; } .scan-table th { background-color: #F0F0F0; border: 1px solid #808080; padding: 8px; text-align: left; font-weight: bold; } .scan-table td { border: 1px solid #D4D0C8; padding: 8px; } .scan-table tr:nth-child(even) { background-color: #F9F9F9; } .scan-table tr:hover { background-color: #E0E0E0; } .add-btn { background-color: #F0F0F0; border: 1px outset #D4D0C8; padding: 4px 8px; font-family: Tahoma, Arial, sans-serif; font-size: 14px; cursor: pointer; min-height: 28px; min-width: 28px; } .add-btn:hover { background-color: #E8E5E2; } .add-btn:active { border: 1px inset #D4D0C8; } /* Loading animation */ .loading { display: inline-block; width: 16px; height: 16px; border: 2px solid #f3f3f3; border-top: 2px solid #3498db; border-radius: 50%; animation: spin 1s linear infinite; margin-right: 8px; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } #scan-loading { text-align: center; padding: 20px; } #scan-loading p { margin-top: 8px; font-size: 14px; } /* Scan controls */ .scan-controls { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px; border: 1px solid #D4D0C8; background-color: #F9F9F9; margin-bottom: 4px; } .select-all-container { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; } .select-all-container input[type="checkbox"] { margin: 0; } .add-selected-btn { background-color: #F0F0F0; border: 1px outset #D4D0C8; padding: 6px 16px; font-family: Tahoma, Arial, sans-serif; font-size: 14px; cursor: pointer; min-height: 32px; } .add-selected-btn:enabled:hover { background-color: #E8E5E2; } .add-selected-btn:active { border: 1px inset #D4D0C8; } .add-selected-btn:disabled { background-color: #E8E8E8; color: #808080; cursor: not-allowed; border: 1px solid #D4D0C8; } .device-checkbox { cursor: pointer; margin: 0; } .device-checkbox:disabled { cursor: not-allowed; opacity: 0.5; } /* Styles for existing/disabled devices in scan modal */ .scan-table tr.device-exists { background-color: #f5f5f5; color: #999; opacity: 0.7; } .scan-table tr.device-exists td { color: #999; } .scan-table tr.device-exists:hover { background-color: #f5f5f5; } .scan-table tr.device-exists .add-btn { background-color: #e8e8e8; color: #999; cursor: not-allowed; border: 1px solid #d4d4d4; } /* Wider scan modal for the additional column with proper scrolling */ #scanModal .modal-content { width: 700px; max-height: 90vh; display: flex; flex-direction: column; } #scanModal .modal-body { overflow-y: auto; max-height: 70vh; flex: 1; } /* Mobile responsiveness */ @media (max-width: 768px) { body { font-size: 16px; } .container { margin: 5px; height: calc(100vh - 10px); } .title-bar h1 { font-size: 18px; } .toolbar { padding: 8px; gap: 8px; } .toolbar button { font-size: 16px; padding: 8px 12px; min-height: 40px; flex: 1; min-width: 0; } .network-selector { flex-direction: column; align-items: stretch; gap: 4px; margin-left: 0; width: 100%; } .network-selector label { font-size: 16px; } .network-selector select, .network-selector input { font-size: 16px; padding: 8px; min-height: 36px; } .computers-table { font-size: 16px; } .computers-table th { font-size: 16px; padding: 10px 8px; } .computers-table td { padding: 10px 8px; } .computers-table td:first-child { display: flex; align-items: center; gap: 6px; padding: 8px 6px; justify-content: flex-start; } .status { font-size: 16px; padding: 4px 8px; } .wake-btn { font-size: 20px; padding: 8px 10px; min-height: 40px; min-width: 40px; } .rename-btn, .delete-btn { font-size: 16px; padding: 8px 10px; min-height: 40px; min-width: 40px; } .modal-content { width: calc(100vw - 20px); max-width: 500px; font-size: 16px; } .modal-header h2 { font-size: 18px; } .form-group label { font-size: 16px; margin-bottom: 6px; } .form-group input { font-size: 16px; padding: 10px; min-height: 36px; } .form-actions button { font-size: 16px; padding: 10px 20px; min-height: 40px; } .message { font-size: 16px; padding: 10px 12px; } .scan-table { font-size: 16px; } .scan-table th, .scan-table td { padding: 10px 6px; } .add-btn { font-size: 16px; padding: 6px 10px; min-height: 36px; min-width: 36px; } .select-all-container { font-size: 16px; } .add-selected-btn { font-size: 16px; padding: 8px 16px; min-height: 40px; } #scanModal .modal-content { width: calc(100vw - 20px); max-width: 100%; max-height: 90vh; } #scanModal .modal-body { max-height: 60vh; overflow-y: auto; } .no-computers { font-size: 16px; padding: 30px 20px; } /* Make table horizontally scrollable on small screens */ .main-content { overflow-x: auto; } .computers-table { min-width: 500px; } .computer-name { font-size: 15px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .computers-table td { padding: 6px 4px; } .computers-table td:first-child { padding: 4px 2px; gap: 2px; } }