* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0f766e;
    --primary-hover: #115e59;
    --background: #eef2f6;
    --surface: #ffffff;
    --border: #dbe4ea;
    --text: #1f2937;
    --text-light: #6b7280;
    --shadow: 0 12px 30px rgba(15, 23, 42, .08);
    --radius: 18px;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--background);
    color: var(--text);
    overflow: hidden;
}

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.app {
    height: 100vh;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.header {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
}

.brand-info h1 {
    font-size: 24px;
    font-weight: 700;
}

.brand-info p {
    margin-top: 4px;
    color: var(--text-light);
    font-size: 14px;
}

.search-input {
    width: 320px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0 18px;
    outline: none;
    transition: .25s;
}

.search-input:focus {
    border-color: var(--primary);
}

.main {
    flex: 1;
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 20px;
    min-height: 0;
}

.sidebar,
.detail {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 22px;
    border-bottom: 1px solid var(--border);
}

.sidebar-header h2 {
    font-size: 18px;
}

#totalEmployee {
    display: block;
    margin-top: 6px;
    color: var(--text-light);
    font-size: 14px;
}

.employee-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.employee-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 14px;
    transition: .25s;
    cursor: pointer;
    margin-bottom: 10px;
}

.employee-card:hover,
.employee-card.active {
    background: #edf8f6;
}

.employee-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    background: #dbe4ea;
}

.employee-avatar-placeholder {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.employee-info {
    flex: 1;
}

.employee-info h3 {
    font-size: 15px;
    font-weight: 600;
}

.employee-info p {
    margin-top: 4px;
    color: var(--text-light);
    font-size: 13px;
}

.detail {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.detail-empty {
    text-align: center;
    color: var(--text-light);
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.detail-content {
    width: 100%;
}

.profile {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 40px;
}

.photo-wrapper {
    width: 170px;
    height: 220px;
    border-radius: 18px;
    overflow: hidden;
    background: #edf2f7;
    border: 1px solid var(--border);
}

.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h2 {
    font-size: 32px;
    font-weight: 700;
}

.profile-info span {
    display: block;
    margin-top: 10px;
    color: var(--text-light);
    font-size: 18px;
}

.information {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-bottom: 40px;
}

.info-item {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
}

.info-item label {
    display: block;
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 8px;
}

.info-item span {
    font-size: 17px;
    font-weight: 600;
}

.document-button {
    border: none;
    background: var(--primary);
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    transition: .25s;
}

.document-button:hover {
    background: var(--primary-hover);
}

.loading {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, .65);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.spinner {
    width: 55px;
    height: 55px;
    border: 5px solid #d1d5db;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: #cfd8df;
    border-radius: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1024px) {
    .main {
        grid-template-columns: 1fr;
    }

    .search-input {
        width: 220px;
    }

    .information {
        grid-template-columns: 1fr;
    }

    .profile {
        flex-direction: column;
        text-align: center;
    }
}