/* ---------------------------------------------------------
   GLOBAL RESET & BASE
--------------------------------------------------------- */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #181818; /* employee soft-dark default */
    color: #e6e6e6;
}

/* Admin theme override */
body.admin-dark {
    background: #121212;
    color: #e0e0e0;
}

/* ---------------------------------------------------------
   APP TITLE (always above content)
--------------------------------------------------------- */

.app-title {
    margin: 0;
    padding: 14px 10px;
    text-align: center;
    background: #222;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ---------------------------------------------------------
   LAYOUT
--------------------------------------------------------- */

.main-center {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 18px;
}

.card {
    width: 100%;
    max-width: 480px;
    background: #222; /* soft-dark card */
    color: #e6e6e6;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

/* Admin card override */
body.admin-dark .card {
    background: #1e1e1e;
    color: #e0e0e0;
}

h2, h3 {
    margin-top: 0;
    font-weight: 600;
}

/* ---------------------------------------------------------
   INPUTS
--------------------------------------------------------- */

.input-full {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: #eee;
    font-size: 15px;
}

body.admin-dark .input-full {
    background: #2b2b2b;
    border-color: #555;
}

/* ---------------------------------------------------------
   BUTTONS
--------------------------------------------------------- */

.btn {
    display: inline-block;
    padding: 12px;
    border-radius: 10px;
    border: none;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: #3d82ff;
    color: #fff;
}

.btn-secondary {
    background: #555;
    color: #fff;
}

.btn-small {
    padding: 6px 10px;
    font-size: 13px;
}

/* ---------------------------------------------------------
   ERROR BOX
--------------------------------------------------------- */

.error-box {
    background: #ffdddd;
    color: #900;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* ---------------------------------------------------------
   TABLES
--------------------------------------------------------- */

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 14px;
}

.table th,
.table td {
    border: 1px solid #444;
    padding: 6px;
    text-align: left;
}

.table.small th,
.table.small td {
    font-size: 12px;
    padding: 4px;
}

/* Admin table override */
body.admin-dark .table th,
body.admin-dark .table td {
    border-color: #555;
}

/* ---------------------------------------------------------
   STATUS LABELS
--------------------------------------------------------- */

.status.in {
    color: #4cd964; /* soft green */
    font-weight: bold;
}

.status.out {
    color: #ff6666;
    font-weight: bold;
}

/* ---------------------------------------------------------
   PIN KEYPAD (rounded rectangles)
--------------------------------------------------------- */

.pin-pad {
    margin-top: 16px;
    text-align: center;
}

.pin-btn {
    width: 30%;
    margin: 5px 1%;
    padding: 14px;
    font-size: 20px;
    border-radius: 10px; /* rounded rectangle */
    border: 1px solid #444;
    background: #2a2a2a;
    color: #eee;
    cursor: pointer;
}

.pin-btn.wide {
    width: 62%;
}

.pin-btn.action {
    background: #cc5555;
    border-color: #aa4444;
}

/* ---------------------------------------------------------
   RESPONSIVE TWEAKS
--------------------------------------------------------- */

@media (max-width: 480px) {
    .card {
        padding: 14px;
    }

    .btn {
        font-size: 14px;
    }

    .pin-btn {
        padding