* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, sans-serif; }

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 30px;
}

header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

header h1 { color: #4a5568; font-size: 2rem; }
header p { color: #718096; margin-top: 5px; }

.toolbar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.toolbar-left, .toolbar-right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    color: white;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

.btn-primary { background: #3182ce; }
.btn-success { background: #38a169; }
.btn-secondary { background: #718096; }
.btn-warning { background: #d69e2e; }
.btn-danger { background: #e53e3e; }

#searchInput {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    width: 250px;
}

#searchInput:focus { outline: none; border-color: #3182ce; }

.info-bar {
    display: flex;
    gap: 30px;
    padding: 12px 20px;
    background: #edf2f7;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

table { width: 100%; border-collapse: collapse; background: white; }
thead { background: #2d3748; color: white; }

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

tbody tr:hover { background: #f7fafc; }
tbody tr:nth-child(even) { background: #fafbfc; }

.btn-aksi { padding: 6px 10px; font-size: 12px; margin-right: 5px; }

/* ===== WhatsApp Link ===== */
.wa-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: #dcf8e6;
    transition: all 0.2s;
    white-space: nowrap;
}

.wa-link:hover {
    background: #25D366;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(37, 211, 102, 0.4);
}

.wa-link:hover .wa-icon { fill: white; }

.wa-icon {
    width: 18px;
    height: 18px;
    fill: #25D366;
    transition: fill 0.2s;
    flex-shrink: 0;
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active { display: flex; }

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #718096;
}

.modal-content h2 { margin-bottom: 20px; color: #2d3748; }

.form-group { margin-bottom: 15px; }

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #4a5568;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #3182ce;
}

.form-group textarea { resize: vertical; min-height: 70px; }

@media (max-width: 768px) {
    .toolbar { flex-direction: column; }
    #searchInput { width: 100%; }
}