/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: #f5f5f5;
}

.sidebar {
    width: 250px;
    background: #1a1a1a;
    color: #fff;
    padding: 2rem 1rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    padding: 0 1rem;
    color: #fff;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin: 0.5rem 0;
}

.sidebar-nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1rem;
    display: block;
    border-radius: 0.5rem;
    transition: background-color 0.3s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: #333;
    text-decoration: none;
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 2rem;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    margin: 0;
    color: #1a1a1a;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Dashboard Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    margin: 0;
    font-size: 0.875rem;
    color: #666;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: bold;
    margin: 0.5rem 0;
    color: #1a1a1a;
}

.stat-card .trend {
    font-size: 0.875rem;
    color: #059669;
}

/* Tables */
.data-table {
    width: 100%;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.data-table h2 {
    padding: 1.5rem;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead th {
    background: #f8f8f8;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #666;
}

.data-table tbody td {
    padding: 1rem;
    border-top: 1px solid #f0f0f0;
}

/* Charts */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-container {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chart-container h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-secondary {
    background: #6b7280;
    color: #fff;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f8f8f8;
    border-radius: 0.375rem;
}

.activity-time {
    color: #666;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }

    .stats-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .data-table {
        overflow-x: auto;
    }
}

.dashboard-form {
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 1rem;
}

.submit-button,
.cancel-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.submit-button {
    background-color: #666;
    color: white;
}

.cancel-button {
    background-color: #ddd;
    color: #333;
}

.dashboard-list {
    display: grid;
    gap: 1rem;
}

.list-item {
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
}

.list-content h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.client {
    color: #666;
    margin: 0.5rem 0;
}

.description {
    color: #555;
    margin: 0.5rem 0;
}

.meta-info {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-in-progress {
    background-color: #cce5ff;
    color: #004085;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-on-hold {
    background-color: #f8d7da;
    color: #721c24;
}

/* Task-specific styles */
.priority {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.priority-low {
    background-color: #e2e3e5;
    color: #383d41;
}

.priority-medium {
    background-color: #fff3cd;
    color: #856404;
}

.priority-high {
    background-color: #f8d7da;
    color: #721c24;
}

.project {
    color: #666;
    font-weight: 500;
    margin: 0.5rem 0;
}

.assignee {
    color: #666;
    font-style: italic;
    margin: 0.5rem 0;
}

.deadline {
    color: #666;
    font-size: 0.875rem;
}

.list-actions {
    display: flex;
    gap: 0.5rem;
}

.edit-button,
.delete-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.edit-button {
    background-color: #666;
    color: white;
}

.delete-button {
    background-color: #dc3545;
    color: white;
}