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

.container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    text-align: center;
}

.calculator-page {
    padding: 20px 10px;
}

.header {
    margin-bottom: 20px;
}

.logo {
    width: 150px;
    height: auto;
}

h1 {
    font-size: 28px;
    color: #555;
    margin: 5px 0;
}

.subtitle {
    font-size: 14px;
    color: #777;
    margin: 5px 0;
}

/* Dekorasi Tanaman */
.decoration {
    position: absolute;
    z-index: -1;
    opacity: 0.6;
}

.top-left {
    top: 0;
    left: 0;
    width: 150px;
}

.top-right {
    top: 0;
    right: 0;
    width: 150px;
}

.bottom-left {
    bottom: 0;
    left: 0;
    width: 200px;
}

.bottom-right {
    bottom: 0;
    right: 0;
    width: 200px;
}

/* Menu Grid */
.menu-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.menu-item {
    width: 200px;
    height: 120px;
    background: linear-gradient(135deg, #f9f9f9, #e8e8e8);
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
    text-decoration: none;
    color: inherit;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.menu-icon {
    font-size: 40px;
    margin-bottom: -5px;
}

.menu-icon img {
    width: 50px;
}

.menu-text {
    font-size: 16px;
    color: #2c5aa0;
    font-weight: bold;
    line-height: 1.3;
}

/* Logout Button */
.logout-btn {
    background: none;
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.logout-btn:hover {
    background: #ff6b6b;
    color: white;
}

/* Footer */
.footer {
    margin-top: 50px;
    text-align: center;
    font-size: 12px;
    color: #888;
}

/* Navigasi Tombol */
.nav-buttons {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #4fc3f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
    text-decoration: none;
}

.nav-btn:hover {
    transform: scale(1.1);
}

/* Search Bar */
.search-bar {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}

.search-bar input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 300px;
    font-size: 14px;
}

.search-bar button {
    padding: 8px 15px;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Product Info */
.product-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    margin: 20px 0;
}

.product-image img {
    max-width: 120px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.product-details {
    flex: 1;
    min-width: 300px;
}

.field {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.field label {
    width: 120px;
    font-weight: bold;
    text-align: right;
}

.field input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

/* Product Specs - Two Columns Sejajar */
.product-specs {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.spec-col-left,
.spec-col-right {
    flex: 1;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 0;
    font-size: 14px;
}

.spec-row .label {
    font-weight: bold;
    min-width: 100px;
    text-align: left;
}

.spec-row .value {
    flex: 1;
    text-align: right;
    padding-left: 10px;
}

/* Responsif */
@media (max-width: 768px) {
    .product-specs {
        flex-direction: column;
        gap: 10px;
    }

    .spec-row {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Tabel Data */
.data-table {
    overflow-x: auto;
    margin: 20px 0;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.data-table th,
.data-table td {
    border: 1px solid #ccc;
    padding: 6px;
    text-align: center;
}

.data-table th {
    background-color: #e8f4fc;
    font-weight: bold;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .menu-item {
        width: 150px;
        height: 100px;
        font-size: 14px;
    }

    .menu-icon {
        font-size: 30px;
    }

    .header h1 {
        font-size: 22px;
    }

    .search-bar input {
        width: 200px;
    }

    .product-info {
        flex-direction: column;
    }

    .product-details,
    .product-specs {
        width: 100%;
    }

    .nav-buttons {
        bottom: 10px;
        gap: 5px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .menu-grid {
        gap: 10px;
    }

    .menu-item {
        width: 130px;
        height: 90px;
        padding: 5px;
    }

    .menu-text {
        font-size: 12px;
    }

    .search-bar input {
        width: 150px;
        font-size: 12px;
    }

    .search-bar button {
        padding: 6px 10px;
        font-size: 12px;
    }

    .data-table table {
        font-size: 10px;
    }
}