﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #0d1117;
    color: #c9d1d9;
}

.tab {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 95%;
    background: #161b22;
    padding: 20px 30px;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    border: 1px solid #30363d;
}

/* Tab Header */
.tab .tab-header {
    height: 60px;
    display: flex;
    align-items: center;
}

.tab .tab-header > div {
    width: calc(100% / 5);
    text-align: center;
    color: #8b949e;
    font-weight: 500;
    cursor: pointer;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    outline: none;
    transition: color 0.3s;
}

.tab .tab-header > div:hover {
    color: #f0f6fc;
}

.tab .tab-header > div.active {
    color: #58a6ff;
}

.tab .tab-indicator {
    position: relative;
    width: 20%;
    height: 4px;
    background: #58a6ff;
    border-radius: 4px;
    left: 0px;
    transition: all 500ms ease-in-out;
}

/* Tab Body - không set chiều cao cứng, để tự động */
.tab .tab-body {
    position: relative;
    height: calc(100% - 60px);
    padding: 15px 5px;
    overflow: auto;
	width: 99%;
}

/* Mỗi tab con: ẩn mặc định, hiển thị khi có class active */
.tab .tab-body > div {
    position: absolute;
    top: -200%;
    opacity: 0;
    margin-top: 5px;
    transform: scale(0.9);
    transition: opacity 500ms ease-in-out 0ms,
                transform 500ms ease-in-out 0ms;
}

.tab .tab-body > div.active {
    top: 0px;
    opacity: 1;
    transform: scale(1);
    margin-top: 0px;
}

/* Form & Table */
table {
    width: 100%;
    border-collapse: collapse;
    color: #c9d1d9;
}

td {
    padding: 10px 8px;
    border-bottom: 1px solid #21262d;
}

input {
    background: #0d1117;
    border: 1px solid #30363d;
    color: #c9d1d9;
    color-scheme: dark;
    padding: 10px 14px;
    border-radius: 8px;
    width: 100%;
    font-size: 15px;
    transition: border 0.3s;
}

select {
    background: #0d1117;
    border: 1px solid #30363d;
    color: #c9d1d9;
    padding: 5px 5px;
    border-radius: 8px;
    font-size: 15px;
    transition: border 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.3);
}

/* Nút bấm */
.button {
    background: #238636;
    background-image: none;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
    height: 44px;
    line-height: 44px;
    padding: 0 24px;
    text-align: center;
    width: 100%;
    transition: background 0.2s;
}

.button:hover {
    background: #2ea043 !important;
    box-shadow: 0 0 20px rgba(35, 134, 54, 0.3);
}

/* Input effect */
.effect-9 {
    border: 1px solid #30363d;
    padding: 10px 14px;
    border-radius: 8px;
    background: #0d1117;
    color: #c9d1d9;
}

/* Headings */
h2, h3, h4 {
    color: #f0f6fc;
    margin: 15px 0 10px;
}

h2 {
    font-size: 22px;
    border-left: 4px solid #58ff71;
    padding-left: 12px;
}

/* Scrollbar tối */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #161b22;
}
::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

/* Thêm một chút responsive */
@media (max-width: 768px) {
    .tab {
        width: 95%;
        padding: 15px 20px;
        border-radius: 30px;
    }
    .tab .tab-header > div {
        font-size: 12px;
        padding: 8px 0;
    }
    h2 {
        font-size: 18px;
    }
}