:root {
    --primary: #4361ee;
    --primary-light: #e6e9ff;
    --secondary: #3f37c9;
    --success: #4cc9f0;
    --danger: #f72585;
    --warning: #f8961e;
    --info: #4895ef;
    --dark: #212529;
    --light: #f8f9fa;
    --gray: #6c757d;
    --white: #ffffff;
    --sidebar-width: 280px;
    --code-bg: #282c34;
    --terminal-green: #4AF626;
    --terminal-blue: #5ED4FF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fira Code', 'Consolas', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fb;
    color: var(--dark);
    display: flex;
    min-height: 100vh;
    line-height: 1.6;
}

/* Improved Sidebar with Developer Touch */
.sidebar {
    width: var(--sidebar-width);
    background: var(--code-bg);
    color: #abb2bf;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    height: 100vh;
    position: fixed;
    z-index: 100;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    margin-left: 10px;
    font-weight: 700;
    color: var(--terminal-blue);
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
}

.sidebar-header i {
    color: var(--terminal-green);
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu h4 {
    padding: 0 20px;
    margin-bottom: 15px;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--gray);
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #5c6370;
}

.sidebar-menu ul {
    list-style: none;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #abb2bf;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

.sidebar-menu li a:hover {
    background: rgba(67, 97, 238, 0.1);
    color: var(--terminal-blue);
}

.sidebar-menu li a.active {
    background: rgba(67, 97, 238, 0.2);
    color: var(--terminal-blue);
    border-left: 3px solid var(--terminal-blue);
}

.sidebar-menu li a i {
    margin-right: 10px;
    font-size: 18px;
    color: var(--terminal-green);
}

/* Main Content Styles */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 30px;
    transition: all 0.3s;
    background-color: #f8fafc;
}

/* Developer Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: var(--white);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeef2;
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Fira Code', monospace;
    color: var(--dark);
    display: flex;
    align-items: center;
}

.header h1::before {
    content: "> ";
    color: var(--terminal-green);
    margin-right: 8px;
}

.header-actions {
    display: flex;
    align-items: center;
}

.search-bar {
    position: relative;
    margin-right: 20px;
}

.search-bar input {
    padding: 10px 15px 10px 40px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    width: 250px;
    font-size: 14px;
    transition: all 0.3s;
    background-color: #f8fafc;
    font-family: 'Fira Code', monospace;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--terminal-blue);
    box-shadow: 0 0 0 3px rgba(94, 212, 255, 0.2);
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.user-profile {
    display: flex;
    align-items: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.02);
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

.user-profile:hover {
    background: rgba(0, 0, 0, 0.05);
}

.user-profile img {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    margin-right: 10px;
    object-fit: cover;
    border: 1px solid #eaeef2;
}

.user-profile .user-info h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    font-family: 'Fira Code', monospace;
}

.user-profile .user-info p {
    font-size: 12px;
    color: var(--gray);
    font-family: 'Fira Code', monospace;
}

.notification-bell {
    position: relative;
    margin-right: 20px;
    font-size: 18px;
    color: var(--gray);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s;
}

.notification-bell:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--terminal-blue);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-family: 'Fira Code', monospace;
}

/* Developer Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid #eaeef2;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.stat-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stat-card .card-header h5 {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
    font-family: 'Fira Code', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .card-header i {
    font-size: 20px;
    padding: 12px;
    border-radius: 6px;
    background: rgba(67, 97, 238, 0.1) !important;
}

.stat-card .card-body h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: 'Fira Code', monospace;
    color: var(--dark);
}

.stat-card .card-body p {
    font-size: 12px;
    color: var(--gray);
    font-family: 'Fira Code', monospace;
}

.stat-card .card-body p span {
    color: var(--success);
    font-weight: 600;
}

.stat-card.clients::before {
    background: var(--primary);
}

.stat-card.clients i {
    color: var(--primary);
}

.stat-card.revenue::before {
    background: var(--success);
}

.stat-card.revenue i {
    color: var(--success);
}

.stat-card.tasks::before {
    background: var(--warning);
}

.stat-card.tasks i {
    color: var(--warning);
}

.stat-card.projects::before {
    background: var(--danger);
}

.stat-card.projects i {
    color: var(--danger);
}

/* Main Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* Developer Clients Table */
.clients-table {
    background: var(--white);
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeef2;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    font-family: 'Fira Code', monospace;
    color: var(--dark);
    position: relative;
    padding-left: 15px;
}

.section-header h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: var(--terminal-blue);
    border-radius: 2px;
}

.section-header .actions button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Fira Code', monospace;
    display: flex;
    align-items: center;
}

.section-header .actions button i {
    margin-right: 8px;
}

.section-header .actions button:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Fira Code', monospace;
}

table thead th {
    text-align: left;
    padding: 12px 10px;
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
    text-transform: uppercase;
    border-bottom: 1px solid #eee;
    letter-spacing: 0.5px;
}

