/* Styling Umum */
/* body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
	padding-top:137px;
} */
        /* ======= DASHBOARD STRUCTURE ======= */
        body {
            margin: 0;
            font-family: 'Segoe UI', sans-serif;
            background-color: #f7f9fc;
            color: #333;
            display: flex;
            flex-direction: column;
            height: 100vh;
			padding-top:137px;
        }





/* Header */
header {
    background: linear-gradient(90deg, #1a76d1, #125ca4);
    color: #fff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	}

.header-content {
    padding: 20px;
    text-align: center;
    color: #fff;
}

.header-content h1 {
    font-size: 28px;
    margin: 0;
}

.header-content p {
    margin: 5px 0 0;
    font-size: 16px;
}

/* Struktur dasar untuk dashboard layout */
.dashboard-container {
    display: flex;
    height: 100vh;
}
 .dashboard-container {
            display: flex;
            flex: 1;
            height: 100%;
        }	

/* Responsiveness */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }
}

/* Tombol ☰ untuk Mobile (Disembunyikan di Desktop) */
.sidebar-toggle {
    display: none;
    background: #1a76d1;
    color: white;
    border: none;
    padding: 10px;
    position: fixed;
    top: 10px;
    left: 10px;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
}

@media (min-width: 769px) {
    .sidebar-toggle {
        display: none !important; /* Pastikan tombol tidak muncul di desktop */
    }
}

/* Perubahan Tampilan di Mobile */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 250px;
        background: #333;
        transition: transform 0.3s ease-in-out;
    }

    .sidebar.active {
        transform: translateX(0);
    }
}


/* Styling Main Content body pada website */
/* 	.main-content {
		flex-grow: 1;
		padding: 40px;
		background-color: #f9fbfd;
		overflow-y: auto;
	} */	 

        /* ======= MAIN CONTENT ======= */
        .main-content {
            flex-grow: 1;
            padding: 30px;
            overflow-y: auto;
            background-color: #f4f6f9;
			box-sizing: border-box;
			min-height: 100vh;
		 margin-left: 250px; /* geser ke kanan sesuai lebar sidebar */
		 margin-top: 30px;   /* geser ke bawah sesuai tinggi header */
        }

        .main-content h2 {
            color: #1a76d1;
            border-bottom: 2px solid #1a76d1;
            display: inline-block;
            padding-bottom: 5px;
            margin-bottom: 20px;
        }





/* Biar kontennya rapi dan tidak menempel di tepi layar */
.section {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	animation: fadeIn 0.3s ease;
}


/* Form Section */

.section h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #1a76d1;
    display: inline-block;
    padding-bottom: 5px;
}

form label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

form input,
form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

form button {
    width: 100%;
    padding: 12px;
    background-color: #1a76d1;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #0b5ca3;
}

/* ===== FORM CONTAINER ===== */
.form-container {
    width: 100%;
    max-width: 400px; /* Membatasi lebar form agar tidak terlalu lebar */
    margin: 60px auto; /* Menjaga agar form tetap terpusat di tengah */
    padding: 80px;
	background: #ffffff;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px
	text-align: center;
    transition: all 0.3s ease;
    margin-top: 60px; /* Menambahkan jarak agar tidak terlalu mepet ke header */
}
.form-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

/* Centering the h2 inside tab content */
.tab-content h2 {
    text-align: center; /* Menyusun teks di tengah */
    font-size: 24px;
    margin-bottom: 20px;
}


/* Form Header */
h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

        /* ===== INPUT & BUTTON ===== */
        input[type="text"],
        input[type="password"] {
            width: 90%;
            padding: 10px;
            margin: 8px 0;
            border: 1px solid #ccc;
            border-radius: 5px;
            box-sizing: border-box;
        }

        button[type="submit"] {
            background-color: #1a76d1;
            color: white;
            border: none;
            padding: 10px 20px;
            margin-top: 15px;
            cursor: pointer;
            border-radius: 5px;
            transition: all 0.3s ease;
        }

        button[type="submit"]:hover {
            background-color: #155aa8;
        }

        /* ===== TABS ===== */
.tab-button {
    background-color: #1a76d1;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;  /* Memberikan jarak antar tab */
    text-align: center; /* Mengatur teks agar rata tengah */
    width: auto;
    font-weight: bold;
    flex: 1;
    transition: all 0.3s ease;
    border-radius: 5px 5px 0 0;
	background-color: #e5e5e5;
}

.tab-button:hover {
    background-color: #1a76d1;
    color: white;
}


.tab-button.active {
    background-color: #1a76d1;
    color: white;
}

/* Tabs - Horizontal */
.tabs {
    display: flex;
    flex-direction: row;  /* Menjadikan tab horizontal */
    justify-content: center;  /* Menempatkan tab di tengah */
    align-items: center;
    width: 100%;  /* Menyesuaikan dengan lebar form */
    margin-bottom: 25px;
}




/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        width: 90%;
        padding: 15px;
    }

    .header-content h1 {
        font-size: 24px;
    }

    .header-content p {
        font-size: 16px;
    }
}

/* Footer */
.footer {
    background-color: #1a76d1;
    color: white;
    text-align: center;
    padding: 15px;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 14px;
}

