/* ========================================
   TaskTrackPro — Component Styles
   ======================================== */

/* ---- Stat / KPI Cards ---- */
.stat-card {
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

/* ---- Task Items ---- */
.task-item {
    transition: background-color 0.1s ease;
}

.task-item:hover {
    background-color: rgba(250, 250, 250, 0.8);
}

/* Custom checkbox (peer-checked driven by Tailwind, this adds transition) */
.task-checkbox-box {
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

/* ---- Status Badges ---- */
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 0.375rem;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.badge-in-progress {
    background-color: #fffbeb;
    color: #b45309;
    box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.2);
}

.badge-todo {
    background-color: #f4f4f5;
    color: #52525b;
    box-shadow: inset 0 0 0 1px rgba(113, 113, 122, 0.1);
}

.badge-done {
    background-color: #ecfdf5;
    color: #047857;
    box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.2);
}

.badge-in-review {
    background-color: #eff6ff;
    color: #1d4ed8;
    box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.1);
}

/* ---- Progress Bars ---- */
.progress-bar-track {
    width: 100%;
    height: 6px;
    background: #f4f4f5;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s ease;
}

/* ---- Activity Timeline ---- */
.timeline-line {
    position: absolute;
    left: 0.625rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #e4e4e7, transparent);
}

.timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d4d4d8;
    box-shadow: 0 0 0 4px #fff;
}

.timeline-dot.completed {
    background: #34d399;
}

/* ---- Dropdown / Select ---- */
.custom-select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2371717a%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1em;
}

/* ---- Notification Badge ---- */
.notification-dot {
    position: absolute;
    top: 0.5rem;
    right: 0.625rem;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border: 2px solid #fff;
    border-radius: 50%;
    display: none;
}