/* CSS Variables for Light/Dark Mode */ :root { --bg-color: #ffffff; --text-color: #333333; --section-bg: #f9f9f9; --border-color: #dddddd; --input-bg: #ffffff; --input-border: #cccccc; --muted-text: #666666; --timestamp-text: #999999; --description-text: #666666; } /* Dark mode variables */ html[data-theme="dark"] { --bg-color: #1a1a1a; --text-color: #e0e0e0; --section-bg: #2d2d2d; --border-color: #444444; --input-bg: #2d2d2d; --input-border: #555555; --muted-text: #aaaaaa; --timestamp-text: #888888; --description-text: #aaaaaa; } /* Base Layout */ body { font-family: Arial, sans-serif; max-width: 700px; margin: 50px auto; padding: 20px; line-height: 1.6; background-color: var(--bg-color); color: var(--text-color); } /* Typography */ h1 { color: var(--text-color); text-align: center; margin-bottom: 30px; } h3 { color: var(--text-color); margin-top: 0; } p { color: var(--text-color); } /* Buttons */ button { font-size: 16px; padding: 10px 20px; background-color: #007bff; color: white; border: none; border-radius: 4px; cursor: pointer; margin-right: 10px; } button:hover { background-color: #0056b3; } button:disabled { background-color: #6c757d; cursor: not-allowed; } /* Large button variant for special cases */ .btn-large { font-size: 18px; padding: 12px 24px; } /* Sections */ .section { margin: 30px 0; padding: 20px; border: 2px solid var(--border-color); border-radius: 8px; background-color: var(--section-bg); } /* Feature List (for index page) */ .feature-list { list-style: none; padding: 0; } .feature-list li { margin: 15px 0; padding: 15px; border: 1px solid var(--border-color); border-radius: 8px; background-color: var(--section-bg); } .feature-list a { text-decoration: none; color: #007bff; font-weight: bold; font-size: 18px; } .feature-list a:hover { text-decoration: underline; } .description { color: var(--description-text); margin-top: 8px; font-size: 14px; } /* Response Fields */ .response-field { min-height: 50px; padding: 15px; border: 2px solid var(--input-border); border-radius: 4px; background-color: var(--input-bg); color: var(--text-color); margin: 15px 0; font-size: 16px; word-wrap: break-word; } /* Special display for large numbers */ .display-large { font-size: 48px; font-weight: bold; color: var(--text-color); margin: 30px 0; padding: 20px; border: 2px solid var(--border-color); border-radius: 8px; background-color: var(--section-bg); text-align: center; } /* Centered response fields */ .response-field.centered { display: flex; align-items: center; justify-content: center; } /* Forms */ .form-group { margin: 15px 0; } label { display: block; margin-bottom: 5px; font-weight: bold; } input[type="text"] { width: 100%; padding: 10px; border: 2px solid var(--input-border); border-radius: 4px; font-size: 16px; box-sizing: border-box; background-color: var(--input-bg); color: var(--text-color); } /* Status Classes */ .loading { color: var(--muted-text); font-style: italic; } .response { color: #007bff; font-weight: bold; } .response.large { font-size: 18px; } .error { color: #dc3545; } /* Navigation */ .back-link { margin-top: 30px; text-align: center; } .back-link a { color: var(--muted-text); text-decoration: none; } .back-link a:hover { text-decoration: underline; } /* Utility Classes */ .info { color: var(--muted-text); font-size: 14px; margin-top: 10px; } .timestamp { color: var(--timestamp-text); font-size: 12px; margin-top: 5px; } .text-center { text-align: center; } /* Items Management Styles */ .container { max-width: 800px; margin: 0 auto; } .items-container { min-height: 100px; } .item-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; margin: 8px 0; border: 1px solid var(--border-color); border-radius: 6px; background-color: var(--input-bg); } .item-name { flex-grow: 1; font-size: 16px; color: var(--text-color); } .item-id { color: var(--muted-text); font-size: 14px; margin-right: 15px; } .delete-btn { background-color: #dc3545; padding: 6px 12px; font-size: 14px; margin: 0; } .delete-btn:hover { background-color: #c82333; } .form-group { display: flex; gap: 10px; align-items: center; } .form-group input[type="text"] { flex-grow: 1; width: auto; } .empty { color: var(--muted-text); font-style: italic; text-align: center; padding: 20px; } .back-button { color: var(--muted-text); text-decoration: none; font-size: 16px; } /* Dark Mode Toggle */ .dark-mode-toggle { position: fixed; top: 20px; right: 20px; background-color: var(--section-bg); border: 2px solid var(--border-color); border-radius: 25px; padding: 8px 16px; cursor: pointer; font-size: 16px; color: var(--text-color); transition: all 0.3s ease; z-index: 1000; } .dark-mode-toggle:hover { background-color: var(--border-color); } .back-button:hover { text-decoration: underline; }