* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bgcolor: #1a1a1a;
    --textcolor: #e1e1e1;
	--bgcolorcontentbox: #2b2b2b;
	--bgcreateacc: #3a3a3a;
	--fontSheader: 20px;
	--fontSmain: 16px;
	--borderR: 20px;
	--borderInput: 10px;
}

html, body {
    height: 100%;
	width: 100%;
    overflow: hidden;
    background-color: var(--bgcolor);
    color: var(--textcolor);
    font-family: "Segoe UI", Roboto, sans-serif;
	user-select: none;
    -webkit-text-size-adjust: none;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100%;
	width: 100%;
    overscroll-behavior: none;
}

header {
    height: 60px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-size: var(--fontSheader);
    font-weight: bold;
    position: relative;
    padding-bottom: 20px;
}

main {
    flex: 1;
    overflow-y: auto;
	font-size: var(--fontSmain);
	color: var(--textcolor);
	width: 100%;
}

.contentbox {
    background-color: var(--bgcolorcontentbox);
    margin: 0 5% 10px;
    border-radius: var(--borderR);
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 15px;
	width: 90%;
}

.buttonbox {
    display: block;       /* Đảm bảo button có thể nhận chiều rộng */
    border: none;
    outline: none;
    cursor: pointer;
	color: var(--textcolor);
	font-size: var(--fontSmain);
}

/* Hiệu ứng hover */
@media (hover: hover) and (pointer: fine) {
    .buttonbox:hover {
        background-color: #333;
    }
	.formwrapper button:hover {
		background: #0099dd;
	}
}

/* Hiệu ứng khi click */
.buttonbox:active {
    transform: scale(0.96);
    background-color: #222;
}

/* Đảm bảo button không bị focus với viền */
.buttonbox:focus {
    outline: none;
}

/* Điều chỉnh chiều cao của button khi hiển thị các input */
.buttonbox.open {
    height: auto; /* Tự động mở rộng chiều cao */
}

.bgbuttonbox {
	background-color: var(--bgcreateacc);
	width: 90%;
	margin-left: 5%;
	margin-bottom: 10px;
	border-radius: var(--borderR);
}

.createbutton {
	width: 100%;
	display: block;       /* Đảm bảo button có thể nhận chiều rộng */
	color: var(--textcolor);
	margin-left: 0%;
	border: none;
	font-size: var(--fontSmain);
}

/* Sắp xếp DỌC và CĂN GIỮA ở layer bên trong */
.formwrapper {
    display: flex;
    flex-direction: column;     /* sắp xếp theo chiều dọc */
	width: 80%;
	margin-left: 10%;
	margin-top: 20px;
}

/* Label */
.formwrapper .title {
	margin-left: var(--borderInput);
	margin-bottom: 5px;
	font-size: 14px;
}

/* Inputs */
.formwrapper input {
	background-color: var(--bgcreateacc);
    border: 1px solid #666;
    padding: 10px;
    border-radius: var(--borderInput);
    color: var(--textcolor);
	margin-bottom: 20px;
	font-size: 16px;
}

.formwrapper input:focus {
    outline: none;
    border-color: #0088cc;
    background: #333;
}

/* Message */
.formwrapper .message {
    min-height: 18px;
    color: #ff4d4d;
    font-size: 13px;
	margin-bottom: 20px;
	margin-left: var(--borderInput);
	transform: translateY(-15px);
}

/* Button */
.formwrapper button {
    background: #0088cc;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    color: white;
    border: none;
    cursor: pointer;
	transform: translateY(-15px);
}

.formwrapper button:active {
    transform: scale(0.97) translateY(-15px);
}

footer {
    position: relative;
    height: 85px;
    background-color: #1a1a1a;
}

.footer-wrapper {
    position: fixed;
    background: #2b2b2b;
    border-radius: 30px;
    display: flex;
    justify-content: space-around;
    height: 60px;
	width: 90%;
	margin-left: 5%;
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
    border-radius: 30px;
}

.nav-btn.active {
    opacity: 1;
    background: #3a3a3a;
}

.nav-icon {
    font-size: 22px;
    margin-bottom: 3px;
    color: #0088cc;
}

.nav-text {
    font-size: 11px;
}

#logoutBtn {
    color: red;
}
