/* General Styles */ body { font-family: 'Arial', sans-serif; background: linear-gradient(135deg, #f4f4f4, #e0e7ff); color: #333; margin: 0; padding: 0; line-height: 1.6; } /* Container */ .container { max-width: 95%; width: 900px; margin: 20px auto; background: white; padding: 25px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); transition: transform 0.2s ease; } .container:hover { transform: translateY(-2px); } /* Headings */ h1 { text-align: center; color: #007bff; font-size: 2.2em; margin-bottom: 20px; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); } h2 { text-align: center; color: #0056b3; font-size: 1.5em; margin: 20px 0 10px; } /* Input Section */ .input-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; background: #f9f9f9; padding: 20px; border-radius: 10px; margin-bottom: 20px; border: 1px solid #e0e0e0; } .input-group { display: flex; flex-direction: column; } .input-group label { font-weight: bold; color: #444; margin-bottom: 5px; font-size: 0.9em; } .input-group input, .input-group select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 1em; transition: border-color 0.3s ease, box-shadow 0.3s ease; } .input-group input:focus, .input-group select:focus { border-color: #007bff; box-shadow: 0 0 5px rgba(0, 123, 255, 0.3); outline: none; } .input-group input[type="checkbox"] { width: auto; margin-top: 8px; } /* Buttons */ button { padding: 12px; background: linear-gradient(45deg, #007bff, #00c4ff); color: white; border: none; cursor: pointer; border-radius: 6px; font-size: 1em; font-weight: bold; transition: background 0.3s ease, transform 0.2s ease; display: block; width: 100%; margin-top: 15px; } button:hover { background: linear-gradient(45deg, #0056b3, #0096d6); transform: scale(1.02); } button:active { transform: scale(0.98); } /* Table */ .table-wrapper { overflow-x: auto; width: 100%; margin-bottom: 25px; } table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); } table th, table td { padding: 12px; border: 1px solid #ddd; text-align: center; } table th { background: linear-gradient(90deg, #007bff, #0056b3); color: white; font-weight: bold; text-transform: uppercase; font-size: 0.9em; } table tr:nth-child(even) { background: #f7f7f7; } table tr:hover { background: #e9f1ff; transition: background 0.2s ease; } table td button.remove-btn { padding: 6px 10px; background: #ff4444; color: white; border: none; border-radius: 4px; cursor: pointer; transition: background 0.3s ease; } table td button.remove-btn:hover { background: #cc0000; } /* Chart Containers */ .chart-container { width: 100%; max-width: 600px; height: 300px; margin: 25px auto; background: #fff; padding: 15px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); } /* Results Section */ #result { padding: 15px; background: #f9f9f9; border-radius: 8px; border: 1px solid #e0e0e0; } #result p, #result ul { margin: 10px 0; } #result h3 { color: #0056b3; margin-top: 15px; } /* Responsive Design */ @media (max-width: 768px) { .container { width: 90%; padding: 15px; margin: 10px auto; } .input-section { grid-template-columns: 1fr; padding: 15px; } .input-group { min-width: 100%; } button { font-size: 0.9em; padding: 10px; } table th, table td { padding: 8px; font-size: 0.85em; } .chart-container { max-width: 100%; height: 250px; } } @media (max-width: 480px) { h1 { font-size: 1.8em; } h2 { font-size: 1.2em; } .input-group label { font-size: 0.85em; } .input-group input, .input-group select { padding: 8px; font-size: 0.9em; } table th, table td { padding: 6px; font-size: 0.75em; } }