:root {
    --primary: #8EC142;
    --primary-hover: #7aa638;
    --bg-dark: #000000;
    --card-bg: #111111;
    --text-light: #ffffff;
    --text-muted: #888888;
    --border-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    /* geometric background pattern */
    background-image: linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
}

.background-animation {
    display: none;
    /* Removed colorful blobs */
}

main {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0;
    /* sharper edges for infinix vibe */
    padding: 40px;
    box-shadow: 0 0 0 1px #222;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    /* changed from gradient */
    text-transform: uppercase;
    letter-spacing: 2px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

input[type="text"],
textarea {
    width: 100%;
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 12px 16px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: black;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background: var(--primary-hover);
}

/* Upload & Crop Section */
.upload-area {
    border: 1px dashed var(--border-color);
    border-radius: 4px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
    margin-bottom: 20px;
    background: #000;
}

.upload-area:hover {
    border-color: var(--primary);
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-muted);
    filter: grayscale(100%);
}

.upload-preview {
    display: none;
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
}

#previewImage {
    max-width: 200px;
    border: 1px solid var(--primary);
    border-radius: 0;
}

.crop-container {
    max-height: 500px;
    width: 100%;
    margin-bottom: 20px;
    display: none;
    position: relative;
    z-index: 100;
}

/* Result Page */
.id-card {
    position: relative;
    width: 100%;
    height: 500px;
    background-color: #000;
    border: 1px solid var(--border-color);
    border-radius: 0;
    overflow: hidden;
    color: white;
}

.id-card-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    z-index: 2;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 0;
    /* Square */
    object-fit: cover;
    margin-bottom: 20px;
    border: 2px solid white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    filter: grayscale(100%);
    /* Optional: force photo to B&W? User asked for theme, usually implies UI. Let's start with UI B&W, leaving photo color unless requested. Wait, user said "Strict black and white theme". Let's apply grayscale filter to the image container or just UI? "no other colors". I will apply grayscale filter to profile pic in UI just in case for the result page vibe. */
}

/* Admin Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

th,
td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: #000;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 1px;
}

tr:hover td {
    background: #0a0a0a;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}