html, body {
margin: 0;
padding: 0;
height: 100%;
font-family: "Poppins", sans-serif;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
background-size: 400% 400%;
animation: gradientBG 12s ease infinite;
}
@keyframes gradientBG {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
#manageStockSection {
display: none;
position: fixed;
inset: 0;
z-index: 9999;
display: flex;
justify-content: center;
align-items: center;
animation: fadeIn 0.6s ease;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(30px); }
to { opacity: 1; transform: translateY(0); }
}
.manage-stock-container {
background: linear-gradient(135deg, #1c1c1c, #2c2c2c);
box-shadow: 0 10px 30px rgba(0,0,0,0.6);
border-radius: 20px;
width: 420px;
padding: 30px;
text-align: center;
transform: scale(0.95);
opacity: 0;
transition: all 0.4s ease-in-out;
margin: auto;
animation: popup 0.5s ease forwards;
}
@keyframes popup {
from { transform: scale(0.8); opacity: 0; }
to { transform: scale(1); opacity: 1; }
}
.manage-stock-container.active {
transform: scale(1);
opacity: 1;
}
.title {
font-size: 2rem;
font-weight: 800;
background: linear-gradient(90deg, #ff9a9e, #fad0c4, #fad390);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-bottom: 25px;
}
.form-label {
font-size: 0.85rem;
color: #e2e8f0;
margin-bottom: 6px;
display: block;
text-align: left;
}
.form-control {
background: rgba(255,255,255,0.07);
border: 1px solid rgba(255,255,255,0.2);
color: #fff;
border-radius: 12px;
padding: 12px;
width: 100%;
margin-bottom: 18px;
transition: all 0.3s;
}
.form-control:focus {
border-color: #00ffe0;
box-shadow: 0 0 12px #00ffe080;
outline: none;
}
/* ===== Buttons ===== */
.btn {
display: block;
width: 100%;
padding: 14px;
font-size: 1rem;
font-weight: 600;
border-radius: 14px;
border: none;
margin-bottom: 14px;
cursor: pointer;
color: #fff;
position: relative;
overflow: hidden;
transition: all 0.4s ease;
}
.btn::before {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
transform: translateX(-100%);
transition: 0.5s;
}
.btn:hover::before {
transform: translateX(100%);
}
.btn-success {
background: linear-gradient(135deg, #00b09b, #96c93d);
box-shadow: 0 0 10px #00b09b80;
}
.btn-danger {
background: linear-gradient(135deg, #ff416c, #ff4b2b);
box-shadow: 0 0 10px #ff416c80;
}
.btn-primary {
background: linear-gradient(135deg, #36d1dc, #5b86e5);
box-shadow: 0 0 10px #36d1dc80;
}
.btn:hover {
transform: translateY(-2px) scale(1.02);
box-shadow: 0 0 18px rgba(0,0,0,0.6);
}
.btn-close {
position: absolute;
top: 10px;
right: 15px;
background: none;
border: none;
color: #fff;
font-size: 1.6rem;
cursor: pointer;
transition: color 0.2s ease;
}
.btn-close:hover {
color: #ff4d4d;
}
/* ===== Stock Page ===== */
#stockPage {
background: rgba(0,0,0,0.85);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: fixed;
inset: 0;
z-index: 9998;
animation: fadeIn 0.6s ease;
}
@keyframes fadeOut {
from { opacity: 1; }
to { opacity: 0; }
}
.stock-container {
background: linear-gradient(145deg, #1f1f1f, #283e51);
padding: 40px;
width: 85%;
max-width: 620px;
border-radius: 30px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
text-align: center;
margin: auto;
animation: slideUp 0.6s ease;
}
@keyframes slideUp {
from { opacity: 0; transform: translateY(50px); }
to { opacity: 1; transform: translateY(0); }
}
.return-btn {
font-size: 14px;
padding: 12px 22px;
border-radius: 12px;
background: transparent;
border: 2px solid #00ffe0;
color: #00ffe0;
font-weight: 600;
cursor: pointer;
margin-bottom: 20px;
transition: all 0.3s;
}
.return-btn:hover {
background: #00ffe0;
color: #000;
box-shadow: 0 0 12px #00ffe080;
}
.stock-container .title {
font-size: 28px;
background: linear-gradient(45deg, #ffffff, #00aeff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-weight: 900;
margin-bottom: 20px;
}
/* ===== Stock List ===== */
.stock-list {
list-style: none;
padding: 0;
margin: 0;
max-height: 360px;
overflow-y: auto;
}
.stock-list li {
background: rgba(255,255,255,0.08);
padding: 16px 20px;
margin-bottom: 14px;
border-radius: 14px;
display: flex;
justify-content: space-between;
align-items: center;
animation: fadeItem 0.5s ease forwards;
opacity: 0;
}
.stock-list li:nth-child(odd) { animation-delay: 0.1s; }
.stock-list li:nth-child(even) { animation-delay: 0.2s; }
@keyframes fadeItem {
from { transform: translateY(15px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.stock-list li:hover {
background: rgba(255,255,255,0.15);
transform: scale(1.03);
transition: all 0.3s;
}
.stock-list .model {
font-weight: 600;
color: #f1f5f9;
}
.stock-list .count {
background: linear-gradient(90deg, #00ffe0, #5b86e5);
padding: 6px 14px;
border-radius: 20px;
font-size: 0.85rem;
font-weight: bold;
color: #000;
}
/* ===== Custom Scrollbar ===== */
.stock-list::-webkit-scrollbar {
width: 6px;
}
.stock-list::-webkit-scrollbar-thumb {
background: linear-gradient(#36d1dc, #5b86e5);
border-radius: 6px;
}
.stock-list::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar {
width: 0px;
background: transparent;
}