/* ===== Modern Reset & Variables ===== */
:root {
    --primary: #2ecc71;
    --primary-dark: #27ae60;
    --secondary: #3498db;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --danger: #e74c3c;
    --warning: #f39c12;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: #f9fafb;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

h1 { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    font-weight: 500;
    color: var(--dark);
    transition: var(--transition);
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.btn-outline {
    border: 2px solid var(--primary);
    padding: 0.5rem 1.5rem !important;
    border-radius: 50px;
    color: var(--primary) !important;
}

.btn-outline:hover {
    background: var(--primary);
    color: white !important;
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 4rem 5%;
    background: linear-gradient(145deg, #ffffff 0%, #f0f9f0 100%);
}

.hero-content h1 { line-height: 1.2; margin-bottom: 1.5rem; }
.hero-content p { font-size: 1.2rem; color: #555; margin-bottom: 2rem; }
.hero-image img { max-width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Buttons */
.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(46,204,113,0.2);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46,204,113,0.3);
}

.btn-primary { background: var(--primary); }
.btn-danger { background: var(--danger); box-shadow: 0 4px 10px rgba(231,76,60,0.2); }
.btn-small { padding: 0.4rem 1rem; font-size: 0.9rem; }

/* Cards Grid */
.fitur-grid, .produk-grid, .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.fitur-card, .produk-card, .card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.fitur-card:hover, .produk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.icon { font-size: 3rem; display: block; margin-bottom: 1rem; }

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46,204,113,0.1);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
}
.table td { padding: 1rem; border-bottom: 1px solid #eee; }
.table tr:last-child td { border-bottom: none; }

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}
.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: var(--radius);
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}
.close { float: right; font-size: 1.5rem; cursor: pointer; }

/* Responsive */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 1rem; }
    .nav-menu { flex-wrap: wrap; justify-content: center; gap: 1rem; }
    .hero { grid-template-columns: 1fr; text-align: center; }
    h1 { font-size: 2rem; }
}

footer { text-align: center; padding: 2rem; background: white; margin-top: 4rem; }
.alert { padding: 1rem; border-radius: 8px; margin-bottom: 1rem; }
.alert-error { background: #f8d7da; color: #721c24; }
.alert-success { background: #d4edda; color: #155724; }