/* Custom styles for HR TG Helper */

/* Hide scrollbar for horizontal scroll containers */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Mobile touch targets */
@media (max-width: 640px) {
    input[type="text"],
    input[type="number"],
    input[type="tel"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px; /* prevents iOS zoom on focus */
    }
}

.skill-tag {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.skill-matched {
    background-color: #d1fae5;
    color: #065f46;
}

.skill-missing {
    background-color: #fee2e2;
    color: #991b1b;
}

.message-preview {
    max-height: 120px;
    overflow: hidden;
    position: relative;
}

.message-preview::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(transparent, white);
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Button loader */
button .btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

button.is-loading .btn-spinner {
    display: inline-block;
}

button.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Full-page overlay loader */
.page-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(2px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.page-overlay.active {
    display: flex;
}

.page-overlay .overlay-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
