/* GLOBAL RESET & BODY */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;900&display=swap');

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: poppins, Arial, sans-serif;
}

/* TOP NAVBAR (fixed at the top) */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #090601;
    color: white;
    z-index: 1100;
}

/* Logo */
.logo img {
    height: 40px;
}

/* Navigation Menu */
.public-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.public-menu a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 8px 12px;
    transition: 0.3s;
}

.public-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* Google Sign-In Button */
.login-button {
    display: flex;
    align-items: center;
    background-color: rgba(60, 52, 90, 0.8);
    color: #090601;
    font-weight: bold;
    border-radius: 5px;
    padding: 6px 12px;
    text-decoration: none;
}

.login-button img {
    height: 20px;
    margin-right: 8px;
}

/* Profile Icon */
.profile-link img {
    height: 38px;
    width: 38px;
    border-radius: 50%;
}

/* CONTENT AREA */
.content {
    margin-top: 60px; /* Push down content below navbar */
    padding: 1rem;
}

/* FOOTER (fixed at the bottom) */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ddd;
    padding: 0.5rem 1rem;
    text-align: center;
    z-index: 1000;
}

/* LAYOUT: SIDEBAR & CONTENT CONTAINER */
.bot-container {
    display: flex;
    padding-top: 20px;
    margin-top: 60px; /* Push below navbar */
    margin-bottom: 60px; /* Prevent overlap with footer */
    min-height: calc(100vh - 120px); /* Full height minus navbar/footer */
    transition: all 0.3s ease;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 200px; /* Default expanded */
    height: 100vh;
    background-color: #f5f5f5;
    border-right: 1px solid #ddd;
    padding: 1rem;
    overflow-y: auto;
    transition: width 0.3s ease;
    z-index: 1000;
    margin-top: 60px; /* Prevent overlapping navbar */
}

/* Sidebar collapsed */
.sidebar.collapsed {
    width: 60px;
}

/* Sidebar toggle button */
.toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Sidebar menu */
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin: 0.5rem 0;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.sidebar ul li a:hover {
    background-color: #e0e0e0;
}

/* Sidebar menu icon spacing */
.menu-text {
    margin-left: 8px;
}

/* Hide text when sidebar is collapsed */
.sidebar.collapsed .menu-text {
    display: none;
}

/* MAIN CONTENT */
.bot-content {
    margin-left: 200px; /* Leave space for sidebar */
    flex: 1;
    padding: 20px;
    transition: margin-left 0.8s ease;
}

/* Adjust main content when sidebar is collapsed */
.sidebar.collapsed + .bot-content {
    margin-left: 60px;
}

/* MODAL STYLES */
.modal {
    position: fixed;
    z-index: 2000;
    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%;
    max-width: 600px;
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .top-navbar {
        flex-direction: column;
        align-items: center;
    }

    .public-menu {
        flex-direction: column;
        gap: 10px;
    }

    /* Sidebar shrinks on small screens */
    .sidebar {
        width: 60px;
    }

    .sidebar.expanded {
        width: 200px;
    }

    .sidebar.collapsed + .bot-content {
        margin-left: 60px;
    }

    .bot-content {
        margin-left: 200px;
    }
}


/* ✅ Shopping Cart Icon Styling */
.cart-icon {
    position: relative;
    color: grey; /* ✅ Default grey */
    font-size: 20px;
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.cart-icon i {
    font-size: 24px;
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    padding: 3px 7px;
    display: none; /* ✅ Hide kalau cart kosong */
}

/* ✅ Tukar ikon jadi kuning bila ada item dalam cart */
.cart-icon.has-items {
    color: #ffeb3b !important;
}

/* (css import) */

input {
  caret-color: red;
}



.container {
  position: relative;
  width: 350px;
  height: 500px;
  border-radius: 20px;
  padding: 40px;
  box-sizing: border-box;
  background: #ecf0f3;
  box-shadow: 14px 14px 20px #cbced1, -14px -14px 20px white;
}

.brand-logo {
  height: 100px;
  width: 100px;
  background: url("https://img.icons8.com/color/100/000000/twitter--v2.png");
  margin: auto;
  border-radius: 50%;
  box-sizing: border-box;
  box-shadow: 7px 7px 10px #cbced1, -7px -7px 10px white;
}

.brand-title {
  margin-top: 10px;
  font-weight: 900;
  font-size: 1.8rem;
  color: #1DA1F2;
  letter-spacing: 1px;
}

.inputs {
  text-align: left;
  margin-top: 30px;
}
label{
    display: inline-flexbox;
    margin-top: 15px;
}

input, button {
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 5px;
  padding-bottom: 5px;
  margin-top: 20px;
  align-self: center;
  border: none;
  outline: none;
  box-sizing: border-box;
}

label {
  margin-bottom: 10px;
}

label:nth-of-type(1) {
  margin-top: 12px;
}

input::placeholder {
  color: gray;
}

textarea {
    background: #ffffff;
    padding: 10px;
    height: 80px;
    font-size: 14px;
    border-radius: 10px;
    box-shadow: inset 6px 6px 6px #bfc0c0, inset -6px -6px 6px white;
    font-family: poppins, Arial, sans-serif;
}

input {
  background: #ffffff;
  padding: 10px;
  padding-left: 20px;
  height: 50px;
  font-size: 14px;
  border-radius: 20px;
  box-shadow: inset 6px 6px 6px #bfc0c0, inset -6px -6px 6px white;
  font-family: poppins, Arial, sans-serif;
}

.button-container {
    display: flex;            /* ✅ Arrange buttons in a row */
    justify-content: center;  /* ✅ Center horizontally */
    align-items: center;      /* ✅ Center vertically */
    gap: 15px;               /* ✅ Add spacing between buttons */
    margin-top: 20px;        /* ✅ Adjust spacing */
  }
  
  button {
    color: rgb(206, 202, 202);
    background: #0b486e;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 900;
    box-shadow: 6px 6px 6px #747575, -6px -6px 6px white;
    transition: 0.5s;
    padding: 10px 20px;      /* ✅ Add padding for better shape */
    border: none;            /* ✅ Remove default border */
  }
  
  button:hover {
    box-shadow: none;
  }

table{
    width:100%;
    table-layout: fixed;
  }
  .tbl-header{
    background-color: rgba(62, 60, 71, 0.774);
   }
  .tbl-content{
    height:300px;
    overflow-x:auto;
    margin-top: 0px;
    border: 1px solid rgba(255,255,255,0.3);
  }
  th{
    padding: 20px 15px;
    text-align: left;
    font-weight: 500;
    font-size: 12px;
    color: #e7e7e7;
     text-transform: uppercase;
  }
  td{
    padding: 15px;
    text-align: left;
    vertical-align:middle;
    font-weight: 300;
    font-size: 12px;
    color: #201f1f;
    border-bottom: solid 1px rgba(255,255,255,0.1);
  }

  /* ✅ Styling untuk Quota Status */
.quota-status {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}
