|
| 1 | +/* RESET */ |
| 2 | +* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; } |
| 3 | +body { background: #f4f7f2; color: #333; } |
| 4 | + |
| 5 | +/* NAVBAR & SIDEBAR */ |
| 6 | +.navbar { position: fixed; top: 0; left: 0; right: 0; background: #fff; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e5e5e5; z-index: 1000; } |
| 7 | +.navbar h2 { font-size: 20px; color: #2e4d2c; } |
| 8 | +.menu-btn { font-size: 24px; cursor: pointer; border: none; background: none; } |
| 9 | +.sidebar { position: fixed; top: 0; left: -100%; width: 250px; height: 100%; background: #2e4d2c; color: #fff; padding: 20px; transition: 0.3s ease; z-index: 2000; } |
| 10 | +.sidebar.active { left: 0; } |
| 11 | +.sidebar h2 { margin-top: 10px; } |
| 12 | +.sidebar ul { list-style: none; margin-top: 20px; } |
| 13 | +.sidebar ul li { margin: 15px 0; } |
| 14 | +.sidebar ul li a { text-decoration: none; color: #fff; font-size: 18px; display: block; transition: 0.3s; } |
| 15 | +.sidebar ul li a:hover { color: #b2e6a1; } |
| 16 | + |
| 17 | +/* DASHBOARD */ |
| 18 | +.dashboard { margin-top: 70px; padding: 20px; } |
| 19 | +.welcome h3 { font-size: 22px; color: #2e4d2c; } |
| 20 | +.tabs { display: flex; gap: 10px; margin: 20px 0; } |
| 21 | +.tab { padding: 8px 16px; border-radius: 20px; border: 1px solid #ccc; background: #fff; cursor: pointer; font-size: 14px; } |
| 22 | +.tab.active { background: #2e4d2c; color: #fff; border: none; } |
| 23 | +.section-title { font-size: 18px; font-weight: bold; margin-bottom: 10px; color: #2e4d2c; } |
| 24 | + |
| 25 | +/* PLANT CARDS */ |
| 26 | +.plant-cards { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 10px; } |
| 27 | +.plant-card { min-width: 150px; background: #fff; padding: 15px; border-radius: 16px; box-shadow: 0 2px 6px rgba(0,0,0,0.1); text-align: center; } |
| 28 | +.plant-card img { width: 100px; height: 100px; object-fit: cover; margin-bottom: 10px; } |
| 29 | +.plant-card .info { font-size: 12px; display: flex; justify-content: space-between; margin-top: 5px; } |
| 30 | + |
| 31 | + |
| 32 | +/* RELATED PLANTS */ |
| 33 | +.related-plants { margin-top: 20px; } |
| 34 | +.related-item { background: #fff; padding: 15px; border-radius: 16px; margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 2px 6px rgba(0,0,0,0.1); } |
| 35 | +.related-item img { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; margin-left: 15px; } |
| 36 | +.related-info { flex: 1; } |
| 37 | +.price { color: #2e4d2c; font-weight: bold; margin-top: 5px; } |
| 38 | + |
| 39 | +/* SCANNER */ |
| 40 | +.phone-screen { width: 100%; max-width: 400px; margin: auto; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; } |
| 41 | +.scanner-area { position: relative; margin: 20px auto; width: 250px; height: 250px; display: flex; align-items: center; justify-content: center; } |
| 42 | +.plant-img { width: 100%; border-radius: 12px; } |
| 43 | +.scanner-frame { position: absolute; top: 50%; left: 50%; width: 250px; height: 250px; border: 2px dashed #2e4d2c; border-radius: 12px; transform: translate(-50%, -50%); } |
| 44 | +.scanner-line { position: absolute; left: 0; right: 0; height: 2px; background: limegreen; animation: scan 2s linear infinite; } |
| 45 | +@keyframes scan { 0% { top: 0; } 100% { top: 100%; } } |
| 46 | +.circle-btn { width: 50px; height: 50px; border-radius: 50%; border: none; margin: 10px; font-size: 20px; background: #2e4d2c; color: white; } |
| 47 | + |
| 48 | + |
| 49 | +/* PLANT DETAILS */ |
| 50 | +.container { padding: 20px; } |
| 51 | +header { display: flex; justify-content: space-between; align-items: center; } |
| 52 | +.back-btn, .info-btn { background: none; border: none; font-size: 20px; cursor: pointer; } |
| 53 | +.plant-card { background: #fff; padding: 15px; border-radius: 12px; margin: 15px 0; } |
| 54 | +.plant-image img { width: 100%; border-radius: 12px; } |
| 55 | +.info-badges { display: flex; justify-content: space-around; margin: 20px 0; } |
| 56 | +.badge { background: #fff; padding: 10px; border-radius: 12px; text-align: center; flex: 1; margin: 0 5px; } |
| 57 | +.view-more { width: 100%; padding: 12px; background: #2e4d2c; color: #fff; border: none; border-radius: 12px; cursor: pointer; } |
| 58 | + |
| 59 | +/* LOGIN / INDEX PAGE */ |
| 60 | +.center-screen { |
| 61 | + display: flex; flex-direction: column; justify-content: center; align-items: center; |
| 62 | + height: 100vh; text-align: center; padding: 20px; |
| 63 | +} |
| 64 | +.center-screen h1 { font-size: 28px; margin-bottom: 10px; color: #2e4d2c; } |
| 65 | +.center-screen p { margin-bottom: 20px; } |
| 66 | +.btn { display: inline-block; padding: 12px 20px; background: #2e4d2c; color: #fff; text-decoration: none; border-radius: 8px; } |
| 67 | + |
| 68 | +/* SETTINGS PAGE */ |
| 69 | +.settings-page { margin-top: 80px; padding: 20px; } |
| 70 | +.settings-page h3 { margin-bottom: 20px; color: #2e4d2c; } |
| 71 | +.settings-group { background: #fff; padding: 15px; border-radius: 12px; margin-bottom: 15px; box-shadow: 0 2px 6px rgba(0,0,0,0.08); } |
| 72 | +.switch-row { display: flex; align-items: center; justify-content: space-between; font-size: 16px; color: #2e4d2c; } |
| 73 | +.settings-page .btn { margin-top: 10px; } |
| 74 | + |
| 75 | +.btn-small { |
| 76 | + display: inline-block; |
| 77 | + padding: 6px 12px; |
| 78 | + font-size: 14px; |
| 79 | + background: #2e4d2c; |
| 80 | + color: #fff; |
| 81 | + text-decoration: none; |
| 82 | + border-radius: 6px; |
| 83 | + margin-top: 10px; |
| 84 | +} |
| 85 | +.btn-small:hover { |
| 86 | + background: #3d6a3a; |
| 87 | +} |
| 88 | +.centered { |
| 89 | + display: flex; |
| 90 | + justify-content: center; |
| 91 | +} |
0 commit comments