/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    min-height: 100vh;
}

/* --- SIDEBAR NAVIGATION --- */
.sidebar {
    width: 260px;
    background: #1e272e;
    color: #fff;
    position: fixed;
    height: 100%;
    padding-top: 20px;
}

.sidebar-header {
    text-align: center;
    padding: 0 15px 30px;
    border-bottom: 1px solid #34495e;
}

.sidebar-menu {
    list-style: none;
    margin-top: 20px;
}

.sidebar-menu li a {
    display: block;
    padding: 15px 25px;
    color: #bdc3c7;
    text-decoration: none;
    transition: 0.3s;
    font-size: 15px;
}

.sidebar-menu li a:hover, .sidebar-menu li a.active {
    background: #00d2d3;
    color: #fff;
    padding-left: 35px;
}

.sidebar-menu i {
    margin-right: 10px;
    width: 20px;
}

/* --- MAIN CONTENT AREA --- */
.content {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 30px;
}

.header-title {
    margin-bottom: 25px;
    border-left: 5px solid #00d2d3;
    padding-left: 15px;
}

/* --- STATS CARDS (Dashboard) --- */
.dashboard-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

.card-icon {
    font-size: 40px;
    color: #00d2d3;
    margin-right: 15px;
}

.card-info h3 {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
}

.card-info p {
    font-size: 24px;
    font-weight: bold;
}

/* --- TABLES (Index Produk/Penjualan) --- */
.data-container {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

table thead th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #eee;
}

table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

/* --- FORMS (Input Produksi/Penjualan) --- */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input[type="text"], 
input[type="number"], 
input[type="date"], 
select, 
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* --- BUTTONS --- */
.btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary { background: #00d2d3; color: white; }
.btn-success { background: #1dd1a1; color: white; }
.btn-danger { background: #ff6b6b; color: white; }
.btn-primary:hover { opacity: 0.9; }

.btn-tambah {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1dd1a1, #10ac84);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(29, 209, 161, 0.3);
    transition: all 0.3s ease;
    border: none;
    margin-bottom: 20px;
}

.btn-tambah:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(29, 209, 161, 0.4);
    background: linear-gradient(135deg, #10ac84, #0ca37a);
    color: white;
}

.btn-tambah i {
    font-size: 16px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .sidebar { width: 70px; }
    .sidebar-header h2, .sidebar-menu span { display: none; }
    .content { margin-left: 70px; width: calc(100% - 70px); }
    .dashboard-cards { flex-direction: column; }
}
