/* Reset dan base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navbar */
.navbar {
    background-color: #2e7d32;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.logo span {
    color: #c8e6c9;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius: 4px;
}

.nav-links a:hover {
    color: #c8e6c9;
    background-color: rgba(255,255,255,0.1);
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-login {
    background-color: transparent;
    color: #2e7d32;
    border: 1px solid white;
}

.btn-register {
    background-color: #ff9800;
    color: white;
}

.btn-login:hover {
    background-color: white;
    color: #2e7d32;
}

.btn-register:hover {
    background-color: #f57c00;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(46, 125, 50, 0.9), rgba(76, 175, 80, 0.8)), url('https://images.unsplash.com/photo-1417733403748-83bbc7c05140?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Store Details */
.store-details {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.store-details h2 {
    color: #2e7d32;
    margin-bottom: 20px;
    border-bottom: 2px solid #c8e6c9;
    padding-bottom: 10px;
}

/* Category Section */
.category-section {
    margin-bottom: 40px;
}

.category-section h2 {
    color: #2e7d32;
    margin-bottom: 20px;
    text-align: center;
}

.categories {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.category-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    width: 250px;
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-card i {
    font-size: 50px;
    color: #4caf50;
    margin-bottom: 15px;
}

.category-card h3 {
    color: #2e7d32;
    margin-bottom: 10px;
}

.category-card p {
    color: #666;
    margin-bottom: 20px;
}

/* Products Section */
.products-section {
    margin-bottom: 40px;
}

.products-section h2 {
    color: #2e7d32;
    margin-bottom: 20px;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    height: 200px;
    background-color: #f1f8e9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    color: #2e7d32;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff9800;
    margin-bottom: 15px;
}

.btn-detail {
    background-color: #2e7d32;
    color: white;
    width: 100%;
    text-align: center;
}

.btn-detail:hover {
    background-color: #1b5e20;
}

/* Footer */
.footer {
    background-color: #2e7d32;
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #c8e6c9;
}

.footer-section p, .footer-section a {
    color: #e8f5e9;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    background-color: white;
    color: #2e7d32;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: #c8e6c9;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4caf50;
    color: #c8e6c9;
}

/* Form Styles */
.form-container {
    max-width: 500px;
    margin: 50px auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-container h2 {
    color: #2e7d32;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4caf50;
}

.btn-submit {
    background-color: #2e7d32;
    color: white;
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

.btn-submit:hover {
    background-color: #1b5e20;
}

/* Alert Messages */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Dashboard Styles */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.stat-card h3 {
    color: #2e7d32;
    margin-bottom: 10px;
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff9800;
}

/* Table Styles */
.table-container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    overflow-x: auto;
}

.table-container h2 {
    color: #2e7d32;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c8e6c9;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f1f8e9;
    color: #2e7d32;
    font-weight: 600;
}

table tr:hover {
    background-color: #f9f9f9;
}

.table-actions {
    display: flex;
    gap: 10px;
}

.btn-edit {
    background-color: #2196f3;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
}

.btn-delete {
    background-color: #f44336;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
}

.btn-edit:hover {
    background-color: #0b7dda;
}

.btn-delete:hover {
    background-color: #d32f2f;
}

/* Product Detail */
.product-detail-container {
    max-width: 1000px;
    margin: 40px auto;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

.product-detail-image {
    background-color: #f1f8e9;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info h1 {
    color: #2e7d32;
    margin-bottom: 15px;
}

.product-category {
    display: inline-block;
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 15px;
    font-size: 14px;
}

.product-price-large {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff9800;
    margin-bottom: 20px;
}

.product-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-shopee {
    background-color: #FF5722;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
}

.btn-shopee:hover {
    background-color: #E64A19;
}

/* User Profile Dropdown */
.user-profile {
    position: relative;
}

.profile-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
}

.profile-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

.profile-toggle img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    min-width: 200px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
}

.profile-menu.active {
    display: block;
}

.profile-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.profile-menu a:hover {
    background-color: #f5f5f5;
    color: #2e7d32;
}

.profile-menu a:last-child {
    border-bottom: none;
    color: #f44336;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .categories {
        flex-direction: column;
        align-items: center;
    }
    /* Tambahkan CSS ini ke bagian akhir file style.css */

/* Checkbox untuk seleksi bulk */
.table-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.bulk-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.select-all-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 15px;
}

.select-all-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.bulk-delete-btn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bulk-delete-btn:hover {
    background-color: #d32f2f;
}

.bulk-delete-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Checkbox di tabel */
td input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* User info di navbar */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    padding: 5px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-right: 10px;
}

.user-info i {
    font-size: 18px;
}

.user-info span {
    font-weight: 500;
}

.logout-btn {
    background-color: #f57c00;
    color: white;
    padding: 6px 15px;
    border-radius: 4px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logout-btn:hover {
    background-color: #ef6c00;
}
/* Checkbox Styling */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin: 15px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.checkbox-container label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    margin: 0;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #2e7d32;
}

.checkbox-container:hover {
    background-color: #f1f8e9;
    border-color: #c8e6c9;
}

/* Current Image Styling */
.current-image {
    margin: 10px 0 15px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #2e7d32;
}

.current-image p {
    margin: 5px 0;
    font-size: 14px;
    color: #495057;
}

.current-image a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 500;
}

.current-image a:hover {
    text-decoration: underline;
}

/* File Input Styling */
.file-input-container {
    margin: 15px 0;
}

.file-input-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.file-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-input-info {
    font-size: 13px;
    color: #6c757d;
    font-style: italic;
}


}