/* Shiprocket/assets/css/dashboard.css - Enterprise Layout */

/* Ultra-thin Sidebar */
.sidebar {
    width: 70px;
    background-color: #050505;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    z-index: 20;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff7b42, #ff502f);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    align-items: center;
}

.sidebar-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    border-radius: 10px;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.sidebar-icon:hover {
    color: white;
    background-color: rgba(255,255,255,0.05);
}

.sidebar-icon.active {
    color: white;
    background-color: rgba(255,255,255,0.1);
}

/* Header */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem 0 2rem;
}

/* Pill Navigation */
.pill-nav {
    background-color: #ffffff;
    border-radius: var(--radius-full);
    display: flex;
    padding: 0.35rem;
    gap: 0.5rem;
}

.pill-item {
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    color: #52525b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.pill-item:hover {
    color: #18181b;
}

.pill-item.active {
    background-color: #18181b;
    color: white;
}

/* Header Right Widgets */
.header-right {
    display: flex;
    gap: 1rem;
}

.widget-pill {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0.4rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.widget-avatar {
    width: 24px;
    height: 24px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* Page Title Area */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.page-title h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.page-title p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card.hero {
    background: linear-gradient(135deg, #ff7b42, #ff502f);
    color: white;
    border: none;
}

.stat-card.hero h3 {
    color: rgba(255,255,255,0.8);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-card.hero .value {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 0.5rem 0;
}

.pill-badge {
    display: inline-flex;
    background-color: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
}

.stat-card-normal {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-box {
    width: 48px;
    height: 48px;
    background-color: #1a1a1a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.icon-box.green { color: #10b981; }
.icon-box.orange { color: #f97316; }

.stat-info h3 {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.stat-info .value {
    font-size: 1.5rem;
    font-weight: 800;
}

.stat-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Secondary Grid */
.secondary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Tables */
.table-container {
    overflow-x: auto;
    padding: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 700;
}

td {
    font-size: 0.875rem;
}

tbody tr:hover {
    background-color: rgba(255,255,255,0.02);
}

.badge {
    display: inline-flex;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-new { color: #3b82f6; background-color: rgba(59,130,246,0.1); }
.badge-ready { color: #f59e0b; background-color: rgba(245,158,11,0.1); }
.badge-shipped { color: #8b5cf6; background-color: rgba(139,92,246,0.1); }
.badge-delivered { color: #10b981; background-color: rgba(16,185,129,0.1); }
.badge-rto { color: #ef4444; background-color: rgba(239,68,68,0.1); }
