/* PEOPLE 360 - Custom Styles */

* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent; }
.sidebar-scroll::-webkit-scrollbar { width: 4px; }
.sidebar-scroll::-webkit-scrollbar-track { background: transparent; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }

/* Navigation Items */
.nav-item {
    color: rgba(255,255,255,0.6);
}
.nav-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.07);
}
.nav-item.active {
    color: #fff;
    background: rgba(249,115,22,0.15);
    border-left: 3px solid #F97316;
}
.nav-item.active i { color: #F97316; }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}
.animate-fade-in-up { animation: fadeInUp 0.4s ease-out both; }
.animate-modal { animation: slideIn 0.25s ease-out; }

/* KPI Cards */
.kpi-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}
.kpi-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* Chart Card */
.chart-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

/* Traffic Light */
.traffic-light { display: inline-flex; align-items: center; gap: 6px; }
.traffic-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.traffic-green { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
.traffic-yellow { background: #eab308; box-shadow: 0 0 0 3px rgba(234,179,8,0.2); }
.traffic-red { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.2); }

/* Timeline */
.timeline { position: relative; }
.timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}
.timeline-step { position: relative; padding-left: 48px; }
.timeline-dot {
    position: absolute;
    left: 8px;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid #e5e7eb;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.timeline-dot.completed { border-color: #22c55e; background: #22c55e; }
.timeline-dot.active { border-color: #F97316; background: #F97316; animation: pulse-green 2s infinite; }
.timeline-dot.pending { border-color: #d1d5db; background: #f9fafb; }

/* Table */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.data-table thead th {
    background: #f9fafb;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}
.data-table tbody td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid #f3f4f6;
}
.data-table tbody tr:hover { background: #f9fafb; }

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.badge-green { background: #dcfce7; color: #166534; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-gray { background: #f3f4f6; color: #374151; }
.badge-orange { background: #ffedd5; color: #9a3412; }

/* Org Chart */
.org-node {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s;
    min-width: 160px;
}
.org-node:hover { border-color: #F97316; box-shadow: 0 4px 12px rgba(249,115,22,0.15); }
.org-connector {
    border-left: 2px solid #d1d5db;
    height: 24px;
    margin: 0 auto;
}
.org-branch {
    display: flex;
    justify-content: center;
    gap: 1rem;
    position: relative;
}
.org-branch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: #d1d5db;
}

/* Delay animation stagger */
.stagger > * { animation: fadeInUp 0.4s ease-out both; }
.stagger > *:nth-child(1) { animation-delay: 0.02s; }
.stagger > *:nth-child(2) { animation-delay: 0.04s; }
.stagger > *:nth-child(3) { animation-delay: 0.06s; }
.stagger > *:nth-child(4) { animation-delay: 0.08s; }
.stagger > *:nth-child(5) { animation-delay: 0.10s; }
.stagger > *:nth-child(6) { animation-delay: 0.12s; }
.stagger > *:nth-child(7) { animation-delay: 0.14s; }
.stagger > *:nth-child(8) { animation-delay: 0.16s; }
.stagger > *:nth-child(9) { animation-delay: 0.18s; }
.stagger > *:nth-child(10) { animation-delay: 0.20s; }
.stagger > *:nth-child(11) { animation-delay: 0.22s; }
.stagger > *:nth-child(12) { animation-delay: 0.24s; }

/* Print styles */
@media print {
    #sidebar, header { display: none !important; }
    .lg\:ml-64 { margin-left: 0 !important; }
}

/* Form inputs */
.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
    border-color: #F97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}