* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #f0f2f5; color: #333; line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar { background: #2c3e50; color: #fff; padding: 15px 0; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.navbar-brand a { color: #fff; text-decoration: none; font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.navbar-nav a { color: #ecf0f1; text-decoration: none; margin-left: 20px; font-size: 14px; transition: color 0.3s; }
.navbar-nav a:hover { color: #3498db; }

/* Main */
main { min-height: 70vh; padding: 30px 0; }

/* Card */
.card {
    background: #fff; border-radius: 10px; padding: 25px; margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.card h2 { color: #2c3e50; margin-bottom: 15px; }

/* Messages */
.message { padding: 12px 16px; border-radius: 6px; margin-bottom: 20px; font-weight: 500; }
.message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.message.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Buttons */
.btn {
    display: inline-block; padding: 10px 22px; border: none; border-radius: 6px;
    cursor: pointer; font-size: 14px; font-weight: 600; text-decoration: none;
    transition: all 0.3s;
}
.btn-primary { background: #3498db; color: #fff; }
.btn-primary:hover { background: #2980b9; }
.btn-success { background: #27ae60; color: #fff; }
.btn-success:hover { background: #219a52; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-danger:hover { background: #c0392b; }
.btn-warning { background: #f39c12; color: #fff; }
.btn-warning:hover { background: #d68910; }

/* Table */
table { width: 100%; border-collapse: collapse; }
thead th {
    background: #2c3e50; color: #fff; padding: 12px 15px;
    text-align: left; font-size: 14px;
}
thead th:first-child { border-radius: 8px 0 0 0; }
thead th:last-child { border-radius: 0 8px 0 0; }
tbody tr { border-bottom: 1px solid #eee; }
tbody tr:hover { background: #f8f9fa; }
tbody td { padding: 11px 15px; font-size: 14px; }
.empty-row td { text-align: center; color: #999; padding: 30px; }

/* Form */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 5px; color: #555; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #ddd;
    border-radius: 6px; font-size: 15px; transition: border-color 0.3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: #3498db;
}

/* Footer */
.footer { background: #2c3e50; color: #ecf0f1; text-align: center; padding: 20px 0; margin-top: 40px; }
.footer p { font-size: 13px; }

/* Hero */
.hero {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: #fff; padding: 50px 30px; border-radius: 10px; text-align: center; margin-bottom: 30px;
}
.hero h1 { font-size: 32px; margin-bottom: 10px; }
.hero p { font-size: 16px; opacity: 0.9; }

/* Grid */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature-card {
    background: #fff; border-radius: 10px; padding: 25px; text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: transform 0.3s;
}
.feature-card:hover { transform: translateY(-3px); }
.feature-card h3 { color: #2c3e50; margin-bottom: 10px; }
.feature-card p { color: #666; font-size: 14px; }

/* Pelaksanaan SPMI */
.pelaksanaan-page h2 { margin-bottom: 20px; color: #2c3e50; }
.pelaksanaan-controls { margin-bottom: 15px; }
.pelaksanaan-controls .form-group { max-width: 280px; }

.tab-nav {
    display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 0;
    border-bottom: 3px solid #2c3e50;
}
.tab-link {
    display: inline-block; padding: 10px 18px; font-size: 13px; font-weight: 600;
    background: #e9ecef; color: #495057; text-decoration: none;
    border-radius: 8px 8px 0 0; transition: all 0.2s; white-space: nowrap;
}
.tab-link:hover { background: #dee2e6; }
.tab-link.active { background: #2c3e50; color: #fff; }

.tab-content {
    border-radius: 0 8px 8px 8px; margin-top: 0;
    overflow-x: auto;
}

.table-wrapper { overflow-x: auto; }
.table-info { margin-top: 12px; font-size: 13px; color: #6c757d; text-align: right; }

/* Group header rows */
.group-header td {
    background: #f8f9fa; font-weight: 700; color: #2c3e50;
    padding: 10px 15px; border-bottom: 2px solid #2c3e50;
    font-size: 14px; letter-spacing: 0.5px;
}

/* Cell wrapping for long text */
.cell-standar { max-width: 200px; word-wrap: break-word; }
.cell-indikator { max-width: 250px; word-wrap: break-word; }
.cell-dokumen { max-width: 200px; word-wrap: break-word; }
.cell-target { max-width: 200px; word-wrap: break-word; }
.cell-capaian { max-width: 200px; word-wrap: break-word; }

/* responsive tabs */
@media (max-width: 768px) {
    .tab-nav { flex-direction: column; border-bottom: none; }
    .tab-link { border-radius: 6px; }
    .tab-content { border-radius: 8px; }
}

@media (max-width: 600px) {
    .navbar .container { flex-direction: column; gap: 10px; }
    .navbar-nav a { margin: 0 8px; }
    table { font-size: 12px; }
    thead th, tbody td { padding: 8px 10px; }
}
