/* Shop Tasks - Sidebar CSS */
/* Left navigation column - Dark theme for 2A Zone brand */

.sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--color-border);
    overflow: hidden;
    z-index: var(--z-sidebar);
    color: var(--color-text);
}

/* Sidebar Header - User Info */
.sidebar-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-meta {
    display: block;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.user-points {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-xs);
}

.points-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
}

.points-label {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Quick Add Button */
.quick-add-container {
    padding: var(--spacing-md);
}

.quick-add-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.quick-add-trigger:hover {
    background: rgba(37, 99, 235, 0.1);
}

.quick-add-trigger .plus-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: var(--spacing-sm);
    background: var(--color-primary);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    font-weight: 400;
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-sm) 0;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
}

.nav-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.nav-item.active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-right: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nav Icons using pseudo-elements */
.inbox-icon::before {
    content: '';
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23246fe0'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4'/%3E%3C/svg%3E") center/contain no-repeat;
}

.today-icon::before {
    content: '';
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23058527'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.upcoming-icon::before {
    content: '';
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23884dff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.assigned-icon::before {
    content: '';
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23808080'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.verify-icon::before {
    content: '';
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23eb8909'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.leaderboard-icon::before {
    content: '';
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffc800'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.templates-icon::before {
    content: '';
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23666666'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01'/%3E%3C/svg%3E") center/contain no-repeat;
}

.nav-label {
    flex: 1;
    font-size: 14px;
}

.nav-count {
    min-width: 20px;
    padding: 0 6px;
    height: 20px;
    background: var(--color-bg);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-count:empty,
.nav-count[data-count="0"] {
    display: none;
}

/* Nav Sections */
.nav-section {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
}

.nav-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-xs) var(--spacing-md);
    margin-bottom: var(--spacing-xs);
}

.nav-section-header h3 {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
}

.nav-section-btn {
    width: 20px;
    height: 20px;
    padding: 0;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.nav-section-btn:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

/* Projects List */
.projects-list .nav-item {
    padding-left: var(--spacing-lg);
}

.project-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: var(--spacing-sm);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: var(--spacing-md);
    border-top: 1px solid var(--color-border);
}

.settings-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: var(--spacing-sm);
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.settings-btn:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.settings-icon {
    width: 20px;
    height: 20px;
    margin-right: var(--spacing-sm);
}

/* Location Switcher */
.location-switcher {
    display: flex;
    gap: 4px;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.location-btn {
    flex: 1;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.location-btn:hover {
    background: var(--color-bg-secondary);
    color: var(--color-text);
}

.location-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.location-btn.active:hover {
    background: var(--color-primary-hover);
}

/* Project Items with Action Buttons */
.project-item {
    position: relative;
}

.project-item:hover .project-actions {
    opacity: 1;
}

.project-actions {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: var(--transition-fast);
}

.project-action-btn {
    width: 22px;
    height: 22px;
    padding: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-action-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.project-delete-btn:hover {
    background: var(--color-danger);
    border-color: var(--color-danger);
}

.project-shared-icon {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-left: 4px;
}
