/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* HTML & Body */
html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Roboto', sans-serif;
  background: radial-gradient(circle, #514389ff, #28308a);
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0;
}

/* ==============================
   HOME PAGE
   ============================== */

/* Footer */
.footer {
  text-align: center;
  color: #ccc;
  font-size: 14px;
  margin-top: auto;
  margin-bottom: 32px;
}

.wrapper {
  flex: 1 0 auto; 
  display: flex;
  justify-content: center;  
  align-items: center;      
  min-height: 100vh;   
}

.wrapper.expanded {
  margin: 64px 0px;
  transition: margin 0.3s ease;
}

/* Card Home */
.card-home {
  background-color: #212445ff;
  padding: 32px 32px 16px 32px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  text-align: center;
  max-width: 420px;
  width: 100%;
}

.title-home {
  font-size: 32px;
  margin: 16px 0px 4px 0px;
  color: #fff;
}

.intro {
  font-size: 16px;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Section */
.section-box {
  background-color: #292d56ff;
  border-radius: 6px;
  padding: 12px 24px;
  margin-bottom: 18px;
  text-align: left;
}

.section-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 18px;
  margin: 16px 0px;
}

.section-header i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.section-content {
  margin-top: 10px;
}

.hidden {
  display: none;
}

/* Button */
.btn {
  display: block;
  background: linear-gradient( #285abeff, #2841beff);
  color: #fff;
  text-decoration: none;
  padding: 12px;
  margin: 12px 0;
  border-radius: 4px;
  font-weight: 480;
  text-align: center;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background: linear-gradient( #2350a9ff, #233aa9ff);
}

#foto-profil {
  width: 100px;
  border-radius: 50%; 
  border: 2px solid #292d56ff;
}

/* ==============================
   KUOTA PAGE
   ============================== */

/* Container */
.container-kuota {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  width: 100%;
  max-width: 100%;
}

/* Card */
.card-kuota {
  background: #212445;
  padding: 24px 32px 8px 32px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  text-align: center;
  width: 100%;
  max-width: 420px;
  margin: 0px auto;
  overflow: hidden;
}

.title-kuota {
  font-size: 32px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  word-break: break-word;
}

h1 i {
  font-weight: normal;
}

label {
  display: block;
  text-align: left;
  font-weight: bold;
  margin-bottom: 12px;
}

/* Input Group */
.input-group {
  display: flex;
  align-items: center;
  background: #1d1e30;
  border: 1px solid #292d56;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 16px;
  width: 100%;
  max-width: 100%;
}

.input-group:hover {
  background: #161a27ff;
}

.input-group i {
  margin-right: 8px;
  color: #ccc;
}

input {
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  flex: 1;
  font-size: 1rem;
  min-width: 0;
}

/* Tombol Kuota */
button {
  background: linear-gradient( #285abeff, #2841beff);
  border: none;
  border-radius: 6px;
  padding: 12px;
  width: 100%;
  max-width: 100%;
  font-size: 16px;
  font-weight: 480;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}

button:hover {
  background: linear-gradient( #2350a9ff, #233aa9ff);
}

/* Inner HTML */
.hasil {
  font-size: 16px;
  color: #ccc;
  word-break: break-word;
  padding: 16px 0px 12px 0px;
}

/* ==============================
   AREA PAGE
   ============================== */

.container-area {
  max-width: 840px;
  margin: 32px auto;
  padding: 16px;
}

.card-area {
  background-color: #212445ff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.header {
  text-align: center;
  padding-top: 24px;
  color: #fff;
}

.header .title-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.title-area i {
  font-size: 28px;
  color: #fff;
  padding-bottom: 4px;
}

.header h1 {
  font-size: 32px;
  font-weight: bold;
  padding-bottom: 4px;
}

.header p {
  font-size: 16px;
  color: #fff;
  margin-bottom: 24px;
}

/* Search Box */
.search-box {
  display: flex;
  align-items: center;
  background: #1a1f2e;
  border: 1px solid #313668ff;
  border-radius: 6px;
  padding: 12px;
  max-width: 100%;
  margin: 16px 32px;
}

.search-box:hover {
  background: #161a27ff;
}

.search-box i {
  color: #ccc;
  margin-right: 8px;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  color: #fff;
  width: 100%;
  font-size: 16px;
}

/* Table */
.table-wrapper {
  align-items: center;
  overflow-x: auto;
  border-radius: 6px;
  margin: 16px 32px 32px 32px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #292d56ff;
  table-layout: fixed;
}

thead {
  background: linear-gradient( #285abeff, #2841beff);
  color: #fff;
}

thead th {
  padding: 12px;
  font-size: 16px;
}

thead th:nth-child(1),
tbody td:nth-child(1) {
  width: 20%;
  text-align: left;
}

thead th:nth-child(2),
tbody td:nth-child(2) {
  width: 65%;
  text-align: left;
}

thead th:nth-child(3),
tbody td:nth-child(3) {
  width: 15%;
  text-align: center;
}

tbody td {
  padding: 12px;
  border-bottom: 1px solid #313668ff;
  font-size: 16px;
  vertical-align: top;
  white-space: normal;
}

tbody tr:hover {
  background-color: #313668ff;
}

tbody tr:last-child td {
  border-bottom: none;
}

.area-tag {
  font-weight: bold;
  text-align: center;
  color: #eb7047ff;
}

/* ==============================
   RESPONSIVE
   ============================== */

@media (max-width: 480px) {
  /* Home */
   :root { --footer-h: 44px; }  
  .footer {
    position: static;
    left: 0; right: 0; bottom: 0;
    height: var(--footer-h);
    display: flex; align-items: center; justify-content: center;
    padding: 0 12px;
    font-size: 12px;
  }

  .wrapper { 
    padding-bottom: calc(var(--footer-h) + 12px);
  }
  .wrapper.expanded {
    padding-bottom: calc(var(--footer-h) + 32px);
  }
  .wrapper.expanded {
  margin: 0px;
  }
  .card-home {
    padding: 24px 16px 8px 16px;
    margin: 24px;
  }
  .card-home h1 {
    font-size: 24px;
  }
  .card-home p {
    font-size: 16px;
  }

  /* Kuota */
  .card-kuota {
    padding: 24px 16px 0px 16px;
    margin: 8px;
  }
  .title-kuota {
    font-size: 24px;
  }
  label {
    font-size: 16px;
  }
  input {
    font-size: 16px;
  }
  button {
    padding: 10px;
    font-size: 16px;
  }
  .hasil {
    font-size: 16px;
  }

  /* Area */
  .card-area {
    margin: 8px;
  }
  .header h1 {
    font-size: 24px;
  }
  .title-area i {
    font-size: 22px;
  }
  .title-area i, .header h1 {
  margin-bottom: 0px;
  }
  .header p {
    font-size: 16px;
  }
  table {
    font-size: 16px;
    table-layout: auto;
  }
  .table-wrapper,
  .search-box,
  .header p {
    margin: 16px;
  }
  thead th,
  tbody td {
    padding: 8px;
  }
  .container-area {
    margin-bottom: 32px;
  }
}


