* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #0a0e27;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header.navbar {
    background: linear-gradient(135deg, #1a1f3a 0%, #2d3561 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid #00d4ff;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: #00d4ff;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-menu a {
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    position: relative;
}

.nav-menu a:hover {
    color: #00d4ff;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #00ff88);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.cart-count {
    background: #00d4ff;
    color: #0a0e27;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-left: 5px;
    font-weight: 600;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    color: #0a0e27;
    padding: 5rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    z-index: 2;
    position: relative;
}

.hero p {
    font-size: 1.3rem;
    z-index: 2;
    position: relative;
    opacity: 0.95;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.product-card {
    background: linear-gradient(135deg, #1a1f3a 0%, #2d3561 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.3);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card h3 {
    padding: 1.5rem 1rem 0.5rem;
    color: #00d4ff;
    font-size: 1.2rem;
}

.product-card .description {
    padding: 0 1rem;
    color: #a0a0a0;
    font-size: 0.95rem;
    flex-grow: 1;
}

.product-card .price {
    padding: 1rem;
    font-size: 1.8rem;
    font-weight: bold;
    color: #00ff88;
    text-shadow: 0 2px 10px rgba(0, 255, 136, 0.2);
}

.product-card .btn {
    margin: 0 1rem 1rem 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    color: #0a0e27;
    border: none;
    font-weight: 700;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00a8cc 0%, #00cc6a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.btn-add-cart {
    background: linear-gradient(135deg, #ff006e 0%, #ff4081 100%);
    color: white;
    width: calc(100% - 2rem);
    font-weight: 700;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #cc0055 0%, #cc3366 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 110, 0.3);
}

/* Forms */
.form-container {
    background: linear-gradient(135deg, #1a1f3a 0%, #2d3561 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #00d4ff;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    background-color: #0f1428;
    color: #e0e0e0;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #00d4ff;
    background-color: #1a1f3a;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background-color: rgba(255, 0, 110, 0.1);
    border: 1px solid rgba(255, 0, 110, 0.3);
    color: #ff4081;
}

.alert-success {
    background-color: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

table thead {
    background: linear-gradient(135deg, #2d3561 0%, #3d4575 100%);
}

table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #00d4ff;
    border-bottom: 2px solid #00d4ff;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

table tbody tr {
    transition: background-color 0.3s;
}

table tbody tr:hover {
    background-color: rgba(0, 212, 255, 0.05);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1f3a 0%, #2d3561 100%);
    color: #a0a0a0;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
    border-top: 2px solid #00d4ff;
}

.footer a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #00ff88;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .hero {
        padding: 3rem 1rem;
    }
}

/* Additional Styles */
.detail-container {
    background: linear-gradient(135deg, #1a1f3a 0%, #2d3561 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    margin: 2rem 0;
}

.detail-container img {
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: transform 0.3s;
}

.detail-container img:hover {
    transform: scale(1.02);
}

.detail-container h1 {
    color: #00d4ff;
    margin: 1.5rem 0;
    font-size: 2.2rem;
}

.detail-container h3 {
    color: #00ff88;
    margin: 1rem 0 0.5rem 0;
}

.detail-container p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: #00ff88;
    text-shadow: 0 2px 10px rgba(0, 255, 136, 0.2);
}

/* Admin Panel Styles */
.admin-header {
    background: linear-gradient(135deg, #1a1f3a 0%, #2d3561 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    margin-bottom: 2rem;
}

.admin-header h2 {
    color: #00d4ff;
    margin-bottom: 1rem;
}

.admin-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-content {
    background: linear-gradient(135deg, #1a1f3a 0%, #2d3561 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.admin-content h3 {
    color: #00d4ff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Loading and Transitions */
input[type="number"] {
    width: 80px !important;
}

button {
    transition: all 0.3s;
}

button:active {
    transform: scale(0.98);
}

/* Admin button styles */
.btn-delete {
    background: linear-gradient(135deg, #ff006e 0%, #ff4081 100%);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #cc0055 0%, #cc3366 100%);
}

.btn-edit {
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    color: #0a0e27;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #00a8cc 0%, #00cc6a 100%);
}
