/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="number"],
select,
textarea,
input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s;
    border: none;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
}

.btn-submit:hover {
    background-color: #2980b9;
}

.btn-tambah {
    background-color: #27ae60;
    margin-bottom: 20px;
}

.btn-tambah:hover {
    background-color: #2ecc71;
}

.btn-edit {
    background-color: #f39c12;
    padding: 5px 10px;
    font-size: 14px;
}

.btn-edit:hover {
    background-color: #f1c40f;
}

.btn-hapus {
    background-color: #e74c3c;
    padding: 5px 10px;
    font-size: 14px;
}

.btn-hapus:hover {
    background-color: #c0392b;
}

.btn-view {
    background-color: #3498db;
    padding: 5px 10px;
    font-size: 14px;
    margin-left: 5px;
    margin-top: 5px;
}

.btn-view:hover {
    background-color: #2980b9;
}

/* Table Styles */
.table-produk {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table-produk th, 
.table-produk td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table-produk th {
    background-color: #3498db;
    color: white;
}

.table-produk tr:hover {
    background-color: #f5f5f5;
}

.table-produk img {
    border: 1px solid #ddd;
}

/* Alert Styles */
.alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Badge Styles */
.badge {
    background-color: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

/* Responsif */
@media (max-width: 600px) {
    .container {
        margin: 20px;
        padding: 15px;
    }
    
    .table-produk {
        display: block;
        overflow-x: auto;
    }
    
    .btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .btn-view {
        margin-left: 0;
    }
}