/* GreyButUseful - Dashboard Styles */

/* Dashboard Layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 73px);
}

/* Sidebar */
.sidebar {
    background: var(--bg-white);
    border-right: 1px solid var(--border-light);
    padding: 1.5rem;
    position: sticky;
    top: 73px;
    height: calc(100vh - 73px);
    overflow-y: auto;
}

.sidebar-header {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-user .avatar {
    width: 48px;
    height: 48px;
}

.sidebar-user-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.125rem;
}

.sidebar-user-info span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-medium);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.sidebar-link:hover {
    background: var(--bg-soft);
    color: var(--text-dark);
}

.sidebar-link.active {
    background: var(--coral-light);
    color: var(--coral);
}

.sidebar-link .icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.sidebar-link .badge {
    margin-left: auto;
    background: var(--coral);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.sidebar-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.sidebar-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    padding: 0 1rem;
}

/* Dashboard Main Content */
.dashboard-main {
    background: var(--bg-cream);
    padding: 2rem;
}

/* Dashboard Header */
.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.dashboard-header p {
    font-size: 1rem;
}

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

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border: 2px solid var(--border-light);
    transition: all var(--transition-base);
}

.stat-card:hover {
    border-color: var(--coral);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.coral { background: var(--coral-light); }
.stat-icon.teal { background: var(--teal-light); }
.stat-icon.sunny { background: var(--sunny-light); }
.stat-icon.sky { background: var(--sky-light); }
.stat-icon.lavender { background: var(--lavender-light); }

.stat-content h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.stat-change {
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 0.375rem;
}

.stat-change.positive { color: var(--teal); }
.stat-change.negative { color: var(--error); }

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.dashboard-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    border: 2px solid var(--border-light);
    overflow: hidden;
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.dashboard-card-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-card-body {
    padding: 1.5rem;
}

/* Jobs List */
.jobs-list {
    display: flex;
    flex-direction: column;
}

.job-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-fast);
}

.job-item:last-child {
    border-bottom: none;
}

.job-item:hover {
    background: var(--bg-soft);
}

.job-item-icon {
    width: 44px;
    height: 44px;
    background: var(--coral-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.job-item-content {
    flex: 1;
    min-width: 0;
}

.job-item-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.job-item-content h4 a {
    color: var(--text-dark);
}

.job-item-content h4 a:hover {
    color: var(--coral);
}

.job-item-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.job-item-actions {
    display: flex;
    gap: 0.5rem;
}

/* Job Cards Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.job-card {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: all var(--transition-base);
    text-decoration: none;
    display: block;
}

.job-card:hover {
    border-color: var(--coral);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.job-card-category {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--coral-light);
    color: var(--coral);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}

.job-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.job-card-description {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.job-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.job-card-budget {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--teal);
}

.job-card-time {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}

.status-badge.active {
    background: var(--teal-light);
    color: var(--teal);
}

.status-badge.pending {
    background: var(--sunny-light);
    color: #e67700;
}

.status-badge.closed {
    background: var(--bg-soft);
    color: var(--text-light);
}

.status-badge.hired {
    background: var(--lavender-light);
    color: var(--lavender);
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
}

.activity-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.activity-icon.coral { background: var(--coral-light); }
.activity-icon.teal { background: var(--teal-light); }
.activity-icon.sky { background: var(--sky-light); }

.activity-content p {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 0.25rem;
}

.activity-content p strong {
    color: var(--text-dark);
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-base);
}

.quick-action:hover {
    background: var(--coral-light);
    transform: translateY(-2px);
}

.quick-action-icon {
    font-size: 1.75rem;
}

.quick-action span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

/* Filters Bar */
.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-white);
    padding: 0.375rem;
    border-radius: var(--radius-full);
    border: 2px solid var(--border-light);
}

.filter-tab {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-medium);
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-tab:hover {
    color: var(--text-dark);
}

.filter-tab.active {
    background: var(--coral);
    color: white;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
}

.search-box input {
    border: none;
    background: none;
    font-size: 0.95rem;
    font-family: inherit;
    width: 200px;
}

.search-box input:focus {
    outline: none;
}

.search-box .icon {
    color: var(--text-light);
}

/* Profile Card */
.profile-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    border: 2px solid var(--border-light);
    overflow: hidden;
}

.profile-header {
    background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%);
    padding: 2rem;
    text-align: center;
    color: white;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    margin-bottom: 1rem;
    object-fit: cover;
}

.profile-header h2 {
    color: white;
    margin-bottom: 0.25rem;
}

.profile-header p {
    color: rgba(255,255,255,0.9);
    margin: 0;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--border-light);
}

.profile-stat {
    padding: 1.25rem;
    text-align: center;
    border-right: 1px solid var(--border-light);
}

.profile-stat:last-child {
    border-right: none;
}

.profile-stat .value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.profile-stat .label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.profile-body {
    padding: 1.5rem;
}

.profile-section {
    margin-bottom: 1.5rem;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.expertise-tag {
    padding: 0.375rem 0.75rem;
    background: var(--bg-soft);
    color: var(--text-medium);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Profile Completion */
.profile-completion {
    margin-bottom: 1.5rem;
}

.completion-bar {
    height: 8px;
    background: var(--bg-soft);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.completion-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal) 0%, var(--teal-dark) 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.completion-text {
    font-size: 0.85rem;
    color: var(--text-medium);
}

.completion-text strong {
    color: var(--teal);
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .dashboard-main {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-tabs {
        overflow-x: auto;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .profile-stat {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }
    
    .profile-stat:last-child {
        border-bottom: none;
    }
}
