/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 80px);
    background: #f8fafc;
    position: relative;
}

/* Hamburger Menu Button */
.hamburger-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: fixed;
    top: 5rem;
    left: 1rem;
    z-index: 1001;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hamburger-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #4a5568;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-toggle.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Overlay */
.dashboard-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Sidebar */
.dashboard-sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #e2e8f0;
    padding: 0;
    position: fixed;
    height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 3rem 2rem 2rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
    position: relative;
}

.user-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
}

.user-info h3 {
    margin: 0 0 0.5rem;
    color: #1a202c;
    font-size: 1.25rem;
}

.user-info p {
    margin: 0 0 1rem;
    color: #718096;
    font-size: 0.875rem;
    text-transform: capitalize;
}

.user-badges {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge.premium {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #744210;
}

.badge.registered {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.badge.verified {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 2rem;
    color: #718096;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.sidebar-link:hover {
    background: #f7fafc;
    color: #4a5568;
}

.sidebar-link.active {
    background: #2563eb;
    color: white;
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #2563eb;
}

.sidebar-link i {
    width: 20px;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.sidebar-link span {
    flex: 1;
}

.message-count {
    background: #ef4444;
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Main Content */
.dashboard-main {
    flex: 1;
    margin-left: 0;
    padding: 2rem;
    overflow-x: hidden;
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

.section-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h1 {
    margin: 0;
    color: #1a202c;
    font-size: 2rem;
    font-weight: 700;
}

.section-header p {
    margin: 0.5rem 0 0;
    color: #718096;
    font-size: 1rem;
}

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

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: #2563eb;
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.stat-content h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
}

.stat-content p {
    margin: 0.25rem 0 0;
    color: #718096;
    font-size: 0.875rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    color: #1a202c;
    font-size: 1.25rem;
    font-weight: 600;
}

.view-all {
    color: #667eea;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.view-all:hover {
    color: #5a67d8;
}

/* Activity List */
.activity-list {
    padding: 1.5rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f7fafc;
}

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

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.activity-content p {
    margin: 0;
    color: #1a202c;
    font-size: 0.875rem;
}

.activity-time {
    color: #718096;
    font-size: 0.75rem;
}

/* Quick Actions */
.quick-actions {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.action-btn i {
    width: 20px;
    color: #667eea;
}

/* Jobs Section */
.jobs-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    color: #718096;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-btn:hover {
    color: #4a5568;
}

.jobs-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Applications Section */
.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #718096;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.filter-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.filter-btn.active:hover {
    background: #5a67d8;
}

.applications-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Earnings Section */
.earnings-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.earnings-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.earnings-card h3 {
    margin: 0 0 1rem;
    color: #718096;
    font-size: 1rem;
    font-weight: 500;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.earnings-change {
    color: #10b981;
    font-size: 0.875rem;
    font-weight: 500;
}

.earnings-note {
    color: #718096;
    font-size: 0.875rem;
}

.earnings-history {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.earnings-history h3 {
    margin: 0 0 1.5rem;
    color: #1a202c;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Messages Section */
.messages-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 600px;
}

.messages-sidebar {
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.message-search {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.message-search input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
}

.message-search i {
    position: absolute;
    right: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
}

.messages-list {
    flex: 1;
    overflow-y: auto;
}

.message-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f7fafc;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
}

.message-item:hover {
    background: #f7fafc;
}

.message-item.active {
    background: #edf2f7;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

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

.message-content h4 {
    margin: 0 0 0.25rem;
    color: #1a202c;
    font-size: 0.875rem;
    font-weight: 600;
}

.message-content p {
    margin: 0 0 0.25rem;
    color: #718096;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-time {
    color: #a0aec0;
    font-size: 0.625rem;
}

.message-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
}

.message-status.unread {
    background: #ef4444;
}

/* Message Chat */
.message-chat {
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    color: #1a202c;
    font-size: 1.125rem;
    font-weight: 600;
}

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

.btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    background: #f7fafc;
    border-radius: 6px;
    color: #718096;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: #edf2f7;
    color: #4a5568;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.message {
    margin-bottom: 1rem;
}

.message.received .message-bubble {
    background: #f7fafc;
    color: #1a202c;
    margin-right: 2rem;
}

.message.sent .message-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-left: 2rem;
    margin-left: auto;
}

.message-bubble {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    max-width: 70%;
    word-wrap: break-word;
}

.message-bubble p {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

.message-timestamp {
    font-size: 0.75rem;
    opacity: 0.7;
}

.chat-input {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.chat-input input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
}

.chat-input .btn {
    padding: 0.75rem 1rem;
    min-width: auto;
}

/* Settings Section */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.settings-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.settings-card h3 {
    margin: 0 0 1.5rem;
    color: #1a202c;
    font-size: 1.25rem;
    font-weight: 600;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f7fafc;
}

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

.setting-item label {
    color: #4a5568;
    font-weight: 500;
}

.form-select {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #4a5568;
    font-size: 0.875rem;
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #718096;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 0 0 0.5rem;
    color: #4a5568;
    font-size: 1.25rem;
    font-weight: 600;
}

.empty-state p {
    margin: 0 0 1.5rem;
    font-size: 0.875rem;
}

/* Button Variants */
.btn-outline-danger {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
}

.btn-outline-danger:hover {
    background: #ef4444;
    color: white;
}

.btn-danger {
    background: #ef4444;
    border: 1px solid #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-sidebar {
        width: 250px;
    }
    
    /* .dashboard-main {
        margin-left: 250px;
    } */
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .messages-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .messages-sidebar {
        display: none;
    }
}

/* Hamburger menu and sidebar behavior for all screen sizes */
.dashboard-sidebar {
    width: 280px;
    position: fixed;
    left: -280px;
    height: 100vh;
    top: 0;
    border-right: 1px solid #e2e8f0;
    border-bottom: none;
    transition: left 0.3s ease;
    z-index: 160;
}

.dashboard-sidebar.active {
    left: 0;
}

@media (max-width: 768px) {
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .earnings-overview {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .dashboard-card,
    .settings-card,
    .earnings-card {
        padding: 1rem;
    }
    
    .section-header h1 {
        font-size: 1.5rem;
    }
}