/* Import Font Google */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Poppins', sans-serif;
    background:linear-gradient(135deg,#74ebd5,#9face6);
    min-height:100vh;
    padding:30px;
}

.container{
    width:90%;
    max-width:900px;
    margin:auto;
    background:#fff;
    padding:30px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,0.15);
}

h1,h2,h3{
    color:#333;
    margin-bottom:20px;
}

input,
select{
    width:100%;
    padding:12px 15px;
    margin:8px 0;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:15px;
    transition:0.3s;
}

input:focus,
select:focus{
    outline:none;
    border-color:#4e73df;
    box-shadow:0 0 8px rgba(78,115,223,0.3);
}

button{
    width:100%;
    padding:12px;
    border:none;
    border-radius:10px;
    background:linear-gradient(45deg,#28a745,#20c997);
    color:#fff;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
}

button:hover{
    transform:translateY(-2px);
    box-shadow:0 5px 15px rgba(0,0,0,0.2);
}

.btn{
    display:inline-block;
    padding:10px 18px;
    background:linear-gradient(45deg,#007bff,#00c6ff);
    color:#fff;
    text-decoration:none;
    border-radius:10px;
    transition:0.3s;
}

.btn:hover{
    transform:translateY(-2px);
    box-shadow:0 5px 15px rgba(0,123,255,0.3);
}

/* Menu */
.menu{
    display:flex;
    gap:10px;
    margin:20px 0;
    padding-bottom:15px;
    border-bottom:1px solid #eee;
    flex-wrap:wrap;
}

.menu a{
    padding:10px 18px;
    background:#f1f3f5;
    color:#555;
    text-decoration:none;
    border-radius:10px;
    transition:0.3s;
}

.menu a:hover,
.menu a.active{
    background:#4e73df;
    color:#fff;
}

/* Alert */
.sukses{
    background:#d1f7df;
    color:#0f5132;
    padding:15px;
    border-left:5px solid #198754;
    border-radius:10px;
    margin-bottom:15px;
}

.gagal{
    background:#f8d7da;
    color:#842029;
    padding:15px;
    border-left:5px solid #dc3545;
    border-radius:10px;
    margin-bottom:15px;
}

/* Table */
table{
    width:100%;
    border-collapse:collapse;
    margin-top:20px;
    overflow:hidden;
    border-radius:15px;
}

th{
    background:#4e73df;
    color:#fff;
    padding:14px;
}

td{
    padding:12px;
    border-bottom:1px solid #eee;
}

tr:nth-child(even){
    background:#f8f9fa;
}

tr:hover{
    background:#e9f2ff;
}

.content{
    margin-top:20px;
}

/* Container agar tidak terlalu lebar */
.container {
  max-width: 600px;
  margin: 20px auto;
  padding: 15px;
}

/* Form responsif */
form input, form button {
  width: 100%;
  margin-bottom: 10px;
}

/* Tabel responsif */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table th, table td {
  padding: 8px;
  text-align: left;
}
table tr {
  border-bottom: 1px solid #ddd;
}
/* Default styling */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 15px;
}

/* Header dan judul */
.header .title h1 {
  font-size: 28px;
}
.header .title p {
  font-size: 16px;
}

/* Menu navigasi */
.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: #007bff;
}
.menu a {
  color: #fff;
  padding: 10px 15px;
  text-decoration: none;
  font-size: 16px;
}
.menu a.active {
  background: #0056b3;
  border-radius: 5px;
}

/* Konten */
.content {
  margin-top: 20px;
}

/* Footer */
.footer {
  text-align: center;
  font-size: 14px;
  margin-top: 20px;
  color: #555;
}

/* ✅ Media query untuk layar kecil (smartphone portrait) */
@media (max-width: 480px) {
  .header .title h1 {
    font-size: 20px; /* perkecil judul */
  }
  .header .title p {
    font-size: 12px; /* perkecil subjudul */
  }
  .menu a {
    flex: 1 1 100%; /* menu jadi satu kolom */
    text-align: center;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
  }
  .container {
    padding: 10px;
  }
  .content {
    font-size: 14px; /* konten lebih kecil */
  }
  .footer {
    font-size: 12px;
  }
}

body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  margin: 0;
  padding: 0;
}

.login-container {
  max-width: 400px;
  margin: 50px auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,.1);
}

.login-container h2 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.login-container input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.login-container button {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.login-container button:hover {
  background: #0056b3;
}

/* ✅ Media query untuk layar kecil (smartphone portrait) */
@media (max-width: 480px) {
  .login-container {
    margin: 20px;
    padding: 15px;
  }
  .login-container h2 {
    font-size: 18px; /* perkecil judul */
  }
  .login-container input {
    font-size: 14px; /* input lebih kecil */
    padding: 8px;
  }
  .login-container button {
    font-size: 14px; /* tombol lebih kecil */
    padding: 10px;
  }
}

