/* style.css */
@keyframes th-spin {
    to { transform: rotate(360deg); }
}
.th-spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid #e5e7eb;
    border-top-color: #05164d;
    border-radius: 50%;
    animation: th-spin 1s linear infinite;
}

/* Modern Skeleton Loader */
@keyframes pulse-skeleton {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}
.th-skeleton {
    animation: pulse-skeleton 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    background-color: #e5e7eb;
    border-radius: 9999px; /* full rounded */
}

/* Custom Dropzone Hover State */
.th-dropzone-active {
    border-color: #05164d !important;
    background-color: #f0f4ff !important;
    transform: scale(1.01);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Smooth tooltips */
.th-help {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #e3e6ea;
    color: #4b5563;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
    cursor: help;
    vertical-align: middle;
    transition: all 0.2s ease;
}
.th-help:hover, .th-help:focus {
    background-color: #05164d;
    color: #fff;
    outline: none;
}
.th-tip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: max-content;
    max-width: 250px;
    background-color: #020e33;
    color: #fff;
    text-align: center;
    padding: 8px 12px;
    border-radius: 8px; /* rounded tip */
    font-size: 12px;
    font-weight: normal;
    z-index: 10;
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.th-tip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #020e33 transparent transparent transparent;
}
.th-help:hover .th-tip, .th-help:focus .th-tip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* Modernized Links */
.th-link {
    color: #05164d !important;
    text-decoration: none !important;
    font-weight: 600;
    border-bottom: 2px solid rgba(5, 22, 77, 0.15);
    padding-bottom: 1px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    display: inline-block;
}
.th-link:hover {
    color: #ffad1d !important;
    border-bottom-color: #ffad1d !important;
}

/* Modern transition utilities */
.th-transition {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
