/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-red: #8B0000;
    --gold: #FFD700;
    --light-gold: #FFF8DC;
    --brown: #8B4513;
    --black: #000000;
    --white: #FFFFFF;
    --gray: #F5F5F5;
    --dark-gray: #333333;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: var(--white);
    color: var(--dark-gray);
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--brown) 100%);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 50px;
    height: 50px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--dark-red);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gold);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--gold);
    color: var(--dark-red);
}

.nav-menu a.active {
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
}

/* Carousel Styles */
.carousel {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 0;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 3s ease-in-out;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.carousel-slide.active {
    opacity: 1;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem;
    background: var(--gray);
    border-radius: 10px;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid var(--gold);
}

.feature-card h3 {
    color: var(--dark-red);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    background: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-gray);
    position: relative;
    overflow: hidden;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gold);
    color: var(--dark-red);
}

.btn-primary:hover {
    background: #FFC400;
    transform: scale(1.05);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark-red);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
}

.product-info {
    padding: 1rem;
}

.product-name {
    font-weight: bold;
    color: var(--dark-red);
    margin-bottom: 0.5rem;
}

.product-price {
    color: var(--brown);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--brown) 100%);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-red);
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-red);
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background: var(--dark-red);
    color: var(--white);
}

.table tr:hover {
    background: var(--light-gold);
}

/* Alert Styles */
.alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.notification-container {
    position: fixed;
    top: 5rem;
    right: 1rem;
    width: min(100%, 360px);
    z-index: 1100;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.notification-container.hide {
    opacity: 0;
    transform: translateY(-20px);
}

.notification-container .alert {
    pointer-events: auto;
}

.alert {
    padding: 1rem;
    margin: 0;
    border-radius: 5px;
    border-left: 4px solid;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}