* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
}

.header {
    background: #1a1a1a;
    color: white;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-bottom: 1px solid #2a2a2a;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-size: 24px;
}

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

.btn {
    padding: 8px 16px;
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
}

.btn:hover {
    background: rgba(255,255,255,0.1);
}

.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.stat-value {
    font-size: 28px;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.stat-label {
    color: #666;
    font-size: 13px;
    font-weight: 400;
}

.users-table {
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e9ecef;
}

td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

tr:hover {
    background: #f8f9fa;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 10px;
}

.role-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-user {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
}

.role-admin {
    background: #1a1a1a;
    color: white;
}

.actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    background: white;
    color: #1a1a1a;
    font-weight: 400;
}

.btn-primary {
    background: white;
    color: #1a1a1a;
}

.btn-danger {
    background: white;
    color: #1a1a1a;
}

.btn-small:hover {
    background: #f5f5f5;
    border-color: #1a1a1a;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.error {
    background: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.success {
    background: #efe;
    color: #363;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #e0e0e0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-title {
    font-size: 18px;
    font-weight: 400;
    color: #1a1a1a;
}

.modal-body {
    padding: 20px;
    color: #666;
    line-height: 1.6;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s;
}

.modal-btn-primary {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.modal-btn-primary:hover {
    background: #333;
}

.modal-btn-secondary {
    background: white;
    color: #1a1a1a;
}

.modal-btn-secondary:hover {
    background: #f5f5f5;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .user-info {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .container {
        padding: 15px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-value {
        font-size: 24px;
    }

    .users-table {
        overflow-x: auto;
    }

    table {
        min-width: 800px;
    }

    .actions {
        flex-direction: column;
        gap: 5px;
    }

    .btn-small {
        width: 100%;
    }

    h1 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-label {
        font-size: 11px;
    }

    th, td {
        padding: 10px 8px;
        font-size: 12px;
    }

    table {
        min-width: 600px;
    }

    .user-info {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .modal {
        width: 95%;
        margin: 10px;
    }
}


