/* ============================================
   STAFFTRACT.AI - COMPONENT STYLES
   Reusable UI Components
   ============================================ */

/* ========== ICON STYLES ========== */
.neon-icon {
    filter: drop-shadow(0 0 12px var(--neon-cyan));
    transition: all 0.3s ease;
}

.neon-icon:hover {
    filter: drop-shadow(0 0 25px var(--neon-purple));
    transform: scale(1.08);
}

/* ========== ICON BOX VARIANTS ========== */
.icon-box-sm {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
}

.icon-box-lg {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
}

/* ========== CARD VARIANTS ========== */
.card-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-glow-cyan:hover {
    box-shadow: 0 0 30px rgba(0, 246, 255, 0.3);
    border-color: rgba(0, 246, 255, 0.5);
}

.card-glow-purple:hover {
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.3);
    border-color: rgba(138, 43, 226, 0.5);
}

.card-glow-magenta:hover {
    box-shadow: 0 0 30px rgba(255, 0, 230, 0.3);
    border-color: rgba(255, 0, 230, 0.5);
}

/* ========== AVATAR ========== */
.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-button);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #000;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

.avatar-lg {
    width: 64px;
    height: 64px;
    font-size: 1.25rem;
}

.avatar-xl {
    width: 96px;
    height: 96px;
    font-size: 1.75rem;
}

/* ========== TAGS ========== */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.tag-neon {
    background: rgba(0, 246, 255, 0.1);
    border-color: rgba(0, 246, 255, 0.3);
    color: var(--neon-cyan);
}

.tag-purple {
    background: rgba(138, 43, 226, 0.1);
    border-color: rgba(138, 43, 226, 0.3);
    color: var(--neon-purple);
}

.tag-magenta {
    background: rgba(255, 0, 230, 0.1);
    border-color: rgba(255, 0, 230, 0.3);
    color: var(--neon-magenta);
}

/* ========== DIVIDERS ========== */
.divider {
    height: 1px;
    background: var(--glass-border);
    margin: 2rem 0;
}

.divider-glow {
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
}

/* ========== PROGRESS BAR ========== */
.progress {
    height: 8px;
    background: var(--glass-bg);
    border-radius: 50px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-button);
    border-radius: 50px;
    transition: width 0.5s ease;
}

/* ========== TOOLTIP ========== */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

/* ========== ACCORDION ========== */
.accordion-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-body {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

/* ========== TABS ========== */
.tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 2rem;
}

.tab {
    padding: 1rem 1.5rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab:hover {
    color: var(--text-secondary);
}

.tab.active {
    color: var(--neon-cyan);
    border-bottom-color: var(--neon-cyan);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ========== MODAL ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* ========== ALERT ========== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00FF88;
}

.alert-error {
    background: rgba(255, 0, 100, 0.1);
    border: 1px solid rgba(255, 0, 100, 0.3);
    color: #FF0064;
}

.alert-warning {
    background: rgba(255, 200, 0, 0.1);
    border: 1px solid rgba(255, 200, 0, 0.3);
    color: #FFC800;
}

.alert-info {
    background: rgba(0, 246, 255, 0.1);
    border: 1px solid rgba(0, 246, 255, 0.3);
    color: var(--neon-cyan);
}

/* ========== SKELETON LOADING ========== */
.skeleton {
    background: linear-gradient(90deg, var(--glass-bg) 25%, rgba(255, 255, 255, 0.1) 50%, var(--glass-bg) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 1.5rem;
    width: 60%;
    margin-bottom: 1rem;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

/* ========== LIST STYLES ========== */
.list-check {
    list-style: none;
}

.list-check li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
}

.list-check li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
    font-weight: bold;
}

.list-arrow {
    list-style: none;
}

.list-arrow li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.list-arrow li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
}

/* ========== TIMELINE ========== */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--neon-cyan);
    border-radius: 50%;
    transform: translateX(-5px);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.timeline-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

/* ========== NOTIFICATION DOT ========== */
.notification-dot {
    position: relative;
}

.notification-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: var(--neon-magenta);
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
}

/* ========== SWITCH TOGGLE ========== */
.switch {
    position: relative;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    inset: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.switch-slider::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 18px;
    height: 18px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.switch input:checked + .switch-slider {
    background: var(--neon-cyan);
    border-color: var(--neon-cyan);
}

.switch input:checked + .switch-slider::before {
    transform: translateX(24px);
    background: #000;
}

/* ========== CHIP ========== */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.875rem;
}

.chip-close {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.75rem;
}

.chip-close:hover {
    background: rgba(255, 0, 100, 0.2);
    color: #FF0064;
}
