::after,
::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

h1 {
    font-weight: 600;
    font-size: 1.5rem;
}

/* login */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #fff; 
    position: relative;
}

.bg-split {
    position: absolute;
    top: 0;
    left: 0;
    width: 65%;
    height: 100%;
    background: url('/storage/BG_LOGIN.JPG') center/cover no-repeat;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    z-index: 1;
}

.login-card {
    display: flex;
    width: 1000px;
    height: 600px;
    border-radius: 30px;
    /* background: #fff; */
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
    overflow: visible;
}

.login-left {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background: transparent;
}

.inner-image {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    /* background: url('/storage/BG_LOGIN.JPG') center/cover no-repeat; */
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    border-radius: 20px;
    z-index: 1;
    border: 3px solid #fff;
    background: transparent;
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 32px solid #fff; 
    border-radius: 40px 0 0 40px;;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    pointer-events: none;
    z-index: 0;
}

.login-left::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    bottom: 25px;
    border-radius: 25px; 
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    pointer-events: none;
    z-index: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3); 
}

.login-left .overlay {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.login-left .top-bar {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.btn-join {
    background: #fff;
    color: #000;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    margin-left: 10px;
}

.login-right {
    flex: 1;
    padding: 40px 40px 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    border-radius: 0 30px 30px 0;
    position: relative;
    margin-left: -85px;
    z-index: 3; 
    clip-path: polygon(38px 0, 100% 0, 100% 100%, 0 100%);
}

.login-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.95), #fff);
    clip-path: polygon(0 0, 100% 0, 60% 100%, 0 100%);
    z-index: -1;
}

.login-right h5 {
    font-size: 20px;
    color: #333;
}

.form-control {
    border-radius: 12px;
    padding: 12px 15px;
}

.btn-login {
    width: 100%;
    background: #0e223e;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn-login:hover {
    background: #555;
}

.socials {
    margin-top: 25px;
    text-align: center;
}

.socials a {
    margin: 0 8px;
    font-size: 18px;
    color: #555;
    transition: color 0.3s;
}

.socials a:hover {
    color: #000;
}

.wrapper,
footer {
    font-family: 'Poppins', serif;
}

.wrapper{
    display: flex;
}

.main {
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    transition: all 0.35s ease-in-out;
    background-color: #fafbfe;
    margin-left: 70px;
}

.wrapper #sidebar {
    width: 70px;
    min-width: 70px;
    z-index: 1000;
    transition: all 0.25s ease-in-out;
    display: flex;
    flex-direction: column;
    background-color: #0e223e;
    justify-content: space-between;
    height: 100vh; 
    position: fixed; 
    top: 0;
    left: 0;
}

.wrapper #sidebar.expand {
    width: 260px;
    min-width: 260px;
}

.wrapper #sidebar #toggle-btn{
    background-color: transparent;
    cursor: pointer;
    border: 0;
    padding: 1rem 1.5rem;
}

.wrapper #sidebar #toggle-btn i{
    font-size: 1.5rem;
    color: #fff;
}

.wrapper #sidebar .sidebar-logo {
    margin: auto 0;
}

.wrapper #sidebar .sidebar-logo a{
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
}

.wrapper #sidebar:not(.expand) .sidebar-logo a,
.wrapper #sidebar:not(.expand) a.sidebar-link span{
    display: none;
}

.wrapper #sidebar .sidebar-nav {
    padding: 2rem 0;
    flex: 1 1 auto;
}

.wrapper #sidebar .sidebar-footer form {
    margin: 0;
    padding: 0;
}

.wrapper #sidebar .sidebar-footer .logout-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0.652rem 1.625rem;
    color: #fff;
    display: block;
    font-size: 0.9rem;
    white-space: nowrap;
    border-left: 3px solid transparent;
    text-decoration: none;
    cursor: pointer;
}

.wrapper #sidebar .link-text {
    display: none;
    transition: opacity 0.3s, margin 0.3s;
}

.wrapper #sidebar .sidebar-footer {
    margin-top: auto; 
    padding-bottom: 1rem;
}

/* saat sidebar punya class .expanded */
.wrapper #sidebar.expand ~ .main {
    margin-left: 260px; 
}

