/********** USERS CSS **********/

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
/*** Login/Register  ***/
.r-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.login-wrapper {
    display: flex;
    margin-top: 30px;
    width: 900px; /* Lebarkan container */
    height: 490px; /* Tinggikan container */
    background: rgba(156, 59, 59, 0.1);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.left-section {
    width: 50%;
    background: linear-gradient(to right, #3e2723, #795548);
    display: flex;
    justify-content: center;
    align-items: center;
}

.right-section {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(to bottom, #a7a2a2, #D6D6D6);
}

.register-container .login-container {
    padding: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 100%;
    color: white;
}

.register-container h1 .login-container h1{
    text-align: center;
    color: #fff;
    justify-content: center;
}

.form-floating input {
    border: none;
    border-radius: 20px;
    padding: 12px;
    background: #bebebe;
    border: 1px solid #000000;
    color: #3e2723;
}

.form-floating label {
    color: #5d4037;
    padding-left: 10px;
}

/*** HomeBlade  ***/

.sidebar {
    background: linear-gradient(to right, #533530, #5d4037);
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    width: 250px;
    height: 100vh;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
}

.main-content {
    margin-left: 250px;
    padding: 20px;
    margin-top: 70px;

}

.navbar-nav {
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.nav-item {
    padding: 0 !important;
    margin: 0 !important;
}

.nav-link{
    padding: 5px 15px !important;
}



/*** Title of every page ***/
.pagename{
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    top: 30px;
    left: 265px;
    margin: 40;
    color: #000000;
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}


/*** table ***/

table {
    margin-left: auto;
    margin-right: auto;
    width: auto;
    margin-top: 40px;
}

.table thead th {
    text-align: center;
    vertical-align: middle;
    color: whitesmoke;
    background-color:#5d4037;
}

.table td {
    color: #000000;
    text-align: center;

}

.table tbody tr:nth-of-type(odd) td {
    background-color: #b5b9bd;
}

.table tbody tr:nth-of-type(even) td {
    background-color: #d3d6db;
}

/*** PAGINATION ***/
.pagination .page-item .page-link {
    background-color: #6e4c41; /* Light brown (sienna) */
    color: white;
    border: none;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background-color: #533530; /* Darker brown for active */
    color: white;
    border: none;
}

/*** DASHBOARD/HOME ***/

.containerD {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(200px, auto); /* biar tinggi ikut isi */
    grid-gap: 20px;
    margin: 20px;
    overflow: hidden;
    padding: 20px;
    margin:0 auto;
}

.card {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    background-color: white;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
}

.card h4 {
    top: 40px;
    margin-bottom: 15px;
    font-weight: bold;
}

#inOutChart {
    max-width: 100%;
    height: 300px !important;
    display: block;
    margin: 0 auto;
}

.card ul {
    list-style-type: disc;
    padding-left: 20px;
}

.card.card-1{
    background: linear-gradient(to right, #533530, #5d4037);
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;

    color: #000000;
    font-size: large;
    border-color: #000000;
}
.card.card-2{
    border-color: #000000;
    margin-right: 20px;
}

.card.card-3{
    background: white;
    color: #ffffff;
    font-size: large;
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    text-align: left;
    gap: 20px;
    border-color: #000000;
    margin-right: 10px;
}

.card.card-4{
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    border-color: #000000;
    margin-right: 20px;
}

.card-2 {
    text-align: center;
    padding-top: 35px;
    font-size: 2.0rem ;
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;

}


.card-3 {

    grid-column: 3;
    grid-row: 1 / span 2;
    margin-left: -10px;
}

.card-4 {
    margin-top: -20px;
    grid-column: 1 / span 2;
    grid-row: 2;
}

/* Center the time and date */
.time-container {
    margin-top: 22px;
    text-align: center;

}

#clock {

    font-size: 2.5rem ;
    font-weight: bold ;
    color: rgb(241, 241, 241);
    margin-top: 0px !important;
}

.flex-container {
    display: flex;
    align-items: center;  /* vertically center */
    justify-content: center; /* space between chart and labels */
    gap: 70px;
    height: 230px;  /* same as canvas height */
}

.chart-container {
    flex: 0 0 auto;
}

.chart-container canvas {
  width: 150px !important;
  height: 150px !important;
}

.custom-labels {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    align-items: flex-start;
    width: 100px;
    margin-left: 100px;
    margin-top: -20px;
}

.label-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.label-item {
    width: 30px;
    height: 15px;
    display: inline-block;
}


/*** LOG ***/
.searchB {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    position: absolute;
    right: 20px;
    width: auto;
    margin-top: -25px;
    margin-right: 30px;
}

/*** residentlsit ***/
.searchC {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    position: absolute;
    right: 20px;
    width: auto;
    margin-top: -25px;
    margin-right: 30px;
}
