/**
 * File: resources/css/shared.css
 * Author: Yash Balotiya
 * Description: Shared CSS styles for the project.
 * Created on: 22/06/2025
 * Last Modified: 24/06/2025
 */

/* Base font styles */
* {
    font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
}

p, label, .round span {
    font-size: 15px;
}

label {
    font-weight: 500;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    border: none;
    border-radius: 5px;
    /* background-color: #F3F4F6; */
    /* background-color: #F9FAFC; */
    background-color: #FAFAFA;
    font-size: 16px;
    color: #333;
    transition: all 0.2s ease-in-out;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 1px lightgray;
}

/* Remove spinner */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

ul {
    list-style-position: inside;
}

textarea {
    padding: 20px;
}

.submitButton {
    width: 100%;
    height: 40px;
    background-color: #4A8350;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin-top: 8px;
}

.submitButton:hover {
    background-color: #3b6a40;
}

/* OTP Fields */
.digit-group {
    input[type="number"] {
        width: 50px;
        height: 50px;
        /* background-color: lighten(black, 5%); */
        border: 1px solid #9DC08B;
        border-radius: 5px;
        line-height: 50px;
        text-align: center;
        font-size: 24px;
        margin: 0 2px;
        transition: all 0.2s ease-in-out;
        padding: 0;
    }

    input[type="number"]:focus {
        outline: none;
        box-shadow: 0 0 0 1px #4A8350;
    }

    .otpInputDiv {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Alert Message Box */
.alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alert {
    padding: 12px 18px;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    min-width: 220px;
    max-width: 300px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    opacity: 0;
    animation: fadeIn 0.3s forwards, fadeOut 0.3s forwards 3.5s;
}

.alert-success { background-color: #4caf50; }
.alert-error { background-color: #f44336; }
.alert-info { background-color: #2196f3; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-10px); }
}
