/* ===============================
   EMPLOYEE ATTENDANCE SYSTEM
   style.css
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(140deg, rgb(101, 101, 249), rgb(251, 142, 160));
}

.container {
    width: 100%;
    max-width: 500px;
    border: 3px solid white;
    border-radius: 20px;
    padding: 30px;
    background-color: #ffffff79;
    text-align: center;
}

.card {
    width: 100%;
}

/* Logo */

.logo {

    text-align: center;

    margin-bottom: 25px;

}

.logo h1 {

    color: #1d4ed8;

    font-size: 30px;

    font-weight: 700;

}

.logo p {

    color: #777;

    margin-top: 8px;

}

/* Date Time */

.datetime {

    text-align: center;

    margin-bottom: 30px;

}

.datetime h2 {

    color: #222;

    font-size: 22px;

    margin-bottom: 10px;

}

.datetime h3 {

    color: #2563eb;

    font-size: 28px;

    font-weight: bold;

}

/* Labels */

label {

    display: block;

    margin-bottom: 8px;

    font-weight: 600;

    color: #333;

}

/* Input */

.input-box,
.employee-box {

    margin-bottom: 20px;

}

input {

    width: 100%;

    padding: 14px;

    border: 2px solid #ddd;

    border-radius: 12px;

    font-size: 17px;

    transition: .3s;

    outline: none;

}

input:focus {

    border-color: #2563eb;

    box-shadow: 0 0 10px rgba(37, 99, 235, .2);

}

input[readonly] {

    background: #f3f4f6;

}

/* Buttons */

.button-area {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;

    margin-top: 25px;

}

button {

    border: none;

    padding: 15px;

    font-size: 17px;

    border-radius: 12px;

    cursor: pointer;

    transition: .3s;

    color: white;

    font-weight: bold;

}

.inBtn {

    background: #16a34a;

}

.inBtn:hover {

    background: #15803d;

    transform: translateY(-2px);

}

.outBtn {

    background: #dc2626;

}

.outBtn:hover {

    background: #b91c1c;

    transform: translateY(-2px);

}

/* Loader */

.loader {

    display: none;

    margin-top: 25px;

    text-align: center;

    color: #2563eb;

    font-weight: bold;

}

/* Status */

.status {

    margin-top: 25px;

    padding: 15px;

    border-radius: 12px;

    background: #eef4ff;

    text-align: center;

    font-weight: 600;

    color: #1e3a8a;

    word-break: break-word;

}

/* Success */

.success {

    background: #dcfce7;

    color: #166534;

}

/* Error */

.error {

    background: #fee2e2;

    color: #991b1b;

}

/* Animation */

@keyframes fadeIn {

    from {

        opacity: 0;

        transform: translateY(20px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}

/* Responsive */

@media(max-width:600px) {

    .card {

        padding: 25px;

    }

    .logo h1 {

        font-size: 24px;

    }

    .datetime h2 {

        font-size: 18px;

    }

    .datetime h3 {

        font-size: 24px;

    }

    .button-area {

        grid-template-columns: 1fr;

    }

    button {

        width: 100%;

    }

}

@media(max-width:420px) {

    .card {

        padding: 20px;

    }

    input {

        font-size: 15px;

    }

    button {

        font-size: 15px;

    }

    .logo h1 {

        font-size: 20px;

    }

}


@media (max-width:600px) {

    body {
        padding: 8px;
    }

    .container {
        max-width: 100%;
    }

    .card {
        width: 100%;
        padding: 18px;
        border-radius: 15px;
    }
}