/* Import Google Font cdn link */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap");
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Poppins, sans-serif;
}
body:not(.home-page):not(.login-page){
    display: flex;
    background: #ebe9e9;
}
.main--content{
    margin-left: 115px;
    flex: 1;
    width: calc(100% - 115px);

    padding: 2rem;
    min-height: 100vh;

    transition: all 0.5s ease;
}
.sidebar {
    position: fixed;
    top: 0;
    left: 0;

    width: 115px;
    height: 100vh;

    padding: 0 1rem;
    background: rgba(113, 99, 186, 255);

    overflow-y: auto;
    overflow-x: hidden;

    transition: all 0.5s ease;
    z-index: 1000;
}
.sidebar:hover {
    width: 240px;

}
/* saat hover sidebar */
.sidebar:hover ~ .main--content{
    margin-left: 240px;
    width: calc(100% - 240px);
}
.logo{
    height: 80px;
    padding: 16px;
}
.menu{
    height: 88%;
    position: relative;
    list-style: none;
    padding: 0;
}
.menu li {
    padding: 0.5rem;
    margin: 8px 0;
    border-radius: 8px;
    transition: all 0.5s ease-in-out;
}
.menu li:hover{
    background: #e0e0e058;
}
.menu a {
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.menu a span {
    overflow: hidden;
}
.menu a i {
    font-size: 1.2rem;
}
.logout {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

/* **** main body section **** */
.header--wrapper{
    background:white;
    border-radius:14px;
    padding:20px 30px;
    margin-bottom:20px;
                        
    display:flex;
    justify-content:space-between;
    align-items:center;
}
/* KIRI */
.header-lefts{
    display: flex;
    flex-direction: column;
    gap: 30px;
}
/* KANAN */
.header-rights{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}
/* FILTER */
.filter-left{
    display: flex;
    gap: 15px;
    flex-direction: wrap;

}
.header-form{
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.header-right{
    display: flex;
    align-items: center;
    gap: 15px;
    
}
.header-right img{
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}
@media(max-width:768px){

    .sidebar{
        width: 70px;
        padding: 0 0.5rem;
    }

    .sidebar:hover{
        width: 200px;
    }

    .main--content{
        margin-left: 70px;
        width: calc(100% - 70px);
        padding: 1rem;
    }

    .sidebar:hover ~ .main--content{
        margin-left: 200px;
        width: calc(100% - 200px);
    }

    .menu a span{
        font-size: 12px;
    }

    .header--wrapper{
        flex-direction: column;
        align-items: flex-start;
    }

    .header-right{
        width: 100%;
        justify-content: space-between;
    }

    .search--box{
        width: 100%;
    }
}
.title-data{
    color: rgba(113, 99, 186, 255);
    font-size: 12px;
    font-weight: 100;
}
.amount{
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.search--box{
    background: rgba(237, 237, 237);
    border-radius: 20px;
    color: rgb(113, 99, 186, 255);

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 6px 12px;

    width: 320px;
    max-width: 100%;

}
.search--box input {
    background: transparent;
    border:none;
    outline:none;

    width:100%;
    font-size: 15px;
}
.search--box i {
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.5s ease-out;
}
.search--box i:hover {
    transform: scale(1.2);
}

/* ****** card container ****** */
.card--container {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
}
.card--wrapper {
    display: grid;
    grid-template-columns:
    repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.main--title {
    color: rgba(113, 99, 186, 255);
    padding-bottom: 10px;
    font-size: 15px;
}
.payment--card {
    background: rgba(229, 223, 223);
    border-radius: 16px;

    padding: 20px;

    min-height: 140px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    transition: all 0.5s ease-in-out;
}
.payment--card:hover {
   transform: translateY(-5px);
}
.card--header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.title {
    font-size: 12px;
    font-weight: 200;
}
.amount--value {
    font-size: 24px;
    font-family: "Courier New", 'Courier New', Courier, 
    monospace;
    font-weight: 600;
}
.icon {
    color: #fff;
    padding: 1rem;
    height: 60px;
    width: 60px;
    text-align: center;
    border-radius: 50%;
    font-size: 1.5rem;
    background: blueviolet;
}
.card-detail {
    font-size: 18px;
    color: #777777;
    letter-spacing: 2px;
    font-family: "Courier New", Courier,
    monospace;
}

/* color css */
.light-red {
    background: #E1D9FD;
}
.light-purple {
    background: #E1D9FD;
}
.light-green {
    background: #E1D9FD;
}
.light-blue {
    background: #E1D9FD;
}
.dark-red {
    background: #E82F34;
}
.dark-purple {
    background: #FDC86E;
}
.dark-green {
    background: #86C043;
}
.dark-blue {
    background: #45A0F5;
}


/* ***** tabular section ***** */
.tabular--wrapper {
    background: #fff;
    margin-top: 1rem;
    border-radius: 10px;
    padding: 2rem;
}
.table-container {
    width: 100%;
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}
thead {
    background: rgba(113, 99, 186, 255);
    color: #fff;
}
th {
    padding: 15px;
    text-align: center;
}
td {
    padding: 15px;
    font-size: 14px;
    color: #333;
}
tfoot{
    background: rgba(113, 99, 186, 255);
    font-weight: bold;
    color: #fff;
}
tfoot td {
    padding: 15px;
}
.table-container button {
    color: green;
    background: none;
    cursor: pointer;
}
/* DROPDOWN */
.filter-select{
    padding: 15px 10px;
    border-radius:14px;
    border: 1px solid #ddd;
    font-size: 16px;
    background: white;
    color: #222;
    width: 220px;
    cursor: pointer;
}
/* BUTTON TAMBAH */
.add-btn{
    padding: 15px 15px;
    background: #45A0F5;
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-left: auto;
    text-decoration: none;
}

/* CONTAINER */
.form-container{
    width: 100%;
    max-width: 950px;
    margin: 30px auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
/* HEADER */
.form-header{
    background: #6D57D8;
    color: white;
    padding: 30px;
    border-bottom: 1px solid #eee;
}
.form-header h1{
    font-size: 30px;
    margin-bottom: 8px;
}
.form-header p{
    opacity: 0.9;
}

/* FORM */
form{
    padding: 30px;
}

.form-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 10px;
}
.full-width{
    grid-column: 1 / 3;
}
.form-group{
    display: flex;
    flex-direction: column;
    width: 100%;
}
label{
    margin-bottom: 10px;
    font-weight: bold;
    color: #555;
}
input,
select,
textarea{
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 14px;
    font-size: 15px;
    outline: none;
    background: #fff;
}
input[type="file"]{
    padding: 10px;
    background: white;
}
textarea{
    resize: none;
    height: 120px;
}
input:focus,
select:focus,
textarea:focus{
    border-color: #6D57D8;
}
/* FILE */
.file-upload{
    background: #f7f7ff;
    border: 2px dashed #c9c2ff;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
}
/* BUTTON */
button{
    border: none;
}
.form-footer{
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}
.cancel-btn{
    padding: 14px 28px;
    border: 1px solid #ddd;
    border-radius: 14px;
    background: white;
    cursor: pointer;
}
.cancel-btn:hover{
    background: #f3f3f3;
}
.save-btn{
    padding: 14px 28px;
    background: #6D57D8;
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: bold;
    cursor: pointer;
}
.save-btn:hover{
    background: #5b46c7;
}
/* RESPONSIVE */
@media(max-width: 768px){
    .form-grid{
        grid-template-columns: 1fr;
    }
    .full-width{
        grid-column: auto;
    }
}
/* Tombol Edit */
.edit-btn{
    color: blue;
    text-decoration: none;
    font-weight: 600;
    margin-right: 10px;
}

/* Tombol Delete */
.delete-btn{
    color: red;
    text-decoration: none;
    font-weight: 600;
    margin-right: 10px;
}

.delete-btn:hover{
    opacity: 0.7;
}
/* ===== HALAMAN LOGIN / HOME ===== */
.home-page{
    margin: 0;
    padding: 0;
    height: 100vh;
}

/* Background landing page */
.landing-page {
    background: url("image/background.png") no-repeat center center;
    background-size: 100% 100%;
    height: 100vh;

    /* supaya isi di tengah */
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Pembungkus logo + tombol */
.content {
    display: flex;
    flex-direction: column;   /* tombol otomatis di bawah logo */
    align-items: center;      /* rata tengah horizontal */
    justify-content: center;
    gap: 5px;                /* jarak logo ke tombol */

    transform: translateY(-20px); /* naik 80px */
}
/* Logo */
.logo{
    width: 400px;
    height: auto;
}

/* Tombol login */
.btn-login {
    text-decoration: none;
    background: #c8b6ff;
    color: white;
    padding: 18px 50px;
    border-radius: 20px;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    transition: 0.3s;
}

/* Hover tombol */
.btn-login:hover{
    background: #b29cff;
    transform: scale(1.05);
}
/* Halaman login */
.login-page {
    margin: 0;
    padding: 0;
    height: 100vh;

    /* Background sama seperti index */
    background: url("image/background.png") no-repeat center center;
    background-size: 100% 100%;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* Kotak login */
.login-container {
    width: 400px;
    height: 500px;
    background: #e9e7ef;
    border: 4px solid #222;
    border-radius: 25px;
    padding: 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo */
.login-logo {
    width: 180px;
    margin-bottom: 20px;
}

/* Tab menu */
.tab-menu {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.tab-btn {
    border: none;
    padding: 13px 25px;
    border-radius: 15px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.tab-btn.active {
    background: #4da6ff;
    color: white;
}

.tab-btn:not(.active) {
    background: #d8c8ff;
    color: black;
}

/* Form login */
.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 10px 30px;
}

/* Label */
.login-form label {
    font-weight: bold;
    margin-bottom: 0px;
    margin-top: 10px;
    font-size: 14px;

}

/* Input */
.login-form input {
    padding: 12px;
    border: 2px solid #333;
    border-radius: 10px;
    font-size: 12px;
    margin-bottom: 10px;
}

/* Tombol submit */
.btn-submit {
    margin-top: 25px;
    padding: 15px;
    background: #8bc34a;
    color: black;
    border: none;
    border-radius: 12px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
}

.btn-submit:hover {
    background: #7cb342;
}
/* Container form registrasi */
.register-form {
    width: 100%;
    padding: 10px 30px;

    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* Membuat 2 kolom */
.form-row {
    display: flex;
    gap: 15px;           /* jarak antar kolom */
    width: 100%;
    justify-content: center;
    
}

/* Tiap kolom */
.input-group.register-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Label */
.input-group label {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
    margin-top: 0;
    color: #444;
}

/* Input */
.input-group input {
    width: 150px;  
    height: 30px;
    padding: 10px;
    
    border: 2px solid #333;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    background: white;
}

/* Tombol daftar */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: #4da6ff;
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #2d8cff;
}
/* responsive */
@media(max-width:768px){

    .form-row{
        flex-direction: column;
    }
}
.photo-edit{
    margin-bottom: 20px;
}

.photo-edit input{
    margin-top: 10px;
}
/* HEADER */
.profile-top{
    background:white;
    border-radius:14px;
    padding:20px 30px;
    margin-bottom:20px;
                        
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.title span{
    color:#7c6ad8;
    font-size:14px;
}

.title h1{
    color:#6D57D8;
    margin-top:5px;
    font-size:38px;
}

.admin-box{
    display:flex;
    align-items:center;
    gap:12px;
}

.admin-box img{
    width:45px;
    height:45px;
    border-radius:50%;
}

.admin-info h4{
    font-size:15px;
}

.admin-info p{
    font-size:12px;
    color:#777;
}

/* GRID */
.profile-grid{
    display:grid;
    grid-template-columns:1.3fr 1fr;
    gap:20px;
    margin-bottom:20px;
}

/* CARD */
.card{
    background:white;
    border-radius:14px;
    padding:25px;
}

.card-title{
    color:#6D57D8;
    font-size:20px;
    font-weight:bold;
    margin-bottom:25px;

    display:flex;
    align-items:center;
    gap:10px;
}

/* PROFILE */
.profile-content{
    display:flex;
    gap:30px;
    align-items:flex-start;
}

.profile-left{
    text-align:center;
    min-width:180px;
}

.profile-left img{
    width:120px;
    height:120px;
    border-radius:50%;
    object-fit:cover;
    margin-bottom:15px;
}

.profile-left h3{
    color:#333;
    margin-bottom:5px;
}

.profile-left p{
    color:#6D57D8;
    margin-bottom:5px;
}

.profile-left span{
    color:#777;
    font-size:14px;
}

.edit-btn{
    margin-top:18px;
    display:inline-block;
    padding:10px 22px;
    background: #FDC86E;
    color:black;
    border-radius:10px;
    text-decoration:none;
    font-size:14px;

}
.delete-btn{
    margin-top:18px;
    display:inline-block;
    padding:10px 22px;
    background: #E82F34;
    color:white;
    border-radius:10px;
    text-decoration:none;
    font-size:14px;
}
/* TABLE INFO */
.info-table{
    width:100%;
    border-collapse:collapse;
}

.info-table td{
    padding:10px 0;
    border-bottom:1px solid #eee;
    font-size:14px;
}

.info-table td:first-child{
    width:160px;
    color:#666;
}

.info-table td:last-child{
    font-weight:500;
}

/* ===== PASSWORD 2 BARIS ===== */

.password-form{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.password-row{
    display: flex;
    gap: 20px;
    width: 100%;
}

.input-group.password-group{
    flex: 1;
    display: flex;
    flex-direction: column;
}

.input-group label{
    margin-bottom: 8px;
    font-weight: 600;
}

.input-group input{
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    outline: none;
}

.input-group input:focus{
    border-color: #6D57D8;
}

.button-group{
    justify-content: flex-end;
}

.save-btn{
    margin-top: auto;
    padding: 14px;
    background: #6D57D8;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

/* RESPONSIVE */
@media(max-width:768px){

    .password-row{
        flex-direction: column;
    }
}
/* AKTIVITAS */
.activity-table{
    width:100%;
    border-collapse:collapse;
}

.activity-table thead{
    background:#f3f0ff;
}

.activity-table th{
    padding:14px;
    text-align:left;
    color:#6D57D8;
    font-size:14px;
}

.activity-table td{
    padding:14px;
    border-bottom:1px solid #eee;
    font-size:14px;
}

/* RESPONSIVE */
@media(max-width:900px){
    .profile-grid{
        grid-template-columns:1fr;
    }
    .profile-content{
        flex-direction:column;
        align-items:center;
    }
    .info-table td:first-child{
        width:120px;
    }
}
/* REGISTER */
.register-container{
    width:100%;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#f3f3f3;
}

.register-card{
    width:450px;
    height: 600px;
    background:white;
    padding:40px;
    border-radius:25px;
    box-shadow:0 10px 30px rgba(0,0,0,0.1);
}

.register-header{
    text-align:center;
    margin-bottom:-10px;
}

.register-header i{
    font-size:45px;
    color:#6c5ce7;
    margin-bottom:5px;
}

.register-header h1{
    color:#6c5ce7;
    font-size:36px;
}

.form-group{
    margin-bottom:5px;
}

.form-group label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
    color:#333;
}

.form-group input,
.form-group select{
    width:100%;
    padding:14px;
    border:1px solid #ddd;
    border-radius:12px;
    font-size:15px;
    outline:none;
    transition:0.3s;
}

.form-group input:focus,
.form-group select:focus{
    border-color:#6c5ce7;
}

.register-btn{
    width:100%;
    padding:14px;
    border:none;
    border-radius:12px;
    background:#6c5ce7;
    color:white;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
    margin-top:10px;
    transition:0.3s;
}

.register-btn:hover{
    background:#5848d8;
}

.back-btn{
    display:block;
    text-align:center;
    margin-top:15px;
    text-decoration:none;
    color:#666;
    font-weight:600;
}
/* GRID FORM */
.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

/* PASSWORD FULL */
.full-width{
    grid-column:1 / 3;
}
