/* CorpSecure™ - Clean Corporate Theme */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    background: #f4f6f8;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background: #1a365d;
    color: #a0c4ff;
    padding: 8px 20px;
    font-size: 12px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 2rem;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a365d;
}

.brand+sup {
    color: #3182ce;
    font-size: 0.7rem;
}

.tagline {
    display: block;
    font-size: 0.75rem;
    color: #718096;
}

.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    text-decoration: none;
    color: #4a5568;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.active {
    color: #3182ce;
    border-bottom-color: #3182ce;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.hero h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.hero p {
    opacity: 0.9;
    font-size: 1rem;
}

/* Main */
.main {
    padding: 40px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

/* Panel */
.panel {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.panel-header {
    background: #f7fafc;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.panel-header h2 {
    font-size: 1rem;
    color: #2d3748;
}

/* Form */
.form {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    color: #2d3748;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

/* Upload Box */
.upload-box {
    position: relative;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-box:hover {
    border-color: #3182ce;
    background: #f7fafc;
}

.upload-box input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.upload-text {
    display: block;
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 5px;
}

.upload-formats {
    font-size: 12px;
    color: #a0aec0;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 12px 24px;
    background: #3182ce;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #2c5282;
}

/* Info Panel */
.info-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    font-size: 14px;
    color: #2d3748;
    margin-bottom: 12px;
}

.info-card ul {
    list-style: none;
}

.info-card li {
    font-size: 13px;
    color: #48bb78;
    padding: 4px 0;
}

.info-card p {
    font-size: 13px;
    color: #718096;
}

.info-card .note {
    margin-top: 10px;
    font-size: 12px;
    color: #a0aec0;
    font-style: italic;
}

.format-list {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

.format {
    padding: 4px 10px;
    background: #edf2f7;
    border-radius: 4px;
    font-size: 12px;
    color: #4a5568;
}

.format.highlight {
    background: #ebf8ff;
    color: #3182ce;
    font-weight: 600;
}

/* Footer */
.footer {
    background: #1a365d;
    color: #a0c4ff;
    padding: 25px 0;
    text-align: center;
    margin-top: 40px;
}

.footer p {
    font-size: 13px;
}

.footer .small {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 5px;
}

/* Result Page */
.result-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.result-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    width: 100%;
    overflow: hidden;
}

.result-header {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: #fff;
    padding: 25px;
    text-align: center;
}

.result-header h2 {
    font-size: 1.2rem;
}

.id-card-result {
    padding: 30px;
}

.id-card-inner {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.card-top {
    background: #1a365d;
    color: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-top .logo-mini {
    font-size: 1.5rem;
}

.card-top .company {
    font-weight: 700;
}

.card-body-result {
    padding: 20px;
    display: flex;
    gap: 15px;
}

.avatar-box {
    width: 80px;
    height: 80px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
}

.avatar-box img,
.avatar-box svg {
    max-width: 100%;
    max-height: 100%;
}

.avatar-content-box {
    width: 80px;
    max-height: 80px;
    overflow: auto;
    font-size: 8px;
    font-family: monospace;
    padding: 5px;
    background: #f7fafc;
    word-break: break-all;
}

.emp-details h3 {
    font-size: 1rem;
    color: #2d3748;
}

.emp-details p {
    font-size: 12px;
    color: #718096;
    margin-top: 3px;
}

.emp-details .access {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    background: #ebf8ff;
    color: #3182ce;
    border-radius: 4px;
    font-size: 11px;
}

.btn-back {
    display: block;
    text-align: center;
    margin-top: 20px;
    padding: 10px 20px;
    background: #3182ce;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
}

.btn-back:hover {
    background: #2c5282;
}

/* Responsive */
@media (max-width: 800px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .nav {
        display: none;
    }
}