/*
 * eShoopy Support Hub — Custom Styles
 * Brand: #4845da (primary), #3b38c0 (hover)
 * Built on top of TailwindCSS (via CDN)
 */

/* ── Base ──────────────────────────────────────────────────── */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Navigation Links ──────────────────────────────────────── */

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.15s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

/* ── Status Badges ─────────────────────────────────────────── */

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.25rem;
    white-space: nowrap;
}

/* Ticket statuses */
.status-open {
    background-color: #fef3c7;
    color: #92400e;
}

.status-in_progress,
.status-in-progress {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-waiting {
    background-color: #f3e8ff;
    color: #6b21a8;
}

.status-waiting_human,
.status-waiting-human {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-closed {
    background-color: #d1fae5;
    color: #065f46;
}

/* Fix statuses */
.status-proposed {
    background-color: #fef3c7;
    color: #92400e;
}

.status-approved {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-applied {
    background-color: #d1fae5;
    color: #065f46;
}

.status-rejected {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Feasibility statuses */
.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-completed {
    background-color: #d1fae5;
    color: #065f46;
}

/* ── Priority Badges ───────────────────────────────────────── */

.priority-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.25rem;
    white-space: nowrap;
}

.priority-low {
    background-color: #f3f4f6;
    color: #6b7280;
}

.priority-normal {
    background-color: #dbeafe;
    color: #1e40af;
}

.priority-high {
    background-color: #fef3c7;
    color: #92400e;
}

.priority-urgent {
    background-color: #fee2e2;
    color: #991b1b;
}

/* ── Cards & Panels ────────────────────────────────────────── */

.card-hover {
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card-hover:hover {
    border-color: #b3b1ff;
    box-shadow: 0 1px 3px 0 rgba(72, 69, 218, 0.08);
}

/* ── Forms ──────────────────────────────────────────────────── */

input:focus,
select:focus,
textarea:focus {
    --tw-ring-color: #4845da;
    border-color: #4845da;
}

/* ── Scrollbar ─────────────────────────────────────────────── */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Sidebar scrollbar */
aside ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

aside ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ── Animations ────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .sidebar-open {
        transform: translateX(0) !important;
    }
}

/* ── Table ─────────────────────────────────────────────────── */

table {
    border-collapse: collapse;
}

th {
    user-select: none;
}

/* ── Print ─────────────────────────────────────────────────── */

@media print {
    aside,
    header,
    .no-print {
        display: none !important;
    }

    main {
        margin-left: 0 !important;
        padding: 0 !important;
    }
}
