/* NHM Leave Form Styles */
.nhm-leave-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.nhm-leave-modal-content {
    background: rgba(255, 255, 255, 0.85);
    margin: 5% auto;
    padding: 0;
    border-radius: 24px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.nhm-leave-header {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    padding: 24px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nhm-leave-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #fff;
}

.nhm-leave-close {
    color: rgba(255, 255, 255, 0.8);
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s;
}

.nhm-leave-close:hover {
    color: #fff;
    transform: scale(1.1);
}

.nhm-leave-body {
    padding: 32px;
}

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

.nhm-leave-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.nhm-leave-form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.nhm-leave-form-row .nhm-leave-form-group {
    flex: 1;
    min-width: 200px;
}

.nhm-leave-input,
.nhm-leave-select,
.nhm-leave-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    transition: all 0.2s;
    outline: none;
    box-sizing: border-box;
}

.nhm-leave-input:focus,
.nhm-leave-select:focus,
.nhm-leave-textarea:focus {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.nhm-leave-textarea {
    min-height: 100px;
    resize: vertical;
}

.nhm-leave-footer {
    padding: 24px 32px 32px;
    display: flex;
    justify-content: flex-end;
}

.nhm-leave-btn-submit {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.nhm-leave-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.4);
}

.nhm-leave-btn-submit:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .nhm-leave-modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        max-width: 100%;
        border-radius: 0;
        overflow: auto;
    }

    .nhm-leave-body {
        padding: 20px;
    }

    .nhm-leave-form-row .nhm-leave-form-group {
        min-width: 100%;
    }

    .nhm-leave-footer {
        justify-content: center;
    }
}