Spaces:
Sleeping
Sleeping
| /* General Page Styles */ | |
| body { | |
| font-family: Arial, sans-serif; | |
| background-color: #fff; /* White background */ | |
| color: #000; /* Black text */ | |
| margin: 0; | |
| padding: 0; | |
| } | |
| /* Header, Navigation and Footer */ | |
| header, nav, footer { | |
| background-color: #000; /* Black background */ | |
| color: #fff; /* White text */ | |
| padding: 10px; | |
| text-align: center; | |
| } | |
| /* Headings */ | |
| h1, h2, h3, h4, h5, h6 { | |
| color: #000; /* Black headings */ | |
| margin: 20px 0 10px; | |
| } | |
| /* Links */ | |
| a { | |
| color: #000; /* Black links */ | |
| text-decoration: none; | |
| } | |
| a:hover { | |
| text-decoration: underline; | |
| } | |
| /* Container for content */ | |
| .container { | |
| width: 90%; | |
| max-width: 1200px; | |
| margin: 20px auto; | |
| } | |
| /* Form Styles */ | |
| form { | |
| background-color: #f5f5f5; /* Light grey background */ | |
| border: 1px solid #ccc; /* Grey border */ | |
| padding: 20px; | |
| border-radius: 5px; | |
| margin-bottom: 20px; | |
| } | |
| input[type="text"], | |
| input[type="email"], | |
| input[type="password"], | |
| input[type="number"], | |
| input[type="date"], | |
| select, | |
| textarea { | |
| width: 100%; | |
| padding: 8px; | |
| border: 1px solid #ccc; | |
| border-radius: 4px; | |
| margin: 5px 0 15px; | |
| box-sizing: border-box; | |
| } | |
| /* Buttons */ | |
| button, .btn { | |
| background-color: #000; /* Black background */ | |
| color: #fff; /* White text */ | |
| padding: 10px 20px; | |
| border: none; | |
| border-radius: 4px; | |
| cursor: pointer; | |
| font-size: 1rem; | |
| } | |
| button:hover, .btn:hover { | |
| background-color: #333; /* Dark grey on hover */ | |
| } | |
| /* Tables */ | |
| table { | |
| width: 100%; | |
| border-collapse: collapse; | |
| margin-bottom: 20px; | |
| } | |
| table, th, td { | |
| border: 1px solid #ccc; | |
| } | |
| th, td { | |
| padding: 10px; | |
| text-align: left; | |
| } | |
| th { | |
| background-color: #f0f0f0; /* Light grey header */ | |
| color: #000; | |
| } | |
| /* Inventory Table Specific Styles */ | |
| .inventory-table { | |
| margin-top: 10px; | |
| } | |
| .inventory-table td form { | |
| display: inline-block; | |
| margin: 0; | |
| padding: 0; | |
| border: none; | |
| background: none; | |
| } | |
| .inventory-table td form input[type="number"] { | |
| width: 80px; | |
| margin-right: 5px; | |
| } | |
| .inventory-table td form button { | |
| padding: 5px 10px; | |
| font-size: 0.9rem; | |
| } | |
| /* Low Stock Alerts */ | |
| .low-stock-alerts { | |
| margin-bottom: 20px; | |
| } | |
| .low-stock-alerts ul { | |
| list-style: none; | |
| padding: 0; | |
| } | |
| .low-stock-alerts li { | |
| background-color: #fdd; /* Light red background for alerts */ | |
| border: 1px solid #f99; /* Red border */ | |
| padding: 10px; | |
| margin-bottom: 10px; | |
| border-radius: 4px; | |
| } | |
| /* Flash Messages */ | |
| .flash-messages { | |
| list-style: none; | |
| padding: 0; | |
| } | |
| .flash-messages li { | |
| padding: 10px; | |
| margin-bottom: 10px; | |
| border: 1px solid #ccc; | |
| border-radius: 4px; | |
| } | |
| .flash-messages .error { | |
| background-color: #fdd; | |
| border-color: #f99; | |
| } | |
| .flash-messages .success { | |
| background-color: #dfd; | |
| border-color: #9f9; | |
| } | |
| /* Homepage (index.html) Specific Styles */ | |
| .homepage { | |
| text-align: center; | |
| margin-top: 100px; | |
| } | |
| .homepage h1 { | |
| font-size: 4rem; | |
| color: #000; | |
| } | |
| .homepage .get-started { | |
| display: inline-block; | |
| padding: 10px 20px; | |
| background-color: #000; | |
| color: #fff; | |
| text-decoration: none; | |
| border-radius: 5px; | |
| font-size: 1.5rem; | |
| margin-top: 20px; | |
| } | |
| /* Navigation Bar (if needed) */ | |
| .navbar { | |
| background-color: #000; | |
| padding: 10px; | |
| color: #fff; | |
| text-align: center; | |
| } | |
| .navbar a { | |
| margin: 0 10px; | |
| color: #fff; | |
| } | |
| .custombutton { | |
| display: inline-block; /* Make it behave like a button */ | |
| background-color: #000; /* Black background */ | |
| color: #fff; /* White text */ | |
| padding: 10px 20px; | |
| border: none; | |
| border-radius: 4px; | |
| cursor: pointer; | |
| font-size: 1rem; /* Change cursor on hover */ | |
| } | |
| .custombutton:hover { | |
| background-color: #636363; /* Darker grey on hover */ | |
| } | |
| /* Reset and Base Styles */ | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | |
| background-color: #f4f4f4; | |
| color: #333; | |
| padding: 20px; | |
| line-height: 1.6; | |
| } | |
| /* Header Styles */ | |
| h1 { | |
| font-size: 2em; | |
| margin-bottom: 20px; | |
| color: #2c3e50; | |
| } | |
| h2 { | |
| font-size: 1.5em; | |
| margin-top: 30px; | |
| margin-bottom: 10px; | |
| padding-bottom: 5px; | |
| border-bottom: 2px solid #ddd; | |
| color: #34495e; | |
| } | |
| /* Paragraph and Link Styles */ | |
| p { | |
| margin-bottom: 15px; | |
| } | |
| a { | |
| color: #3498db; | |
| text-decoration: none; | |
| } | |
| a:hover { | |
| text-decoration: underline; | |
| } | |
| /* Form Styles */ | |
| form { | |
| background: #fff; | |
| border: 1px solid #ddd; | |
| border-radius: 5px; | |
| padding: 20px; | |
| margin-bottom: 30px; | |
| } | |
| form label { | |
| display: block; | |
| margin-bottom: 5px; | |
| font-weight: bold; | |
| } | |
| form input[type="email"], | |
| form input[type="password"], | |
| form input[type="text"], | |
| form input[type="number"], | |
| form select { | |
| width: 100%; | |
| padding: 8px; | |
| margin-bottom: 15px; | |
| border: 1px solid #ccc; | |
| border-radius: 4px; | |
| } | |
| form button { | |
| display: inline-block; | |
| background: #3498db; | |
| color: #fff; | |
| padding: 10px 15px; | |
| border: none; | |
| border-radius: 4px; | |
| cursor: pointer; | |
| } | |
| form button:hover { | |
| background: #2980b9; | |
| } | |
| /* Table Styles */ | |
| table { | |
| width: 100%; | |
| border-collapse: collapse; | |
| background: #fff; | |
| margin-bottom: 30px; | |
| } | |
| table th, | |
| table td { | |
| padding: 10px; | |
| text-align: left; | |
| border: 1px solid #ddd; | |
| } | |
| table th { | |
| background: #f8f8f8; | |
| font-weight: bold; | |
| } | |
| /* Custom Button for Inventory Management */ | |
| .custombutton { | |
| display: inline-block; | |
| background: #27ae60; | |
| color: #fff; | |
| padding: 10px 20px; | |
| text-decoration: none; | |
| border-radius: 4px; | |
| margin-bottom: 30px; | |
| } | |
| .custombutton:hover { | |
| background: #219150; | |
| } | |
| /* Icon Integration using Font Awesome */ | |
| /* Logout link icon: add the class "logout-icon" to the <a> element if needed */ | |
| .logout-icon::before { | |
| content: "\f2f5"; /* Font Awesome icon code for "sign-out-alt" */ | |
| font-family: "Font Awesome 6 Free"; | |
| font-weight: 900; | |
| margin-right: 5px; | |
| } | |
| /* Inventory Management button icon */ | |
| .custombutton::before { | |
| content: "\f187"; /* Font Awesome icon code for "boxes" */ | |
| font-family: "Font Awesome 6 Free"; | |
| font-weight: 900; | |
| margin-right: 8px; | |
| } | |
| /* Flash Messages Styles */ | |
| ul { | |
| list-style: none; | |
| margin: 20px 0; | |
| padding: 0; | |
| } | |
| ul li { | |
| background: #ffeeba; | |
| border: 1px solid #f5c06f; | |
| padding: 10px; | |
| margin-bottom: 5px; | |
| border-radius: 4px; | |
| } | |
| /* Responsive Table Styling */ | |
| @media (max-width: 768px) { | |
| table, thead, tbody, th, td, tr { | |
| display: block; | |
| } | |
| table tr { | |
| margin-bottom: 15px; | |
| } | |
| table th { | |
| background: #f4f4f4; | |
| font-weight: bold; | |
| } | |
| table td { | |
| text-align: right; | |
| padding-left: 50%; | |
| position: relative; | |
| } | |
| table td::before { | |
| content: attr(data-label); | |
| position: absolute; | |
| left: 0; | |
| width: 45%; | |
| padding-left: 10px; | |
| font-weight: bold; | |
| text-align: left; | |
| } | |
| } | |