:root { --primary-color: #2e7d32; --primary-light: #60ad5e; --primary-dark: #005005; --secondary-color: #f5f5f5; --text-color: #333; --light-text: #fff; --error-color: #d32f2f; --success-color: #388e3c; --warning-color: #f57c00; --light-bg: #f5f5f5; --white: #ffffff; --border-color: #e0e0e0; --shadow-color: rgba(0, 0, 0, 0.1); } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } body { background-color: #f9f9f9; color: var(--text-color); line-height: 1.6; font-family: 'Roboto', sans-serif; min-height: 100vh; background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%); position: relative; } body::before { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 20% 20%, rgba(46, 125, 50, 0.05) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(76, 175, 80, 0.05) 0%, transparent 50%), radial-gradient(circle at 50% 50%, rgba(27, 94, 32, 0.03) 0%, transparent 50%); pointer-events: none; z-index: -1; } .container { width: 90%; max-width: 1200px; margin: 20px auto; padding: 30px; background: rgba(255, 255, 255, 0.95); border-radius: 15px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); } .container:hover { transform: none; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); } header { background-color: var(--primary-color); color: var(--light-text); padding: 15px 0; box-shadow: 0 2px 5px rgba(0,0,0,0.1); } .header-content { display: flex; justify-content: space-between; align-items: center; } .logo { font-size: 24px; font-weight: bold; } nav ul { display: flex; list-style: none; } nav ul li { margin-left: 20px; } nav ul li a { color: var(--light-text); text-decoration: none; font-weight: 500; } nav ul li a:hover { opacity: 1; } .btn { display: inline-block; padding: 12px 24px; background: var(--primary-color); color: white; border: none; border-radius: 8px; cursor: pointer; text-decoration: none; font-size: 1rem; font-weight: 500; transition: all 0.3s ease; position: relative; overflow: hidden; } .btn::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent); transform: translateX(-100%); transition: transform 0.6s ease; } .btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2); } .btn:hover::after { transform: translateX(100%); } .btn-secondary { background-color: #757575; } .btn-secondary:hover { background-color: #616161; } .card { background: rgba(255, 255, 255, 0.95); border-radius: 12px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); padding: 25px; margin-bottom: 25px; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); border: 1px solid rgba(255, 255, 255, 0.2); transition: transform 0.3s ease, box-shadow 0.3s ease; } .card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); } .form-group { margin-bottom: 20px; background: rgba(255, 255, 255, 0.8); padding: 20px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.2); transition: transform 0.3s ease; } .form-group:hover { transform: translateY(-2px); } .form-group label { display: block; margin-bottom: 5px; font-weight: 500; } input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"], select, textarea { width: 100%; padding: 12px; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 8px; background: rgba(255, 255, 255, 0.9); transition: all 0.3s ease; font-size: 1rem; } input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="number"]:focus, input[type="tel"]:focus, select:focus, textarea:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2); outline: none; transform: translateY(-1px); } .alert { padding: 15px 20px; border-radius: 8px; margin-bottom: 20px; position: relative; overflow: hidden; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); } .alert::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent); transform: translateX(-100%); animation: shimmer 2s infinite; } @keyframes shimmer { 100% { transform: translateX(100%); } } .alert-success { background: rgba(56, 142, 60, 0.95); color: white; } .alert-error { background: rgba(211, 47, 47, 0.95); color: white; } .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; padding: 20px 0; } .product-card { background: rgba(255, 255, 255, 0.95); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); transition: all 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.2); } .product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); } .product-image { height: 200px; background-color: #f5f5f5; display: flex; align-items: center; justify-content: center; overflow: hidden; } .product-image img { max-width: 100%; max-height: 100%; object-fit: cover; } .product-info { padding: 15px; } .product-title { font-size: 18px; margin-bottom: 10px; } .product-price { font-weight: bold; color: var(--primary-color); font-size: 20px; margin-bottom: 10px; } /* Dashboard styles */ .dashboard-container { display: grid; grid-template-columns: 250px 1fr; gap: 20px; } .sidebar { background-color: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); padding: 20px; } .sidebar ul { list-style: none; } .sidebar ul li { margin-bottom: 10px; } .sidebar ul li a { color: var(--text-color); text-decoration: none; display: block; padding: 8px 0; transition: color 0.3s; } .sidebar ul li a:hover { color: var(--primary-color); } .sidebar ul li a.active { color: var(--primary-color); font-weight: bold; } .main-content { background-color: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); padding: 20px; } /* Table styles */ .table { width: 100%; border-collapse: collapse; margin-top: 20px; } .table th, .table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #ddd; } .table th { background-color: #f5f5f5; font-weight: 600; } .table tr:hover { background-color: #f9f9f9; } /* Size grid styles */ .size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 12px; margin-top: 15px; } .size-item { border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 8px; padding: 10px; text-align: center; background: rgba(255, 255, 255, 0.9); transition: all 0.3s ease; } .size-item.in-stock { border-color: var(--success-color); background: rgba(56, 142, 60, 0.1); } .size-item.out-of-stock { border-color: var(--error-color); background: rgba(211, 47, 47, 0.1); opacity: 0.7; } .size-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } /* Custom scrollbar */ ::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.1); border-radius: 5px; } ::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 5px; border: 2px solid rgba(255, 255, 255, 0.8); } ::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); } /* Responsive styles are in responsive.css */ /* Toast Notification Styles */ .toast-container { position: fixed; top: 20px; right: 20px; z-index: 1000; } .toast { background: #333; color: white; padding: 12px 24px; border-radius: 4px; margin-bottom: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); display: flex; align-items: center; gap: 10px; transform: translateX(120%); transition: transform 0.3s ease-in-out; min-width: 250px; } .toast.show { transform: translateX(0); } .toast.success { background: #28a745; } .toast.error { background: #dc3545; } .toast i { font-size: 1.2em; }