.wrapper #sidebar.expand .link-text {
    display: inline;
    opacity: 1;
    margin-left: 0.5rem;
}

.wrapper #sidebar a.sidebar-link{
    padding: 0.652rem 1.625rem;
    color: #fff;
    display: block;
    font-size: 0.9rem;
    white-space: nowrap;
    border-left: 3px solid transparent;
    text-decoration: none;
}

.wrapper #sidebar a.sidebar-link.active{
    background-color: #fff;
    color: #0e2238;
}

.wrapper #sidebar a.sidebar-link i,
.wrapper #sidebar .sidebar-footer .logout-btn i{
    font-size: 1.1rem;
    margin-right: 0.75rem;
}

.wrapper #sidebar a.sidebar-link:hover,
.wrapper #sidebar .sidebar-footer .logout-btn:hover{
    background-color: rgba(255, 255, 255, 0.075);
    border-left: 3px solid #3b7ddd;
}

.wrapper #sidebar .sidebar-item {
    position: relative;
}

.wrapper #sidebar:not(.expand) .sidebar-item .sidebar-dropdown{
    position: absolute;
    top: 0;
    left: 70px;
    background-color: #0e2238;
    padding: 0;
    min-width: 15rem;
    display: none;
}

.wrapper #sidebar:not(.expand) .sidebar-item:hover .has-dropdown+.sidebar-dropdown{
    display: block;
    max-height: 15em;
    width: 100%;
    opacity: 1;
}

.wrapper #sidebar.expand .sidebar-link[data-bs-toggle="collapse"]::after {
    border: solid;
    border-width: 0 0.075rem 0.075rem 0;
    content: "";
    display: inline-block;
    padding: 2px;
    position: absolute;
    right: 1.5rem;
    top: 1.4rem;
    transform: rotate(-135deg);
    transition: all 0.2s ease-out;
}

.wrapper #sidebar.expand .sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: rotate(45deg);
    transition: all 0.2s ease-out;
}

.active-link {
    background-color: white;
    color: #0e223e; /* Tailwind 'blue-600' */
}
.inactive-link {
    background-color: #0e223e;
    color: white;
}

.timeline-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    margin: 20px 0;
    gap: 10px;
}

.timeline-step {
    flex: 1 1 calc(16.66% - 10px); /* ✅ 6 item per baris (100%/6) */
    max-width: calc(16.66% - 10px);
    height: 4rem;
    font-size: 1.4rem;
    padding: 14px 24px 12px;
    color: white;
    font-weight: bold;
    background: linear-gradient(135deg, #0072ff, #00c6ff);
    border-radius: 10px;
    position: relative;
    transition: 0.3s;
    opacity: 0.5;
    text-align: center;
    word-wrap: break-word;
    box-sizing: border-box;
}

.timeline-step.active {
    background: linear-gradient(135deg, #00c851, #007e33); /* hijau untuk aktif */
    opacity: 1;
}

.timeline-step:first-child {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.timeline-step:last-child {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}


/* Overlay full screen transparan */
#imageOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  transition: opacity 0.3s;
}

#imageOverlay.overlay-hidden {
  opacity: 0;
  pointer-events: none;
}

#overlayImage {
  max-width: 90%;
  max-height: 90%;
  cursor: grab;
  transition: transform 0.3s ease;
  user-select: none;
}

#infoModal .modal-content {
    height: 100%;
    /* padding: 1.5rem; */
  }

  #infoModal .modal-body .kiri {
    align-content: center;
  }
  
  #infoModal .modal-body p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .table-responsive {
    width: 100%;
    overflow-x: auto;
  }
  
  .table {
    font-size: 0.9rem;
  }

  .card {
    margin-bottom: 1.5rem;
  }

  .file-action {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap; 
    white-space: nowrap;
  }
  
  .file-action .btn {
    padding: 4px 8px;
    font-size: 0.8rem;
  }
  
  .file-action .status-text {
    font-weight: 600;
    white-space: nowrap;
  }

  .btn-edit{
    gap: 10px;
  }

  .overlay-hidden {
    display: none !important;
    }

/* Card Ganti Password */
.ganti-username-wrapper {
    position: fixed;
    bottom: 20px;
    left: 90px;
    z-index: 10;
    width: 190px; 
    transition: all 0.3s ease-in-out;
}