/*container untuk summary_nilai_user.php */
        .container {
            max-width: 900px;
            background: #fff;
            padding: 20px 30px;
            margin: 30px auto;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        h2 {
            color: #1a76d1;
            margin-bottom: 20px;
        }

      /* Info box style untuk summary_nilai_user */
.info-box {
    display: flex;
    justify-content: center;
    gap: 30px;
    background-color: #f8f9fc;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.info-item {
    background: #ffffff;
    border: 1px solid #dce3f0;
    border-radius: 8px;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(26,118,209,0.1);
    transition: 0.3s;
    min-width: 200px; /* biar lebar kartu seragam */
}

.info-item:hover {
    background: #eaf3ff;
    transform: translateY(-3px);
}

.info-item strong {
    color: #1a76d1;
    display: block;
    margin-bottom: 5px;
}

.info-item span {
    color: #333;
    font-weight: 500;
}

/*tabel untuk summary_nilai_user */

        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
        }

        th, td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }

        th {
            background-color: #1a76d1;
            color: white;
        }

        tr:hover {
            background-color: #f1f1f1;
        }

        button {
            background-color: #1a76d1;
            color: white;
            padding: 8px 12px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        button:disabled {
            background-color: #ccc;
            cursor: not-allowed;
        }




  /* ======= SIDEBAR ======= */
/*        .sidebar {
            height: 100vh;
            color: #eee;
			box-shadow: 2px 0 8px rgba(0,0,0,0.1);
			transition: transform 0.3s ease-in-out;
			margin-top: 18px; /* ubah angka untuk custom posisi sidebar 
        } */
		

        /*untuk tulisan di User Menu di side bar */
		.sidebar {
            width: 250px;
            background-color: #222;
			color: white;
            padding: 20px;
            box-sizing: border-box;
			height: calc(100vh - 144px); /* tinggi sidebar dikurangi tinggi header */
            color: #eee;
            flex-direction: column;
            display: flex;
            left: 0;
            position: fixed; /* ✅ posisi tetap */
			overflow-y: auto; /* ✅ jika isinya panjang bisa discroll sendiri */
			top: 144px; /* beri jarak sesuai tinggi header */
		}
		
	        .sidebar-header {
            font-size: 1.4em;
            font-weight: 600;
            margin-bottom: 25px;
            text-align: center;
            border-bottom: 1px solid #444;
            padding-bottom: 10px;
        }

		
			.sidebar-header h2 {
			margin: 0;
			padding: 10px 0;
			font-size: 1.2em;
		}

      
		        .menu {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .menu-item {
            padding: 12px 10px;
            margin-bottom: 8px;
            background-color: #333;
            border-radius: 6px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .menu-item:hover {
            background-color: #1a76d1;
            color: #fff;
        }
		.menu-item.active,
		.menu-item:hover {
			background-color: #1a76d1;
			color: #fff;
		}








/* untuk css materi*/

			/* Agar grid materi tetap rapi */
			.materi-list {
				display: grid;
				grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
				gap: 20px;
				padding-right: 20px;
			}

			/* Optional: agar tampilan lebih elegan */
			.materi-card {
				background-color: #fff;
				padding: 20px;
				border-radius: 12px;
				box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
				text-align: center;
				cursor: pointer;
				transition: transform 0.3s ease, box-shadow 0.3s ease;
			}
			.materi-card:hover {
				transform: translateY(-8px);
				box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
			}


        .materi-card img {
            width: 100%;
            height: 150px;
            object-fit: cover;
            border-radius: 10px;
            margin-bottom: 15px;
        }

        .materi-card h3 {
            font-size: 18px;
            color: #333;
            margin: 0;
        }

        /* Modal styling */
        .modal {
            display: none;
            position: fixed;
            z-index: 1;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.5);
        }

        .modal-content {
            background-color: #fefefe;
            margin: 10% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 80%;
            border-radius: 10px;
        }

        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }

        .close:hover, .close:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }


        /* ======= FORM STYLING UNTUK TAMBAH PENGGUNA ADMIN ======= */
        .form-section {
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
            padding: 30px;
            max-width: 600px;
            margin: auto;
            animation: fadeIn 0.3s ease;
        }
		
		.form-section h2 {
			font-size: 24px;
			margin-bottom: 15px;
			color: #333;
			border-bottom: 2px solid #1a76d1;
			display: inline-block;
			padding-bottom: 5px;
		}


        .form-section label {
            font-weight: 600;
            display: block;
            margin-top: 15px;
            color: #333;
        }

        .form-section input, .form-section select {
            width: 100%;
            padding: 10px;
            border-radius: 6px;
            border: 1px solid #ccc;
            margin-top: 5px;
            box-sizing: border-box;
            font-size: 15px;
        }

        .form-section input:focus, .form-section select:focus {
            border-color: #1a76d1;
            outline: none;
        }

        .form-section button {
            background: #1a76d1;
            color: white;
            border: none;
            padding: 12px 25px;
            font-size: 16px;
            border-radius: 6px;
            margin-top: 20px;
            cursor: pointer;
            width: 100%;
            transition: background-color 0.3s ease;
        }

        .form-section button:hover {
            background: #125ca4;
        }
        /* ======= ANIMATION ======= */
        @keyframes fadeIn {
            from {opacity: 0; transform: translateY(10px);}
            to {opacity: 1; transform: translateY(0);}
        }