table tbody tr {
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

table tbody tr:hover {
    background: rgba(67, 97, 238, 0.05);
}

table tbody tr:last-child {
    border-bottom: none;
}

table tbody td {
    padding: 15px 10px;
    font-size: 14px;
}

.client-info {
    display: flex;
    align-items: center;
}

.client-info img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    margin-right: 10px;
    object-fit: cover;
    border: 1px solid #eaeef2;
}

.client-info .info h5 {
    font-weight: 600;
    margin-bottom: 3px;
    font-family: 'Fira Code', monospace;
}

.client-info .info p {
    font-size: 12px;
    color: var(--gray);
    font-family: 'Fira Code', monospace;
}

.status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Fira Code', monospace;
}

.status.active {
    background: rgba(76, 201, 240, 0.1);
    color: var(--success);
    border: 1px solid rgba(76, 201, 240, 0.2);
}

.status.inactive {
    background: rgba(108, 117, 125, 0.1);
    color: var(--gray);
    border: 1px solid rgba(108, 117, 125, 0.2);
}

.status.pending {
    background: rgba(248, 149, 30, 0.1);
    color: var(--warning);
    border: 1px solid rgba(248, 149, 30, 0.2);
}

.action-btns button {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 16px;
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.3s;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.action-btns button:hover {
    color: var(--primary);
    background: rgba(67, 97, 238, 0.1);
}

/* Developer Recent Activity */
.recent-activity {
    background: var(--white);
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeef2;
}

.activity-list {
    list-style: none;
}

.activity-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 10px;
}

.activity-item::before {
    content: "//";
    position: absolute;
    left: 0;
    top: 15px;
    color: var(--terminal-green);
    font-family: 'Fira Code', monospace;
    font-size: 12px;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.activity-icon.call {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}

.activity-icon.email {
    background: rgba(247, 37, 133, 0.1);
    color: var(--danger);
}

.activity-icon.meeting {
    background: rgba(76, 201, 240, 0.1);
    color: var(--success);
}

.activity-icon.payment {
    background: rgba(72, 149, 239, 0.1);
    color: var(--info);
}

.activity-content h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    font-family: 'Fira Code', monospace;
}

.activity-content p {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 5px;
    font-family: 'Fira Code', monospace;
}

.activity-time {
    font-size: 12px;
    color: var(--gray);
    font-family: 'Fira Code', monospace;
    display: flex;
    align-items: center;
}

.activity-time::before {
    content: "~";
    margin-right: 4px;
}

/* Code Snippet Widget */
.code-snippet {
    background: var(--code-bg);
    border-radius: 6px;
    padding: 20px;
    margin-top: 20px;
    font-family: 'Fira Code', monospace;
    color: #abb2bf;
    font-size: 13px;
    line-height: 1.5;
    overflow-x: auto;
}

.code-snippet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-snippet-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--terminal-blue);
}

.code-snippet-header .actions {
    display: flex;
}

.code-snippet-header .actions button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #abb2bf;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Fira Code', monospace;
}

.code-snippet-header .actions button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.code-snippet pre {
    margin: 0;
    white-space: pre-wrap;
}

.code-snippet .keyword {
    color: #c678dd;
}

.code-snippet .function {
    color: #61afef;
}

.code-snippet .string {
    color: #98c379;
}

.code-snippet .comment {
    color: #5c6370;
    font-style: italic;
}

.code-snippet .number {
    color: #d19a66;
}

/* Terminal Widget */
.terminal-widget {
    background: var(--code-bg);
    border-radius: 6px;
    padding: 0;
    margin-top: 20px;
    font-family: 'Fira Code', monospace;
    color: #abb2bf;
    font-size: 13px;
    line-height: 1.5;
    overflow: hidden;
}

.terminal-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-dots {
    display: flex;
    margin-right: 15px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.terminal-dot.red {
    background: #ff5f56;
}

.terminal-dot.yellow {
    background: #ffbd2e;
}

.terminal-dot.green {
    background: #27c93f;
}

.terminal-title {
    font-size: 12px;
    color: #5c6370;
}

.terminal-body {
    padding: 15px;
}

.terminal-line {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.terminal-prompt {
    color: var(--terminal-green);
    margin-right: 10px;
    user-select: none;
}

.terminal-command {
    color: var(--terminal-blue);
}

.terminal-output {
    color: #abb2bf;
    margin-left: 20px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 80px;
        overflow: hidden;
    }

    .sidebar-header h3, .sidebar-menu h4, .sidebar-menu li a span {
        display: none;
    }

    .sidebar-menu li a {
        justify-content: center;
        padding: 15px 0;
    }

    .sidebar-menu li a i {
        margin-right: 0;
        font-size: 20px;
    }

    .main-content {
        margin-left: 80px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-actions {
        margin-top: 15px;
        width: 100%;
        justify-content: space-between;
    }

    .search-bar {
        margin-right: 0;
        width: 100%;
    }

    .search-bar input {
        width: 100%;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }
}