.ganti-password-card {
    background: transparent !important;
    border: 2px solid;
    border-radius: 0; 
    width: 100%;
    aspect-ratio: 1 / 1; 
    transition: all 0.3s ease-in-out;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2cb5e8, #42a5f5);
    color: #fff;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
}

.icon-circle:hover {
    transform: scale(1.05);
}

.ganti-password-card h5 {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
  

/*  */
@media (min-width: 1450px){
    .timeline-step {
        flex: 1 1 calc(16.66% - 10px);
        max-width: calc(16.66% - 10px);
        font-size: 1.2rem;
        padding: 18px 5px
    }
}

@media (max-width: 1450px) {
    .timeline-step {
        flex: 1 1 calc(16.66% - 10px);
        max-width: calc(16.66% - 10px);
        font-size: 1.2rem;
        padding: 18px 5px
    }

    /* .ganti-password-card h5 {
        font-size: 0.9rem;
    } */
  }

@media (max-width: 992px) {

    .login-card {
        width: 80%;
        max-width: 800px;
        height: 510px;
    }
    
    .login-left::before {
        border: 25px solid #fff;
        border-radius: 35px 0 0 35px;
    }
    
    .login-right {
        padding: 35px 35px 35px 50px;
        margin-left: -70px;
    }
    
    .login-left .top-bar {
        font-size: 13px;
    }
    
    .btn-join {
        padding: 5px 12px;
        font-size: 12px;
    }

    .timeline-step {
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
        font-size: 1.4rem;
        padding: 15px 5px;
    }

    #infoModal .modal-dialog {
        max-width: 90%;
        margin: 0 auto;
    }
    
    #infoModal .modal-content {
        height: auto; /* biar tinggi menyesuaikan isi */
        /* padding: 1.2rem; */
    }
    
    #infoModal .modal-body p {
        font-size: 0.95rem; /* sedikit lebih kecil */
    }
    
    #infoModal .modal-title {
        font-size: 1.2rem;
    }
    
    #infoModal .modal-footer .btn {
        font-size: 0.95rem;
        padding: 8px 14px;
    }

    .ganti-username-wrapper {
        position: relative;
        left: 90px;
        width: 100%;
        margin: 20px 0;
        bottom: 0;
    }

    .ganti-password-card {
        width: 100%;
        max-width: 280px;
        aspect-ratio: auto;
        margin-left: 0;  
    }

    .ganti-password-card h5 {
        font-size: 0.8rem;
    }

}

