@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');

:root {
    --primary: #ff4500; /* Neon Orange */
    --dark: #121212;
    --light: #f4f4f4;
    --gray: #2c2c2c;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body {
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: var(--dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease;
}
.loader {
    border: 5px solid var(--gray);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(18, 18, 18, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--gray);
}
.logo { font-size: 24px; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 2px; }
nav ul { list-style: none; display: flex; gap: 20px; }
nav a { text-decoration: none; color: var(--light); font-weight: 600; transition: 0.3s; }
nav a:hover { color: var(--primary); }

/* Login Form */
.login-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, #121212, #1f1f1f);
}
.login-box {
    background: var(--gray);
    padding: 40px;
    border-radius: 15px;
    width: 350px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
}
.login-box h2 { margin-bottom: 20px; color: var(--primary); }
.input-group { margin-bottom: 15px; text-align: left; }
.input-group label { display: block; margin-bottom: 5px; font-size: 12px; }
.input-group input {
    width: 100%;
    padding: 10px;
    background: var(--dark);
    border: 1px solid #444;
    color: white;
    border-radius: 5px;
    outline: none;
}
.btn-login {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}
.btn-login:hover { background: #ff6a33; transform: scale(1.02); }

/* Product Grid */
.container { padding: 50px 5%; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 32px; }
.section-title span { color: var(--primary); }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: var(--gray);
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
    position: relative;
}
.card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(255, 69, 0, 0.2); }
.card img { width: 100%; height: 250px; object-fit: cover; }
.card-info { padding: 20px; }
.card-title { font-size: 18px; font-weight: 600; margin-bottom: 5px; }
.card-brand { font-size: 12px; color: #888; text-transform: uppercase; }
.card-price { font-size: 20px; color: var(--primary); font-weight: 800; margin-top: 10px; display: block; }
.btn-buy {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}
.btn-buy:hover { background: var(--primary); color: white; }

/* Dashboard Tables */
table { width: 100%; border-collapse: collapse; margin-top: 20px; background: var(--gray); }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid #444; }
th { background: #222; color: var(--primary); }
.action-btn { padding: 5px 10px; border-radius: 3px; text-decoration: none; font-size: 12px; margin-right: 5px; }
.btn-edit { background: #3498db; color: white; }
.btn-delete { background: #e74c3c; color: white; }
.btn-add { background: var(--primary); color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; display: inline-block; margin-bottom: 20px;}

/* Responsive */
@media (max-width: 768px) {
    .grid { grid-template-columns: 1fr; }
    nav { flex-direction: column; gap: 15px; }
}