:root {
    --primary-color: #3b82f6;
    --secondary-color: #1e40af;
    --background-color: #f3f4f6;
    --sidebar-color: #1f2937;
    --text-color: #374151;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: var(--sidebar-color);
    color: white;
    padding: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.sidebar nav ul {
    list-style-type: none;
    padding: 0;
}

.sidebar nav ul li {
    margin-bottom: 0.5rem;
}

.sidebar nav ul li a {
    color: #9ca3af;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.sidebar nav ul li a:hover, .sidebar nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar nav ul li a i {
    margin-right: 0.75rem;
}

.main-content {
    flex: 1;
    padding: 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    box-shadow: var(--shadow);
}

.search-bar input {
    border: none;
    outline: none;
    margin-left: 0.5rem;
    font-size: 0.875rem;
}

.user-menu {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.user-details {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.user-header {
    display: flex;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.user-avatar-large {
    position: relative;
    margin-right: 2rem;
}

.user-avatar-large img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #10b981;
    border: 3px solid white;
}

.user-info h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.user-email, .user-id {
    color: var(--text-light);
    margin: 0.25rem 0;
}

.action-buttons {
    margin-left: auto;
}

.btn-primary, .btn-secondary {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.btn-secondary {
    background-color: white;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    margin-left: 0.5rem;
}

.user-tabs nav ul {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
}

.user-tabs nav ul li {
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-tabs nav ul li.active {
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

.tab-content {
    padding: 2rem;
}

.tab-content h3 {
    margin-top: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.profile-item label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.profile-item p {
    margin: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 1rem;
    }
    
    .user-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-avatar-large {
        margin-bottom: 1rem;
    }
    
    .action-buttons {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

/* Dodaj te style na końcu istniejącego pliku styles.css */

/* Styles for Users List */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.table-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.users-table {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.users-table tr:hover {
    background-color: #f3f4f6;
}

.users-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.active {
    background-color: #d1fae5;
    color: #065f46;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1rem;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
}

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

.stat-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.stat-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.stat-change {
    font-size: 0.875rem;
    margin: 0.5rem 0 0 0;
}

.stat-change.positive {
    color: #10b981;
}

.stat-change.negative {
    color: #ef4444;
}

.stat-change.neutral {
    color: var(--text-light);
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.chart-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.chart-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: var(--text-color);
}

.chart-card canvas {
    width: 100%;
    height: 300px;
}