@media (max-width: 768px) {

    .login-wrapper {
        padding: 15px;
    }
    
    .bg-split {
        width: 100%;
        height: 40%;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }
    
    .login-card {
        flex-direction: column;
        width: 100%;
        max-width: 500px;
        height: auto;
        min-height: 600px;
        border-radius: 25px;
    }
    
    /* Bagian Gambar - Atas */
    .login-left {
        flex: none;
        height: 250px;
        padding: 15px;
    }
    
    .inner-image {
        top: 15px;
        left: 15px;
        right: 15px;
        bottom: 15px;
        clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
        border-radius: 15px;
    }
    
    .login-left::before {
        border: 20px solid #fff;
        border-radius: 25px 25px 0 0;
        clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    }
    
    .login-left::after {
        top: 20px;
        left: 20px;
        right: 20px;
        bottom: 20px;
        border-radius: 15px;
        clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    }
    
    .login-left .overlay {
        padding: 20px;
    }
    
    .login-left .top-bar {
        font-size: 12px;
        flex-wrap: wrap;
    }
    
    /* Bagian Form - Bawah */
    .login-right {
        flex: none;
        margin-left: 0;
        margin-top: -35px;
        padding: 50px 30px 30px 30px;
        border-radius: 0 0 25px 25px;
        clip-path: none;
        z-index: 3;
    }
    
    .login-right::before {
        display: none;
    }
    
    .login-right h5 {
        font-size: 18px;
    }

    /* .timeline-step {
      font-size: 0.9rem;
      padding: 8px 10px;
    } */

    #infoModal .modal-dialog {
        max-width: 90%;
        margin: 0 auto;
    }
    
    #infoModal .modal-content {
        height: auto; /* biar tinggi menyesuaikan isi */
        /* padding: 1.2rem; */
    }
    
    #infoModal .modal-body p {
        font-size: 0.95rem; /* sedikit lebih kecil */
    }
    
    #infoModal .modal-title {
        font-size: 1.2rem;
    }
    
    #infoModal .modal-footer .btn {
        font-size: 0.95rem;
        padding: 8px 14px;
    }

    .card-header {
        font-size: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .ganti-password-card {
        width: 100%;
        aspect-ratio: auto; /* biar tinggi menyesuaikan teks */
    }
  }

  @media (max-width: 576px) {
    .login-wrapper {
        padding: 10px;
    }
    
    .login-card {
        max-width: 85%;
        min-height: 550px;
        border-radius: 20px;
    }
    
    .login-left {
        height: 200px;
        padding: 12px;
    }
    
    .inner-image {
        top: 12px;
        left: 12px;
        right: 12px;
        bottom: 12px;
        border-radius: 12px;
    }
    
    .login-left::before {
        border: 15px solid #fff;
        border-radius: 20px 20px 0 0;
    }
    
    .login-left::after {
        top: 15px;
        left: 15px;
        right: 15px;
        bottom: 15px;
        border-radius: 12px;
    }
    
    .login-left .overlay {
        padding: 15px;
    }
    
    .login-left .top-bar {
        font-size: 11px;
    }
    
    .btn-join {
        padding: 4px 10px;
        font-size: 11px;
        margin-left: 5px;
    }
    
    .login-right {
        padding: 40px 25px 25px 25px;
        margin-top: -30px;
        border-radius: 0 0 20px 20px;
    }
    
    .login-right h5 {
        font-size: 16px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .btn-login {
        padding: 10px;
        font-size: 15px;
    }
    
    .socials {
        margin-top: 20px;
    }
    
    .socials a {
        margin: 0 6px;
        font-size: 16px;
    }
    
    /* Link font lebih kecil */
    .login-right a {
        font-size: 13px;
    }

    .timeline-container {
        flex-direction: column;
        align-items: stretch;
      }
    
      .timeline-step {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
        font-size: 1rem;
        padding: 10px 15px;
        margin: 5px 0;
      }

    h2 {
        font-size: 1.3rem;
    }

    .container-fluid {
        padding: 0 10px;
    }

    .table {
        font-size: 0.85rem;
    }

    .file-action {
        flex-direction: column;     
        align-items: flex-start;    
        gap: 6px;
    }
    
    .file-action .status-text {
        margin-bottom: 4px;
        display: block;
    }
    
    .file-action .btn {
        width: 100%;                
        text-align: center;
        font-size: 0.85rem;
        padding: 6px 10px;
        margin-left: 0 !important;
    }
    
    .file-action form {
        width: 100%;
    }

    .btn-edit {
        flex-direction: column;
        align-items: stretch; /* tombol memenuhi lebar container */
    }

    .btn-edit .btn{
        width: 100%;             /* lebar penuh */
        font-size: 0.9rem;       /* sedikit kecil agar muat */
        padding: 10px 12px;      /* nyaman untuk tap */
        margin-bottom: 8px;
    }

    #infoModal .modal-dialog {
        width: 95%;
        margin: 0 auto;
    }
    
    #infoModal .modal-content {
        height: auto;
        /* padding: 1rem; */
        border-radius: 10px;
    }
    
    #infoModal .modal-title {
        font-size: 1.1rem;
        text-align: center;
    }
    
    #infoModal .modal-body {
        text-align: left; /* biar lebih nyaman dibaca di layar kecil */
    }

    #infoModal .modal-body .kiri {
        padding-bottom: 1rem;
    }
    
    #infoModal .modal-body p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
    }
    
    #infoModal .modal-footer {
        display: flex;
        justify-content: center;
    }
    
    #infoModal .modal-footer .btn {
        width: 100%; /* tombol penuh di layar kecil */
        font-size: 1rem;
        padding: 10px;
    }

    .ganti-username-wrapper {
        position: relative;
        width: 100%;
        bottom: 0;
        left: 0;
        margin: 20px 0;
    }

    .ganti-password-card {
        width: 100%;
    }

  }
