:root { 

      --primary: #005b9f; /* Biru khas Kemendikbud */

      --primary-dark: #003f73; 

      --accent: #f39c12; 

      --bg-color: #f4f6f9; 

      --card-bg: #ffffff; 

      --text-main: #333333; 

      --text-muted: #6c757d;

      --border: #dee2e6; 

      --success: #28a745;

      --danger: #dc3545;

    }

    

    body { font-family: 'Source Sans Pro', sans-serif; background-color: var(--bg-color); color: var(--text-main); margin: 0; padding: 0; }

    @keyframes fadeSlideIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

    .animasi-masuk { animation: fadeSlideIn 0.5s ease-out forwards; }

    .animasi-muncul { animation: fadeIn 0.3s ease-out forwards; }



    .header { background-color: var(--card-bg); padding: 0.8rem 2rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }

    .header h1 { margin: 0; font-size: 1.4rem; font-weight: 700; color: var(--primary-dark);}

    .header p { margin: 2px 0 0 0; font-size: 0.85rem; color: var(--text-muted); font-weight: 600;}

    

    .top-navbar { background-color: var(--primary); padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; overflow-x: auto; white-space: nowrap; }

    .top-navbar-menus { display: flex; gap: 5px; }

    .top-navbar button { background-color: transparent; color: rgba(255,255,255,0.8); border: none; padding: 12px 20px; cursor: pointer; font-weight: 600; transition: 0.2s; border-bottom: 3px solid transparent; }

    .top-navbar button.active { color: white; border-bottom: 3px solid var(--accent); background-color: rgba(0,0,0,0.1); }

    

    .btn-network { background-color: var(--accent) !important; color: white !important; padding: 6px 15px !important; border-radius: 4px; border: none !important; margin-left: 15px; display: inline-flex; align-items: center; gap: 8px;}

    .btn-network:hover { background-color: #d68910 !important; }



    .container { max-width: 1300px; margin: 2rem auto; padding: 0 1rem; }

    .card { background-color: var(--card-bg); border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); padding: 1.5rem; margin-bottom: 1.5rem; border-top: 3px solid var(--primary); }

    

    .form-group { margin-bottom: 1rem; }

    label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.9rem; color: #495057;}

    input[type="text"], input[type="file"], select { width: 100%; padding: 0.6rem; border: 1px solid var(--border); border-radius: 4px; box-sizing: border-box; }

    input[readonly] { background-color: #e9ecef; cursor: not-allowed;}

    .btn-submit { background-color: var(--success); color: white; border: none; padding: 0.8rem 1rem; border-radius: 4px; cursor: pointer; font-weight: 600; width: 100%; margin-top: 1rem; transition: 0.3s; font-size: 1rem; }

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



    .tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; }

    .tab { padding: 0.6rem 1.2rem; cursor: pointer; font-weight: 600; color: var(--text-muted); border-bottom: 3px solid transparent; margin-bottom: -2px; transition: 0.2s; }

    .tab.active { color: var(--primary); border-bottom-color: var(--primary); }



    /* --- RESPONSIVE TOOLBAR CSS BARU --- */

    .toolbar { display: flex; gap: 15px; margin-bottom: 1.2rem; flex-wrap: wrap; background: var(--bg-color); padding: 12px 15px; border-radius: 4px; border: 1px solid var(--border); align-items: center; }

    .toolbar-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: #495057; flex: 1 1 200px; }

    .toolbar-item input, .toolbar-item select { flex: 1; padding: 0.5rem; border: 1px solid #ced4da; border-radius: 4px; }

    @media (max-width: 768px) {

        .toolbar-item { flex: 1 1 100%; }

        .toolbar-item span { width: 80px; }

    }

    

    /* --- DATA TABLES LENGKAP & GESER --- */

    .table-container { overflow-x: auto; max-width: 100%; border: 1px solid var(--border); border-radius: 4px;}

    table { width: 100%; border-collapse: collapse; font-size: 0.85rem; min-width: 1400px; background: white;}

    th, td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }

    th { background-color: var(--primary); color: white; position: sticky; top: 0; font-weight: 600; transition: background 0.2s; }

    

    /* Indikator geser (Drag & Drop) */

    th.dragging { opacity: 0.4; }

    th.drag-over { background-color: var(--accent); border-left: 4px solid var(--primary-dark); }



    tbody tr:nth-of-type(even) { background-color: rgba(0,0,0,0.02); }

    tbody tr:hover { background-color: rgba(0,91,159,0.05); }



    .pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; font-size: 0.9rem; }

    .pagination button { padding: 6px 12px; border: 1px solid var(--border); background: white; cursor: pointer; border-radius: 4px; transition: 0.2s; font-weight: 600; }

    .pagination button:hover:not(:disabled) { background: #e9ecef;}

    .hidden { display: none !important; }

    #status { margin-top: 1rem; font-weight: 600; color: var(--success); text-align: center; }



    /* --- MODAL CSS --- */

    .modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: center; z-index: 9999; }

    .modal-content { background: white; padding: 2rem; border-radius: 8px; width: 600px; max-width: 95%; max-height: 90vh; overflow-y: auto; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }

    .modal-content h3 { margin-top: 0; border-bottom: 2px solid var(--border); padding-bottom: 10px; color: var(--primary-dark); }

    .grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

    .full-width { grid-column: span 2; }
