@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background: #FFFFFF;
    color: #808080;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: #1a1a1a;
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFF200;
}

header nav a {
    color: #cccccc;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    transition: color 0.2s;
}

header nav a:hover {
    color: #FFF200;
}

.search-section {
    text-align: center;
    padding: 60px 20px;
}

.search-section h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #1a1a1a;
    font-weight: 700;
}

.search-section p {
    color: #808080;
    margin-bottom: 30px;
}

.search-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-wrapper input {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    font-family: 'Manrope', sans-serif;
    background: #CCCCCC;
    color: #000000;
    border: 2px solid #CCCCCC;
    border-radius: 7px;
    outline: none;
    transition: border-color 0.2s;
}

.search-wrapper input::placeholder {
    color: #666666;
}

.search-wrapper input:focus {
    border-color: #FFF200;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 7px 7px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 10;
    display: none;
}

.search-results.active {
    display: block;
}

.search-results a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #1a1a1a;
    border-bottom: 1px solid #f0f0f0;
}

.search-results a:hover {
    background: #fffde6;
}

.search-results a .emp-code {
    font-size: 0.8rem;
    color: #808080;
}

.search-results .no-results {
    padding: 12px 20px;
    color: #808080;
    font-style: italic;
}

.card {
    background: white;
    border-radius: 5px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    border: 1px solid #e8e8e8;
}

.employee-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

.employee-info h2 {
    font-size: 1.6rem;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 6px;
}

.employee-info .emp-code {
    color: #808080;
    font-size: 0.9rem;
}

.qr-section {
    text-align: center;
}

.qr-section img {
    width: 200px;
    height: 200px;
}

.qr-section p {
    font-size: 0.75rem;
    color: #808080;
    margin-top: 6px;
}

.courses-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #1a1a1a;
    font-weight: 600;
}

.course-table {
    width: 100%;
    border-collapse: collapse;
}

.course-table th,
.course-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.course-table th {
    background: #1a1a1a;
    color: #FFF200;
    font-weight: 600;
}

.course-table tr:hover td {
    background: #fffde6;
}

.import-section {
    max-width: 500px;
    margin: 40px auto;
}

.import-section h2 {
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 700;
}

.upload-area {
    border: 2px dashed #CCCCCC;
    border-radius: 5px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.upload-area:hover {
    border-color: #FFF200;
}

.upload-area input[type="file"] {
    display: none;
}

.upload-area label {
    cursor: pointer;
    color: #808080;
}

.upload-area label strong {
    color: #1a1a1a;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    background: #FFF200;
    color: #000000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    margin-top: 15px;
    transition: background 0.2s;
}

.btn:hover {
    background: #e6d900;
}

.btn:disabled {
    background: #CCCCCC;
    color: #666666;
    cursor: not-allowed;
}

.message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 5px;
    display: none;
}

.message.success {
    background: #e8f5e9;
    color: #2e7d32;
    display: block;
}

.message.error {
    background: #ffebee;
    color: #c62828;
    display: block;
}

.not-found {
    text-align: center;
    padding: 60px 20px;
}

.not-found h2 {
    color: #c62828;
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    header .container {
        flex-direction: column;
        gap: 12px;
    }

    header nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    header nav a {
        margin-left: 0;
    }

    .employee-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .course-table {
        font-size: 0.8rem;
    }

    .course-table th,
    .course-table td {
        padding: 8px 6px;
    }
}
