/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "ArialMT", Arial, "sans-serif";
    background: #e8e8e8;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
}

/* Header Styles */
.header {
    background: #1e88e5;
    color: white;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.header-left {
    display: flex;
    align-items: center;
}

.naemt-logo {
    height: 60px;
    width: auto;
}

.header-center {
    flex: 1;
    text-align: center;
}

.header h1 {
    margin: 0;
    color: white;
    font-size: 30px;
    font-weight: bold;
    font-family: "ArialMT", Arial, "sans-serif";
}

.header-right {
    display: flex;
    align-items: center;
}

.language-selector {
    position: relative;
    display: inline-block;
}

.lang-toggle {
    background: white;
    color: #333;
    border: 1px solid #ccc;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    font-family: "ArialMT", Arial, "sans-serif";
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-toggle i {
    color: #333;
    font-size: 16px;
}

.lang-toggle:hover {
    background: #f8f9fa;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 4px;
    overflow: hidden;
    border: 1px solid #ccc;
    z-index: 1000;
}

.language-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid white;
}

.lang-option {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f1f3f4;
    font-family: "ArialMT", Arial, "sans-serif";
    font-size: 14px;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: #f8f9fa;
}

.lang-option.active {
    background: #e3f2fd;
    color: #1976d2;
}

.lang-icon {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.lang-option.active .lang-icon {
    color: #1976d2;
}

.lang-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.lang-option.active .lang-text {
    color: #1976d2;
}

/* Main Content */
.main-content {
    background: #e8e8e8;
    padding: 32px 64px;
    min-height: calc(100vh - 100px);
}

/* Description Boxes */
.description-box {
    background: white;
    padding: 24px;
    margin-bottom: 16px;
    border-radius: 4px;
}

.description-box p {
    margin: 0;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.6;
}

.instruction-text {
    margin-bottom: 8px !important;
}

.example-text {
    color: #666 !important;
    font-weight: normal !important;
    font-size: 12px !important;
}

/* Input Container */
.input-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 24px 0 8px 0;
}

.cert-input {
    width: 220px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-family: "Courier New", monospace;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    color: #000;
}

.cert-input:focus {
    outline: none;
    border-color: #1e88e5;
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2);
}

.btn-verify {
    background: #7cb342;
    color: white;
    border: none;
    height: 40px;
    padding: 0 32px;
    border-radius: 4px;
    font-size: 16px;
    font-family: "ArialMT", Arial, "sans-serif";
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-verify i {
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.btn-verify:hover {
    background: #689f38;
}

/* Reset Link */
.reset-link {
    text-align: center;
    margin-bottom: 32px;
}

.reset-link a {
    color: #dc3545;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    font-family: "ArialMT", Arial, "sans-serif";
}

.reset-link a:hover {
    text-decoration: underline;
}

/* Result Card */
.result-card {
    background: #c0c0c0;
    padding: 20px;
    border-radius: 4px;
    max-width: 640px;
    margin: 0 auto 32px auto;
}

/* Form Fields */
.form-field {
    margin-bottom: 4px;
}

.form-field-last {
    margin-top: 4px;
    margin-bottom: 0;
}

.field-label {
    display: block;
    color: #333;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 6px;
    font-family: "ArialMT", Arial, "sans-serif";
}

.field-input {
    width: 100%;
    background: white;
    border: 1px solid #999;
    padding: 8px;
    font-size: 14px;
    font-family: "ArialMT", Arial, "sans-serif";
    color: #333;
}

.field-input:focus {
    outline: none;
}

.field-input-center {
    text-align: center;
}

.field-input[value="Pass"] {
    background: white;
    color: #333;
    font-weight: normal;
    border: 1px solid #999;
}

.field-textarea {
    width: 100%;
    background: white;
    border: 1px solid #999;
    padding: 8px;
    font-size: 14px;
    font-family: "ArialMT", Arial, "sans-serif";
    color: #333;
    resize: none;
    height: 60px;
}

.field-textarea:focus {
    outline: none;
}

/* Field Rows */
.field-row {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 16px;
}

.field-row-three {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.field-group {
    display: flex;
    flex-direction: column;
}

.field-group-large {
    flex: 1;
}

.field-group-small {
    width: 120px;
}

.field-input-small {
    width: 120px;
}

.field-input-large {
    flex: 1;
}

/* Exit Section */
.exit-section {
    text-align: center;
    margin-top: 32px;
}

.btn-exit {
    background: white;
    color: #333;
    border: 1px solid #999;
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 14px;
    font-family: "ArialMT", Arial, "sans-serif";
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-exit i {
    color: #333;
    font-size: 18px;
}

.btn-exit:hover {
    background: #f8f9fa;
    border-color: #666;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #ffffff;
    margin: 15% auto;
    padding: 0;
    border: 1px solid #ccc;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

.modal-header {
    background-color: #000000;
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #ddd;
    text-decoration: none;
}

.modal-body {
    padding: 20px;
    text-align: left;
    background: #ffffff;
}

.modal-body p {
    color: #000;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.modal-footer {
    padding: 12px 20px;
    background-color: #ffffff;
    border-radius: 0 0 8px 8px;
    text-align: right;
}

.modal-btn {
    background-color: #1976d2;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.modal-btn:hover {
    background-color: #1565c0;
}

/* Utility Classes */
.hidden {
    display: none !important;
}